Cron jobs: prevent email reports and 0KB files

hekimce

Verified User
Joined
May 10, 2007
Messages
10
I use cronjobs, but I don't want to get email reports, and I don't want directadmin to save report files in root (home) directory of accounts.

on the following command no files saved, but email reports sent.
wget http://www.xxxx.net/xxx_europe.php > /dev/null 2>&1

but ont the following command, no email but files saved.
wget -O /dev/null http://www.xxxx.net/xxx_europe.php

how can I combine them?
 
Last edited:
In your cronjob settings there is a place to check a box for not sending email.
 
In your cronjob settings there is a place to check a box for not sending email.

thank you,
but can you give some more information avout how can I reach cronjob settings: admin account or user account in directadmin or ssh etc :confused:
 
please look at my directadmin page (attachment), I could use cronjobs just as you see in the picture.
 

Attachments

  • directadmin.jpg
    directadmin.jpg
    93.4 KB · Views: 298
Finally I solved my question, maybe someone needs similar information.
if you use the following style, you will not get email reports, also no file saved in your user root directory.

wget -O /dev/null http://www.xxxxx.net/yyyyy.php > /dev/null 2>&1
 
Good job. Now you are staring to learn deductive reasoning. You took both commands and put them together. One did one thing you wanted and the other did the other thing you wanted. It make sense to combine the two.
 
Back
Top