![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to use tee with stdout and stderr? | siegfried | Shell Programming and Scripting | 3 | 01-14-2009 10:07 PM |
| Handling Stdout&StdErr for background jobs. | alvinbush | Shell Programming and Scripting | 0 | 05-30-2008 10:36 AM |
| combined stdout & stderr | slavam | UNIX for Advanced & Expert Users | 11 | 10-12-2007 03:06 PM |
| background jobs exit status and limit the number of jobs to run | GrepMe | Shell Programming and Scripting | 1 | 06-11-2007 06:56 PM |
| STDOUT and STDERR going to a system log | longyie904 | Shell Programming and Scripting | 1 | 09-11-2002 11:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Handling Stdout&StdErr for background jobs.
Hello Friends,
sorry, i am not very familiar with Unix programming. Could you please help me on this? We have to start different components from a startup script. each components are started as below in the background in a startprocess function $nohup $file $args >>$logFile 2>&1 & after this the script calls some waiting method and waits in the logfile for some particular string as below if grep -c "$pattern" $logFile>1; then .... and go ahead with the next component. We have now the problem that the background jobs continue writing into the log file even after startup and covering the disk space. I am looking for a way to redirect the stdout of the background jobs to dev/null immediately after finding the successful start entry in the log. Thanks in advance, Alvin |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|