Re: do shell script hanging
Re: do shell script hanging
- Subject: Re: do shell script hanging
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 10 Apr 2008 07:21:57 -0400
On Thu, Apr 10, 2008 at 7:19 AM, Mark J. Reed <email@hidden> wrote:
> #!/bin/sh
> prog="$1"
> shift
> exec "$prog" "$@" </dev/null >/dev/null 2>&1 &
> echo $!
The first three lines could be replaced with just one:
exec "$@" </dev/null >/dev/null 2>&1 &
I took this from a longer script that does extra work based on the
command name, which it also logs, hence the circumlocution..
--
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden