![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Near the top of each added startup script do:
exec > /dev/null 2>&1 |
|
#3
|
|||
|
|||
|
Thanks Perderabo, "exec > /dev/null 2>&1" works ok!
|
|||
| Google The UNIX and Linux Forums |