Rishabh

Member
Jun 28, 2007
15
0
51
I have VPS and my host setuped cron job to update cpanel daily..due to which everyday I have have to configure backup in WHM to trasnfer to a remote FTP , how Do I remove that Cron tab??

please help
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
I have VPS and my host setuped cron job to update cpanel daily..due to which everyday I have have to configure backup in WHM to trasnfer to a remote FTP , how Do I remove that Cron tab??
SSH to the server and run this command:
/usr/bin/crontab -e
-e (edit user's crontab)
-l (list user's crontab)
 

Rishabh

Member
Jun 28, 2007
15
0
51
Hey by mistake I removed all crontabs from crontab -e

I have all cron tabs saved can you tell me how to save there?
I typed there but I cant find a way tot save
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
If your editor is VI then hit escape key and :wq to save and quit.

For pico or nano editor, hit ctrl-x and enter.
 

Rishabh

Member
Jun 28, 2007
15
0
51
errors in crontab file, can't install.
Do you want to retry the same edit?


I added
41 1 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
10 22 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

and then saved..n got that error
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Perhaps you are pasting some other ascii characters that are not displayed. Be sure your clipboard contains text only.

You may want to hand type just one line just to see if it does save properly without pasting.