- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nohup and rexec
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
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
тАО05-25-2004 07:24 AM
тАО05-25-2004 07:24 AM
nohup and rexec
I am having a very strange problem while using rexec.
The command works fine inside a shell script , but when this shell script is executed in nohup mode the script gets hung while trying to execute this command.
Is there any restriction on using recec with nohup or are there any special permissions need to be set for .netrc. I have already set it to 600
Please advice.
Thanks
Suman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 07:31 AM
тАО05-25-2004 07:31 AM
Re: nohup and rexec
just a thought:
Could you check the dependancy of your rexec command in your script with the next and previous comamnd in your script.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 07:32 AM
тАО05-25-2004 07:32 AM
Re: nohup and rexec
Other than that the standard out and error are redirected to nohup.out as with nohup, there isn't any restriction. Even if .netrc is wrong, it should prompt you for password. I would check the messages in nohup.out file for clues. It may be somethingelse in the script that is hanging.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 07:33 AM
тАО05-25-2004 07:33 AM
Re: nohup and rexec
tusc -vfp nohup "your_rexec script"
To know, where exactly is hanging.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 07:33 AM
тАО05-25-2004 07:33 AM
Re: nohup and rexec
When you run the rexec command through the script, is there any interaction. I mean are you required to give any more inputs to make the script work.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 08:25 AM
тАО05-25-2004 08:25 AM
Re: nohup and rexec
[1]tty stopped tty input"
When I cut and paste the same rexec command and put it into a separate shell it works. I am hardcoding the input varibales though.
Please advice.
Thanks
Suman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 08:29 AM
тАО05-25-2004 08:29 AM
Re: nohup and rexec
That's exactly the message you get if the script in a background is expecting an input. You will need to make sure your script takes care of getting the inputs automatically if you intended to run it in background.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 08:33 AM
тАО05-25-2004 08:33 AM
Re: nohup and rexec
Put a "-n" before the command in rexec as it redirects input from /dev/null.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 08:34 AM
тАО05-25-2004 08:34 AM
Re: nohup and rexec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 08:38 AM
тАО05-25-2004 08:38 AM