Hi everyone,
I created a cron job trough crontab -e and it work
line in the crontab :
But I have a small bug, every-time it run, it generate the errors.txt (nothing inside)
is there a way to generate this file only if indeed there is an error ? and not at each run ?
Thanks
BTW, I hope that my title was explicit enough ?
I created a cron job trough crontab -e and it work
line in the crontab :
Bash:
* * * * * myscript.sh 2>>/home/me/Desktop/errors.txt
But I have a small bug, every-time it run, it generate the errors.txt (nothing inside)
is there a way to generate this file only if indeed there is an error ? and not at each run ?
Thanks
BTW, I hope that my title was explicit enough ?