writing to file newbie question
Hi all, i've got smoothwall setup on a box and have a Dshield submittion mod loaded. As a cron job I submit my logs every two hours as such:
0 */12 * * * root /usr/local/bin/submitdshieldlogs.pl >>/var/log/mailog
How could I attach a command to this so it also logs the time to the file too?
Also I've seen the above command with '2>&1' attached to it. What does this do exactly? Also, if I used the above command and added >/dev/null instead of the maillog, is the intention of this to dump any output of the command before it?