home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5324 < prev    next >
Encoding:
Text File  |  1993-01-09  |  558 b   |  19 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!nntp1.radiomail.net!pandora!mitra
  3. From: mitra@pandora.sf.ca.us (Mitra)
  4. Subject: xargs with no arguments
  5. Organization: Pandora Systems
  6. Date: Sat, 9 Jan 1993 22:09:51 GMT
  7. Message-ID: <C0LxKG.553@pandora.sf.ca.us>
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Lines: 8
  10.  
  11.  
  12. Is there any easy trick to persuade xargs not to execute if there are no
  13. arguments presented on stdin, I'm running it in a cron task, and often
  14. the command being xarg-ed will report an error if there are no arguments
  15. to delete/index/whatever.
  16.  
  17. - Mitra
  18.  
  19.