Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

OS X/Unix excution problem

 [1/5] from: kpeters:otaksoft at: 13-May-2008 18:51


OS X Leopard: AM trying to have a REBOL script executed via launchd or cron. The script itself, when manually invoked from a shell (as the same user as it is running under via launchd), runs smoothly. When launchd (or cron) runs it, I receive: ** Script Error: user-home has no value ** Where: get-net-info ** Near: user-home The script does attempt to send mail. I have placed user.r files in all strategic places but that does not seem to be related? Any ideas where I should look? As always, thanks for any help Kai

 [2/5] from: anton:wilddsl:au at: 14-May-2008 17:37


Hi Kai, Have you set the working directory correctly? Maybe you can use the -s command line switch, if I remember correctly. Anton. Kai Peters wrote:

 [3/5] from: tomc::cs::uoregon::edu at: 14-May-2008 10:32


cron does not start in your normal environment so you may want to change-dir to where you think you should be before doing set-net Kai Peters wrote:
> OS X Leopard: > AM trying to have a REBOL script executed via launchd or cron.
<<quoted lines omitted: 11>>
> As always, thanks for any help > Kai
-- ... nice weather eh tomc-cs.uoregon.edu

 [4/5] from: tim-johnsons:web at: 14-May-2008 9:51


On Tuesday 13 May 2008, Kai Peters wrote:
> OS X Leopard: > AM trying to have a REBOL script executed via launchd or cron.
<<quoted lines omitted: 10>>
> Any ideas where I should look? > As always, thanks for any help
Hi Kai: I have had some strange problems with rebol similarly on unix systems. Have you tried explicitly loading user.r? I bet you're running as cron as a different user...

 [5/5] from: kpeters::otaksoft::com at: 14-May-2008 21:28


I even went as far as setting everything in my script, hoping that Rebol would not try to read user.r once it realized that everything was set... It's working now under cron - still cannot get it to run properly under OS X launchd. I can settle for that but would like to know why it's failing under launchd. Thanks for all input, Kai

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted