![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1
|
|||
|
|||
Script failing to start application with 'open'
I'm trying to get an application to start once SD! has finished a backup, and having some problems getting it working.
I've set a shell script to be run once the backup completes, and it executes open -b org.me.myappid to try to start the application. This works fine if I execute the shell myself. However when SD! runs the script, it looks like open can't find the application. I get the following in the log: open[2502] Couldn't launch application: (null) As far as I understood it, open calls launch services to start applications, so I don't see why it would be able to find the application in an interactive shell, and not in the shell SD! starts. Any ideas? |
#2
|
||||
|
||||
Not sure why that would fail, tegg -- we run the script authenticated, though, and perhaps "root" can't do that.
Try launching with the path instead.
__________________
--Dave Nanian |
#3
|
|||
|
|||
I think I worked at what is wrong here.
I was trying to avoid passing a full path to open, and we have a couple of users here and I was trying to create something flexible. Looks like the launch servcies databases are per-user, (or at least root has a different one), so open couldn't find the application as the LS DB never gets updated for root. I fixed this by changing the open... line to sudo -u $USER open..., and it looks like its working now Pete |
#4
|
||||
|
||||
Ah, good idea -- that'll certainly work! :-)
__________________
--Dave Nanian |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Booting from backup | guruuno | General | 27 | 10-16-2009 11:53 PM |
alternating backup | snoopy67 | General | 11 | 04-04-2009 05:14 PM |
duplicate application icons under 'open with' | alabamian | General | 7 | 09-24-2006 07:44 AM |
Saving us from ourselves - keep BU unmounted | MacMedix | General | 8 | 11-02-2005 12:20 PM |
Error: No space left on device | tradervic | General | 11 | 06-29-2005 04:50 PM |