PDA

View Full Version : crontab



ExH
03-24-2007, 02:06 AM
I create cron job for user:
/usr/bin/wget http://xxxx/cron/mostreaded > /dev/null 2>&1

All works fine, but every time when cron execute script in user account directory created file named "mostreaded".

How can i disable file creation?

floyd
03-24-2007, 03:28 AM
You have to change the command you are using in the cronjob. Its doing exactly what you told it to do. You cannot say wget a file and then complain that it gets it. If you don't want the file saved then don't use wget.

ExH
03-24-2007, 04:00 AM
ok.
I need open my script via http.
How can i make it except wget?

ExH
03-24-2007, 04:19 AM
Solution is:

/usr/bin/wget -nd --delete-after http://xxxxx/cron/mostreaded > /dev/null 2>&1