I want to get every minute a listing of my directory to my email.
how can i set this command to cron in cpanel?
I want to get every minute a listing of my directory to my email.
how can i set this command to cron in cpanel?
up
help please
Just ls -lah /home/whatever/ | mail -s "your directory, sir" your.email@domain.com .. add it to the cron via cpanel or ssh.Originally Posted by rip_curl
That's going to get really, *really* annoying.. not sure why you'd want to do that but have a blast
![]()
Serverbalance - Custom Clusterd Solutions Done Right, Affordably!
Originally Posted by netkinetics
when i go to cpanel>cron>adv. unix usrs.> and making follow:
ls -lah /home/username/ | mail -s "public_html" your.email@domain.com
it's nothing not working.
maybe i'm doing something wrong?
assume the user is johndoe :Originally Posted by rip_curl
ls -lah /home/johndoe/public_html | mail -s "Directory listing (this is the subject of the email" your.email@goes.here.com
Sorry for any confusion
Mail will arrive from root@yourserver.hostname.com
Serverbalance - Custom Clusterd Solutions Done Right, Affordably!
thank you very much
I'm making this command - Cpanel says "Cron updated'
but nothing not working.
what should I check firstly
log file says:
Feb 10 17:50:24 web-c-1 /usr/bin/crontab[31536]: (username) AUTH (crontab command not allowed)
Last edited by rip_curl; 02-10-2006 at 07:01 AM.
Sorry just add it to root's crontab (/var/spool/cron/root) , I forgot mail was owned by bin/mail (not wheel).Originally Posted by rip_curl
You may need to google to figure out how to edit root's crontab.. can't give you all the answersYou could also do this with simple perl or php ... the example I gave you was just a quick reply that went way, way farther than I ever thought it would :P
HTH
Serverbalance - Custom Clusterd Solutions Done Right, Affordably!
I am not totally certain which is more freightening to me ...
The fact that they don't know how to setup crontabs ...
(OR)
The fact they actually want to email themselves EVERY MINUTE!
and what must i make that user could work with this commands?
Someone tell him a code to take it away, because I can guarantee you won't want it every day :P
i just want to test my crontab
thats all
oh, that's user was in /etc/eron.deny
I've deleted it =)