in reply to running another script without waiting
I assume from your mention of 'at' that you are running on Win32 systems, in which case using '&' on the end of your command line does not background a task.
Use this instead.
system( 'start /b yourcommand 1>nul 2>&1' );
The call to system will return immediatly and the command will run in the background.
Note the redirection of the output though. If there is any possibility of the command producing any output then you should redirect it somewhere safe.
I've redirected to the nul device by way of example, but you probably want to change that to go to a log file somewhere.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: running another script without waiting
by crammed_in (Initiate) on Oct 08, 2003 at 06:35 UTC | |
by BrowserUk (Patriarch) on Oct 08, 2003 at 08:21 UTC | |
by vek (Prior) on Oct 08, 2003 at 14:26 UTC |