Re: Exiting from an Applescript
Re: Exiting from an Applescript
- Subject: Re: Exiting from an Applescript
- From: "Steven D.Majewski" <email@hidden>
- Date: Fri, 29 Apr 2005 11:33:49 -0400
On Apr 29, 2005, at 10:57 AM, W. R. Wing wrote:
At 1:55 PM +0200 4/29/05, Jean-Baptiste LE STANG wrote:
Can you tell us what is in the shell script ? Are you sure you are
returning from the shell script ?
The shell script is pretty trivial too:
#!/bin/sh
cd /Users/wrw/CStuff/Abing
/Users/wrw/CStuff/Abing/abw_rfl &
exit
the unix program it is launching, abw_rfl is a sort of user-level
deamon that acts as the target or reflector for a light weight
bandwidth estimator that I run from my laptop when I'm traveling. Yes,
the shell script exits.
But it's leaving a process running and (most likely) hanging onto
(stdin,stdout,stderr).
Try using 'batch' from your applescript.
( or maybe just run it from cron instead of applescript ? )
-or-
Try redirecting stdin,stdout,stderr and using 'nohup'
[ In any case, the problem is with the shell script, not applescript,
although you could also try using an 'ingoring application response'
block if you REALLY insist on doing it this way! ]
I want that daemon to be running any time my desktop system is
running, which is pretty much 7/24, but I don't want to make it a
real daemon with all the security, error handling, and responsibility
that would imply
Do you think that you're avoiding a security problem by running it
manually ?
Or did you mean that what you're avoiding is having any security ?
( Do you know you can set the user for a daemon in inetd.conf ? )
-- Steve Majewski - University of Virginia Alderman Library
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden