- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nohup is not working
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
тАО01-21-2011 03:27 AM
тАО01-21-2011 03:27 AM
Sorry for cross-posting, but since this problem also occurs in HPUX and nobody answers in Linux forum, thought to post here also.
I'm trying to execute a java program in the background, but when I use "nohup" and "&" I get a message that the process was "Stopped". Actually nothing can go to the background. No matter what program I try.
Is there some setting that system administrator can change in order to allow processes go background?
Thank you.
Solved! Go to Solution.
- Tags:
- nohup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2011 04:16 AM
тАО01-21-2011 04:16 AM
Re: nohup is not working
What is the content of the hohup file?
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2011 04:18 AM
тАО01-21-2011 04:18 AM
Re: nohup is not working
It's empty. The process instantly is stopped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2011 04:19 AM
тАО01-21-2011 04:19 AM
SolutionThe shell might be running with job control disabled. In any POSIX-compliant shell, "echo $-" should produce a string of letters (and possibly numbers). If that string includes lowercase letter 'm', job control is enabled. Interactive shells normally run with job control enabled by default, but I guess some login script might disable it with "set +m". Unless you're running a restricted shell, this setting should be changeable by the user.
Run "stty -a |grep tostop". If the "tostop" TTY option is set, any background job stops as soon as it tries to produce any output to the terminal. If the result includes "-tostop", the tostop output is not set.
When you use nohup, is it really executing /usr/bin/nohup or something else (maybe a shell internal command or an alias)?
"which nohup" or "whence nohup" might be useful to confirm you're using the real nohup command.
Does the java program try to do something special with the TTY input/output? For example, if it's trying to request a password, it might use /dev/tty explicitly to bypass any input/output redirection, much like the "passwd" command does.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2011 04:22 AM
тАО01-21-2011 04:22 AM
Re: nohup is not working
Actually it happens with any command/script/program I'm trying to use. This specific Java program is a product, that runs fine on hundreds of other systems. I think it's just the configuration in this specific network.
Thank you for the suggestions, I'll try them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2011 07:29 AM
тАО01-21-2011 07:29 AM
Re: nohup is not working
Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).
If your local computer crashes, or you are connected via a modem and lose the connection, the processes or login sessions you establish through screen don't go away.
You can resume your screen sessions with the following command: screen -r
More info:
http://tutorials.assistprogramming.com/unix-screen-utility-how-do-i-use-that.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2011 02:09 AM
тАО01-22-2011 02:09 AM
Re: nohup is not working
Have you tried redirecting stdin so there is nothing to read?
nohup foo < /dev/null &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2011 05:08 AM
тАО02-04-2011 05:08 AM
Re: nohup is not working
stty -tostop