- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with Script execution using nohup
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
Forums
Discussions
Discussions
Discussions
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
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
08-05-2008 02:19 AM
08-05-2008 02:19 AM
As an example they executed the following scripts in /home/pdmcc2/users/XYZ/GetPType-GivenID.tcl using
nohup GetPType-GivenID.tcl &
But the output generated in nohup file is stty: : I/O error. Moreover the nohup file in /home/pdmcc2 is getting update instead of the nohup file in /home/pdmcc2/users/XYZ/.
What can be the problem.
I checked the permission on these files they all have execute permission.
eg: -rwxr-xr-x 1 pdmcc2 pdmuser 1712 Jul 16 17:02 GetPType-GivenID.tcl
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2008 02:54 AM
08-05-2008 02:54 AM
Re: Problem with Script execution using nohup
> /home/pdmcc2/users/XYZ/log 2>&1
and looks if it works as requested
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2008 03:22 AM
08-05-2008 03:22 AM
Re: Problem with Script execution using nohup
nohup GetPType-GivenID.tcl > /tmp/somelogfile 2>&1 &
If the output is not redirected, and the nohup.out is not writable in the current dir from where you issued the command, then it will write to the users's home dir.
So, most probably you do not have write permission on the dir from where you issued the nohup command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2008 03:39 AM
08-05-2008 03:39 AM
Re: Problem with Script execution using nohup
environment and ssty environment is not correct.
stty -a
env
See whats wrong there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2008 05:23 AM
08-05-2008 05:23 AM
SolutionAfter fixing the redirection of stdout and stderr, you may want to set stdin to null:
nohup ... < /dev/null
Or you need to fix your script to bracket calls to terminal commands to skip them:
if [ -t ]; then
stty ...
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2008 07:26 AM
08-05-2008 07:26 AM
Re: Problem with Script execution using nohup
Please try using below and confirm if you face the same issue:
nohup cd /home/pdmcc2/users/XYZ;./GetPType-GivenID.tcl&
We faced same issue in our environment.
Regds,
Deepak