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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bourne shell script

Status
Not open for further replies.

greju

Programmer
Oct 20, 2003
7
US
I execute the following at the command prompt
=>SNMP_PORT=10000 /usr/sbin/aixmibd -d 128 &
=>SNMP_PORT=10000 /usr/sbin/hostmibd -d 128 &
=>SNMP_PORT=10000 /usr/sbin/snmpmibd -d 128 &

I want to put these statements in a bourne shell script. If I put these exactly as it is, I find that the three stop execution after a few seconds. However at the command prompt they execute indefinitely unless we kill the jobs ? Is it possible to get the exact behavior as I get in the command prompt by putting these in a script ? How different is background processing when we execute in a script ?

Thanks
Reju
 
Try submitting with a nohup, like this:

nohup SNMP_PORT=10000 /usr/sbin/aixmibd -d 128 &

scott
 
Scott.. even this doesnt work... they cease to execute after a few seconds..

Reju
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top