Help!

Cron Job/ Crontab -e Setup With Putty

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Developers RSS
Next:  Something's Not Right...  
Author Message
lochquel



Joined: Jul 10, 2003
Posts: 23



PostPosted: Thu Oct 28, 2004 7:52 pm    Post subject: Cron Job/ Crontab -e Setup With Putty

Hello, I'm sure the answer to this query is quite simple, but I'm attempting to use Putty (SSH/ Telnet) to setup a Cron Job. I can get to the "crontab -e" command and into the 'edit' screen. I then type in my cronjob similar to this...

0***$HOME/bob/mt/linkblog.pl


What do i do then to save and close this Cron Job? something like "crtl+K+X" all at once or something else. I have tried "crtl+K+X" and it doesn't seem to work, so now I'm confused.


Last edited by lochquel on Tue Feb 26, 2008 4:16 am; edited 1 time in total
Back to top
silmaril8n



Joined: Jan 29, 2004
Posts: 1743

Location: Phoenix, AZ

PostPosted: Thu Oct 28, 2004 8:34 pm    Post subject:

Well going from this tutorial you would just do "Ctrl-kx"

http://www.nerc-online.com/support/www/crontab.html
Back to top
AIM Address
Christopher



Joined: Aug 02, 2004
Posts: 171



PostPosted: Thu Oct 28, 2004 9:08 pm    Post subject:

This depends entirley on your editor.

Connect and issue the following command
Code:
echo $EDITOR


That will tell you which editor you will use. Then read the documentation. Most likely, its vi.
Back to top
oxomo



Joined: Mar 09, 2006
Posts: 1



PostPosted: Thu Mar 09, 2006 5:08 pm    Post subject:

There is another way to do it with putty, and this is more handy than logging in all the time to update your cron.

1. Make a file called cron.txt, this should have all your crons in it

2. upload this to your webserver, probably above your htdocs directory to keep it private

3. log in with putty and type

cd /usr/you/home/directory

to the file with your cron.txt in it

4. type crontab crontab.txt

5. Type crontab -l to make sure it has worked.

6. Check out http://www.vainternet.co.uk, I can set up your cron for you if you want.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Developers All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum