Operating System - HP-UX
1833275 Members
2711 Online
110051 Solutions
New Discussion

PROBLEM STARTING SCRIPTS IN SAM

 
Carlo Henrico_1
Regular Advisor

PROBLEM STARTING SCRIPTS IN SAM

Hello All

I have a problem with SAM. I have written a script which starts as follows:
*********************************
#!/sbin/sh
#Ignore SIGHUP: ensures apps are not killed by exit
trap "" 1
*********************************
and I have defined a custom application group with applications consisting of scripts all starting like the above sample calling programs with nohup program_name &

However, now my problem. While SAM says "Press any key to return to SAM" the applications run however as soon as I press any key returning to SAM, the applications terminate!

Any ideas please?

Thanks

Carlo
Live fast, die young - enjoy a good looking corpse!