home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!news.univie.ac.at!hp4at!siemens.co.at!mxcrew
- From: mxcrew@mx2306.gud.siemens.co.at (The MX-Crew)
- Subject: Re: xargs with no arguments
- Sender: news@siemens.co.at (Newssoftware)
- Message-ID: <1993Jan12.155523.18619@siemens.co.at>
- Date: Tue, 12 Jan 1993 15:55:23 GMT
- References: <C0LxKG.553@pandora.sf.ca.us>
- Nntp-Posting-Host: mx2306.gud.siemens-austria
- Organization: SIEMENS Austria Corp., A-1100 Wien, Gudrunstr. 11
- X-Newsreader: Tin 1.1 PL5
- Lines: 18
-
- Mitra (mitra@pandora.sf.ca.us) wrote:
- :
- : 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
- :
-
- If you don't need controlmessages, redirect stdout and stderr to /dev/null
-
- --
- +--------------------------------------------+ /-\o /-() -- - -- -
- | PEYERL MICHAEL, SIEMENS AG VIENNA | \_/ \\/ ) -- - --
- | E-MAIL: mxcrew at mx2306.gud.siemens.co.at | |/_\ -- - -- -
- +--------------------------------------------+ \_/. . . . ........
- Honda NX500 Dominator + 588ccm racepiston
-