1833832 Members
2447 Online
110063 Solutions
New Discussion

Re: Background Process

 
Midrange Team
Advisor

Background Process

We have an application here called ECS, which is a job scheduling package. It runs under csh, but when I try to start it in background ie: ecs gui& I receive the following error message; +Stopped (tty output) ecs gui
Has anyone seen something similar?
Thanks
6 REPLIES 6
curt larson
Frequent Advisor

Re: Background Process

the process is trying to write something to your screen/terminal. Being it is in the background it isn't allowed to do so. Try moving the process to the foreground and see what it has to say. If it is something mundane such as "starting gui on display x:0.0" , you might be able to put the process back into the background without further hanging for output to your terminal.

Or you could try redirecting the stdout and stderr to a file when you start it and see what is happening with a tail -f filename.
nobody else has this problem
Midrange Team
Advisor

Re: Background Process

I probably wasn't complete in my first question. The process does work in foreground after setting up my display variable. It just seems to have a problem in background. By the way this is using reflectionX version 8.0

Thanks

Re: Background Process

I really dont know the Reason.
But it does work
stty -tostop
command is O.K.
Pleasure it.
Andreas Voss
Honored Contributor

Re: Background Process

Hi,

you could try to start your application with nohup:

nohup ecs gui &
this will redirect output to file nohup.out.

Cheers

Andrew
Midrange Team
Advisor

Re: Background Process

Andrew,

Thanks for that, but no joy. The odd thing is we have another instance of ecs on another host and it works fine

Cheers
Midrange Team
Advisor

Re: Background Process

Have fixed the problem. The problem was the TERM was being set to hp in the .login and it required xterm to function correctly. I have corrected the error and all is fine. Thanks to all for your help.