Re: script backgrounds itself

From: Renison, Rick (rick.renison@EDS.COM)
Date: Fri Nov 21 2003 - 14:44:41 EST


try this:

( # start a new shell
  put your commands here

) & # run in background
# let parent script end

> -----Original Message-----
> From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
> Shawn Bierman
> Sent: November 20, 2003 2:18 PM
> To: aix-l@Princeton.EDU
> Subject: script backgrounds itself
>
>
> Is it possible to run a script that will background itself
> without me manually appending "&" or prepending "at now"?
>
> so something like:
>
> #> ./myjob
> [1] +Running myjob &
> #> jobs
> [1] +Running myjob &
> #>
>
> And the prompt returns but the job still runs.
>
> -shawn
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:22 EDT