From: joel@rac2.wam.umd.edu (Joel M. Hoffman) Subject: Problems with piping in crontab files. Help. Date: Sun, 25 Apr 1993 13:50:06 GMT
I noticed the following today. I have a command ``today'' which I
want to run every day, and the output of which I want to mail to
myself. So, I put the following in my (user, not root) crontab file:
0 4 * * * today | mail -s "Today" joel
And I got back mail with no content. But, when I tried:
0 4 * * * today > /tmp/testing
/tmp/testing had the output of today, as it should. What's going on??
(Just to make sure everything is set up right, I tried:
today | mail -s "Today" joel
from the command line and if functioned as it should.)
-Joel
(joel@wam.umd.edu)
--
=============================================================================
|_|~~ Germany, Europe. 1943. "The diameter of the bomb was 30 centimeters,
__|~| 16 Million DEAD. and the diameter of its destruction, about 7
meters, and in it four killed and 11 wounded.
cnc Bosnia, Europe. 1993. And around these, in a larger circle of pain
cnc HOW MANY MORE? and time, are scattered two hospitals and one
cemetery. But the young woman who was buried in
the place from where she came, at a distance of more than
than 100 kilometers, enlarges the circle considerably. And the
lonely man who is mourning her death in a distant country incorporates
into the circle the whole world. And I won't speak of the cry of the orphans
that reaches God's chair and from there makes the circle endless and godless."
=============================================================================