Tuesday, January 12, 2010

UnixHowTo: Stopped (tty output) HP Unix

Issue:-
Unix shell script is running fine while running in foreground but getting stopped while trying to run in the background.

Reasons:-
The script is trying to write on the terminal and as the script is being suppressed in background mode, its giving I/O error and getting stopped.

Resolution:-
---After it stopped, check in the processes ps -fu whats going on.You will be able to get the idea what might be causing the problem.

--- Normally the problem gets resolved if you do stty sane or disable some stty commands.

Some good links:-
script with rsh has error stty : : I/O error

Problems with nohup

Labels: