home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5345 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!news.univie.ac.at!hp4at!siemens.co.at!mxcrew
  3. From: mxcrew@mx2306.gud.siemens.co.at (The MX-Crew)
  4. Subject: Re: xargs with no arguments
  5. Sender: news@siemens.co.at (Newssoftware)
  6. Message-ID: <1993Jan12.155523.18619@siemens.co.at>
  7. Date: Tue, 12 Jan 1993 15:55:23 GMT
  8. References: <C0LxKG.553@pandora.sf.ca.us>
  9. Nntp-Posting-Host: mx2306.gud.siemens-austria
  10. Organization: SIEMENS Austria Corp., A-1100 Wien, Gudrunstr. 11
  11. X-Newsreader: Tin 1.1 PL5
  12. Lines: 18
  13.  
  14. Mitra (mitra@pandora.sf.ca.us) wrote:
  15. : Is there any easy trick to persuade xargs not to execute if there are no
  16. : arguments presented on stdin, I'm running it in a cron task, and often
  17. : the command being xarg-ed will report an error if there are no arguments
  18. : to delete/index/whatever.
  19. : - Mitra
  20.  
  21. If you don't need controlmessages, redirect stdout and stderr to /dev/null
  22.  
  23. --
  24.  +--------------------------------------------+  /-\o /-()  -- -  --   -
  25.  | PEYERL MICHAEL, SIEMENS AG VIENNA          |  \_/ \\/ )  -- -    --
  26.  | E-MAIL: mxcrew at mx2306.gud.siemens.co.at |       |/_\  -- -  --   -
  27.  +--------------------------------------------+        \_/.  .  . . ........
  28.  Honda NX500 Dominator + 588ccm racepiston
  29.