Difference between cat and echo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I've been testing something out in cron, I ran the following:

MAILTO: user@xxxxxxxxxxx
* * * * * cat % This is a test message
* * * * * echo % This is a test message

When I get my emails, for the cat command, the subject states: "cat "
and the body states:
"This is a test message"

However for the echo command I get "echo " in the subject but the body is empty.

This made me wonder and hence ask you guys, why does cat work in
outputting the message while echo doesn't?

Thanks in advance for any help.

Dan


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux