eagertotry
MIS
Hi,
I've scripts that source the .profile in the beginning of the script. They are usually kicked off via cron and run fine. An error "stty - not a typewriter" goes to the error log but rest of the script runs.
When I try to run the same script manually when connected to a terminal, obviously it runs fine. The problem is if I try to run it manually and try to put it in background, the script just stops at the stty command. It doesn't move forward, it doesn't exit, nothing, just stops.
Is there a way to get around this? Is there a way to check if the script is being run via cron or from a terminal or in BG?
Tks
I've scripts that source the .profile in the beginning of the script. They are usually kicked off via cron and run fine. An error "stty - not a typewriter" goes to the error log but rest of the script runs.
When I try to run the same script manually when connected to a terminal, obviously it runs fine. The problem is if I try to run it manually and try to put it in background, the script just stops at the stty command. It doesn't move forward, it doesn't exit, nothing, just stops.
Is there a way to get around this? Is there a way to check if the script is being run via cron or from a terminal or in BG?
Tks