The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Oracle Autostart Problem ankurjain HP-UX 1 03-13-2008 03:06 AM
Autostart/Autorun Applications HornetDr UNIX and Linux Applications 2 12-21-2007 10:51 AM
One more problem with script syndex Shell Programming and Scripting 4 07-11-2007 01:48 PM
Unix autostart in GUI mode lwll SUN Solaris 2 03-27-2006 10:01 PM
Problem starting a script from a 'main'-script Rakker UNIX for Dummies Questions & Answers 3 06-28-2005 05:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2007
Registered User
 

Join Date: Jun 2004
Location: Beijing, China
Posts: 49
rc.log problem about autostart script

On HP-UX, we add some our autostart scripts in the system script under /sbin/rc*.d directory. The output of application is redirected to /dev/null in our script,but once the application has been startup with the OS starting,its ouput is redirected to the /etc/rc.log finally and cause the rc.log too large, anyone know how to write the output to null file instead of rc.log?
thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 10-30-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Near the top of each added startup script do:
exec > /dev/null 2>&1
Reply With Quote
  #3  
Old 11-05-2007
Registered User
 

Join Date: Jun 2004
Location: Beijing, China
Posts: 49
Thanks Perderabo, "exec > /dev/null 2>&1" works ok!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0