you want:
/usr/games/fortune > /home/ron/sig.txt

redirects stdout to a file, overwrites file contents
|   connects stdout to stdin of the next command in line

and also
appends stdout to an existing file

|| logical OR operator in shell expressions

see http://www.cactus.org/~dak/shellscript.html
for more

On 11/1/06, Ron LeVine <[EMAIL PROTECTED]> wrote:
Greetings all,

This is really about how to use the Pipe.

I have the following set up in a cron job for regular updating:

/usr/games/fortune || /home/ron/sig.txt

The cron runs fine, but sig.txt doesn't have anything in it.

What am I doing wrong???

Thanks
Ron

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to