PDA

View Full Version : [other] Is it possible to run cron tasks silently??



geokok1981
April 30th, 2009, 05:43 PM
Hey, I have created some automated backup tasks using rsync.
I added these to cron using "Schedule tasks" app from add/remove.

Everything works like a charm but everytime rsync is being automatically
executed a terminal pops up and showing what is going on.

I was wondering if there was a way to still have the tasks executed
completely in the background, without terminals or any other indications.
(or at least without requiring to hit enter to close the terminal window).

Thanks in advance.

Pisi-Deff
April 30th, 2009, 06:05 PM
You could try adding '> /dev/null' (without the quotes) at the end of the task/command. This would send all the text into... nothingness.

I don't know if it will work though ;)

geokok1981
April 30th, 2009, 06:31 PM
You could try adding '> /dev/null' (without the quotes) at the end of the task/command. This would send all the text into... nothingness.

I don't know if it will work though ;)

The app has already ticked /dev/null/ 2>&1 so I guess that's not it my friend.

abhiroopb
April 30th, 2009, 07:00 PM
What is the rsync command? I am running about three rsync commands using cron (albeit with gnome-schedule manager as a front end) and it works fine, the command never show up.