Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Ive got some scripts Ive written that I want the output to be appended to a file. Ive added the scripts to cron, and tried to output the result to log files:

 

It seems to work, but doesnt append, it overwrites each time. Is there a simple way to output it and append?

 

* * * * * /etc/cron.d/sort.old.sh > /var/log/chattr.log
0 1 * * * python /etc/cron.d/funky_file_mover.py > /var/log/funky_file_mover.log
0 2 * * 1 /etc/cron.d/move.sh > /var/log/move.log
30 2 * * * /etc/cron.d/rename.sh > /var/log/renamed.log

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...