home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!nntp1.radiomail.net!pandora!mitra
- From: mitra@pandora.sf.ca.us (Mitra)
- Subject: xargs with no arguments
- Organization: Pandora Systems
- Date: Sat, 9 Jan 1993 22:09:51 GMT
- Message-ID: <C0LxKG.553@pandora.sf.ca.us>
- X-Newsreader: TIN [version 1.1 PL6]
- Lines: 8
-
-
- Is there any easy trick to persuade xargs not to execute if there are no
- arguments presented on stdin, I'm running it in a cron task, and often
- the command being xarg-ed will report an error if there are no arguments
- to delete/index/whatever.
-
- - Mitra
-
-