HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nohup log messages
Operating System - HP-UX
1833882
Members
1632
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-08-2007 08:44 AM
05-08-2007 08:44 AM
We need to decrease the nohup logging , is there a way we can reduce the nohup logging for a certain process or stop the logging itself after a certain message has been logged in the nohup.out.
For example, stop the logging after message says "started" but want to have the process running even after stopping the logging in nohup.out. Can it be handled through a script.
Though I dont want to stop the logging altogether in nohup.out.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:48 AM
05-08-2007 08:48 AM
Solution
nohup by default sends the STDOUT to nohup.out
If you want to stop the STDOUT and STDERR from being sent to nohup.out, then you will need to do this in the script that is generating the output !
You could try something like this
If you want to stop the STDOUT and STDERR from being sent to nohup.out, then you will need to do this in the script that is generating the output !
You could try something like this
exec 1>/dev/null 2>/dev/null
Sundar.
Learn What to do ,How to do and more importantly When to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 10:07 AM
05-08-2007 10:07 AM
Re: nohup log messages
You can reduce logging only by changing the application code so that it makes fewer print calls. If that is not possible then your only option is to stop logging to nohup.out once the desired string has appeared in the output file.
~cheers
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 07:53 PM
05-08-2007 07:53 PM
Re: nohup log messages
Hi,
to avoid to write in nohup.out when you start the process define stdout and stderr:
nohup program 1>program.out 2>program.err
or
nohup program 1>program.log 2>&1
in this way to output in nohup.out
Rgds,
Art
to avoid to write in nohup.out when you start the process define stdout and stderr:
nohup program 1>program.out 2>program.err
or
nohup program 1>program.log 2>&1
in this way to output in nohup.out
Rgds,
Art
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP