I execute the following at the command prompt
=>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 two 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
=>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 two 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