home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23726 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!rpi!batcomputer!munnari.oz.au!bruce.cs.monash.edu.au!monu6!aurora.cc.monash.edu.au!andrewc
  3. From: andrewc@aurora.cc.monash.edu.au (Andrew J. Cosgriff !)
  4. Subject: Re: [BUG] Problems with ps 0.99.2
  5. Message-ID: <andrewc.726828026@aurora.cc.monash.edu.au>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Monash University, Melb., Australia.
  8. References: <1993Jan11.123647.10217@cambria.columbus.oh.us>
  9. Date: Tue, 12 Jan 1993 08:40:26 GMT
  10. Lines: 32
  11.  
  12. bjones@cambria.columbus.oh.us (Bill Jones) writes:
  13.  
  14. >Just tried to run a number of shell scripts which depend heavily upon the
  15. >`c' flag in ps.  It turns out that in the ps taken from HJ's 0.99.2 rootdisk
  16. >the c flag is absent.  This causes shell scripts containing such things as
  17.  
  18. >    while ps auxc | grep uucico > /dev/null
  19. >    do
  20. >        sleep
  21. >    done
  22.  
  23. >to fail.  Instead of passing through with no effect when uucico is not
  24. >running, this will always produce output of `grep uucico' and will therefore
  25. >sleep forever.  So all of my uucp cleanup scripts are now not working.  Is there
  26. >a workaround to this problem?  Thanks,
  27.  
  28. Certainly - use
  29. while ps aux | grep uucico | grep -v grep > /dev/null
  30.  
  31. instead.
  32. it's a bit safer that way.
  33.  
  34.  
  35. Enjoy !
  36.  
  37. Cos !
  38.  
  39. -- 
  40. -------------------------------------------------------------------------------
  41.  * Andrew J. Cosgriff ! *                   #include <std_witty_quote.h>
  42. #define HERE cc.monash.edu.au               #include <std_disclaimer.h>
  43. Hassle me at :      andrewc@aurora.HERE ; andrewc@lindblat.HERE ; cos@yoyo.HERE
  44.