Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 11-04-2010, 05:39 AM
Nightfall25gr's Avatar
Nightfall25gr Nightfall25gr is offline
Hatchling Croc
 
Join Date: Feb 2007
Location: Greece
Posts: 32
Default SSH EDIT a cronjob

first time i have login to SSH. omg iam afraid that black screen without mouse pointer

Topic: i have enabled from WHM the backup to make it every Tuesday and Friday. but in the whm i dont see option to set the time. So i suppose that a cron job have been created and i must edit it from SSH to set the time.

i have login as root to SSH i press crontab -e
and iam seeing the following screen... now what i have to do?
what line i must edit and how to edit and what to press.

i want the time to be set at midnight every Tuesday and Friday

please step by step its first time that iam conect to SSH
Attached Images
File Type: gif untitled.GIF (7.6 KB, 6 views)
Reply With Quote
  #2  
Old 11-04-2010, 05:49 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: SSH EDIT a cronjob

In SSH window, as root, you type:

Code:
crontab -e
it opens the editor, in that you edit the line:
Code:
0 1 * * * /scripts/cpbackup
to:
Code:
0 0 * * * /scripts/cpbackup
to save you press "CTRL + X"
At the bottom you see:
Quote:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
you press "Y" and it's saved.

The weekdays you set in WHM.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 11-04-2010, 06:10 AM
Nightfall25gr's Avatar
Nightfall25gr Nightfall25gr is offline
Hatchling Croc
 
Join Date: Feb 2007
Location: Greece
Posts: 32
Default Re: SSH EDIT a cronjob

ok ill have make all htese steps and after "Y" it asks file to be write and have many options T: to files, M-B: backup files etc...
shall i press ^T to files?

or to dont press ctrl + X and press directly ctrl+0 (write the file to disk)
Reply With Quote
  #4  
Old 11-04-2010, 06:14 AM
GatorJLavoy's Avatar
GatorJLavoy GatorJLavoy is offline
HostGator Staff
 
Join Date: Feb 2010
Location: Austin, Tx
Posts: 548
Default Re: SSH EDIT a cronjob

Hello,

Just hit enter. It will write to the correct file.

crontab -e by default uses nano on our servers. So the proper way to save a file is:
ctrl-x
y
enter
__________________
James Lavoy
Linux Systems Administrator II || Server Provisioning
HostGator.com LLC
http://support.hostgator.com
Reply With Quote
  #5  
Old 11-04-2010, 06:19 AM
Nightfall25gr's Avatar
Nightfall25gr Nightfall25gr is offline
Hatchling Croc
 
Join Date: Feb 2007
Location: Greece
Posts: 32
Default Re: SSH EDIT a cronjob

holy shit... i promise to not ender in that black sreen again!!!
i have claustrophobia!!!

thank you

attached the finales saved file hope i have make it right
Attached Images
File Type: jpg eee.JPG (31.0 KB, 10 views)
Reply With Quote
  #6  
Old 11-04-2010, 07:48 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: SSH EDIT a cronjob

Sorry... I've done that thousands of times and it's sort of automatic... so I totally forgot the last part... press ENTER
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need CronJob Help FreeStar Shared Hosting Support 5 11-02-2008 04:54 PM
Provide examples of CronJob windyhair Suggestions 1 01-29-2008 02:44 PM
Cronjob error - Please Help MrCheeks Shared Hosting Support 6 06-20-2007 10:02 AM

All times are GMT -5. The time now is 09:45 AM.