System: Xubuntu 13.10
When I have this crontab entry
*/5 * * * * cat /home/dbk/.bash_aliases &> /home/dbk/Desktop/junk
junk has a byte size of 0.
Running
$ cat /home/dbk/.bash_aliases &> /home/dbk/Desktop/junk
gives a file with a proper size and content.
catcase it is useless - ifcaterrors it should quit and write nothing anyway so >file is enough. – mikeserv Mar 23 '14 at 20:44man bash,REDIRECTIONsection for more details. No, if cat produce any errors, these errors will be saved to file. – cuonglm Mar 24 '14 at 01:27cat, i.e you cat a file which doesn't exist. – cuonglm Mar 24 '14 at 01:31