Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

release control after calling a script

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Joined
Jan 24, 2003
Messages
2,642
Location
US
I used perl to call a .sh unix script, but it will not release control. I called the script by:

`/opt/script.sh`;

the .sh script contains:

/opt/startprocess.sh &
exit

Is there something I need to add to release control back to the perl script?

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
why not just do
`/opt/startprocess.sh &`;

I think there are other systems calls that are non blocking.. I think exec?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
The process will not run like that. It must be started from the .sh script.

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
`/opt/startprocess.sh \&`; <-- This works for me in my scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top