Re: Exiting from an Applescript
Re: Exiting from an Applescript
- Subject: Re: Exiting from an Applescript
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 29 Apr 2005 11:13:46 -0400
Ah, we just had a thread on this. As far as AppleScript is
concerned, the shell script is NOT exiting, because the abw_rfl process
keeps running, and it stays attached to the input/output
environment set up for it by AppleScript. So AppleScript will
wait forever for it to exit.
You need to run the long-running process with its standard input,
output, and error redirected somewhere AppleScript doesn't care about;
/dev/null is a good choice if you don't need to keep about any output
that might be spit out by abw_rf. Replace that line of the script
with this and you should be golden:
/Users/wrw/CStuff/Abing/abw_rfl </dev/null >/dev/null 2>&1 &
On 4/29/05, W. R. Wing <email@hidden> 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.
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
Thanks,
Bill
--
_
/~\ The ASCII | William R. Wing, PhD.
email@hidden 865-574-8839
\ / Ribbon Campaign | Network Architect, Oak Ridge National Laboratory
X Against HTML | Network Research Group, Computer Sci & Math Div.
/ \ Email! |_________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden
This email sent to email@hidden
--
Mark J. Reed <
email@hidden>
_______________________________________________
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