- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running in bg stopped
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 09:35 AM
тАО07-16-2002 09:35 AM
Running in bg stopped
I wrote a shell script (sh) running in background. In every single cycle of operation the job stopped (Stopped(SIGTTOU)).
in foreground it runs well.
I tried to run it like this.
$daemon >/dev/null 2>&1 &
what could be the reasons for this behavior?
what (SIGTTOU)mean?
Thanks in advance,
Perez Ilan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 09:40 AM
тАО07-16-2002 09:40 AM
Re: Running in bg stopped
http://www.ecst.csuchico.edu/~beej/guide/ipc/signals.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 09:40 AM
тАО07-16-2002 09:40 AM
Re: Running in bg stopped
I suspect that you are trying to read 'stdin' in your script.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 09:44 AM
тАО07-16-2002 09:44 AM
Re: Running in bg stopped
SIGTTOU means background write to control
terminal.
Did you try to start the shell script with
nohup ?
nohup daemon > /dev/null 2>&1 &
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 09:59 AM
тАО07-16-2002 09:59 AM
Re: Running in bg stopped
Steven,I tried the nohup daemon > /dev/null 2>&1 &
now, the same results.
James R. - I'm not sure I understand the meaming "trying to read 'stdin' "
I attached the sort script.
Thanks again.
Ilan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 10:03 AM
тАО07-16-2002 10:03 AM
Re: Running in bg stopped
i.e. does 'transport' ask for an ok to continue? If so, do
echo "y" | transport ...
or if no input is to be given, but a bad written 'transport' expects stdio,
transport ...
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 12:43 PM
тАО07-16-2002 12:43 PM
Re: Running in bg stopped
You can add a lot of echo's for
debugging the script so you can naildown
the program or command that causes the
problem. Redirect the output from the echo's
to a logfile. Or set -x.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2002 03:13 PM
тАО07-16-2002 03:13 PM
Re: Running in bg stopped
Not giving up :)
What if you try to set the following in
the script
stty -tostop
That's just a guess. I even don't know if
its an option on hpux on the gnu version it
exist.
If the problem is the transport program I
think the program needs to be adjusted so
it ignores the SIGTTOU signal.
see also :
http://docsrv.caldera.com/cgi-bin/man/man?termio+7
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 03:42 AM
тАО07-17-2002 03:42 AM
Re: Running in bg stopped
Thank for all your answers, I could not find the problem, but I found that the command:
$su - bzdadm -c "mv ...." is the cause.
so I change the script the way it could work with out the "su - ..." command.
not too elegant solution but working.
Thanks again.
Perez Ilan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 03:44 AM
тАО07-17-2002 03:44 AM
Re: Running in bg stopped
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 03:52 AM
тАО07-17-2002 03:52 AM
Re: Running in bg stopped
No, this script runs from root.
Regards,
Ilan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2002 03:54 AM
тАО07-17-2002 03:54 AM
Re: Running in bg stopped
The $ prompt threw me off. At least you've got it working.
Pete
Pete