gum1982 Posted August 30, 2009 Share Posted August 30, 2009 can someone please tell me how to do this, what is the commant to enter a crontab in the ssh i type crontab -e then enter my crontab location what button do i press to save this? Is their a command for save ive tried pressing enter and ctrl s. I can't figure it out can someone please tell me how to save. Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/ Share on other sites More sharing options...
gum1982 Posted August 30, 2009 Author Share Posted August 30, 2009 by the way im using putty Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909120 Share on other sites More sharing options...
.josh Posted August 30, 2009 Share Posted August 30, 2009 do you have cpanel? If you do, just set a cron job through there. Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909130 Share on other sites More sharing options...
awpti Posted August 30, 2009 Share Posted August 30, 2009 The proper key sequence to exit vim (the default editor for crontab) is: :wq (yes, including the or :x Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909135 Share on other sites More sharing options...
trq Posted August 30, 2009 Share Posted August 30, 2009 The proper key sequence to exit vim (the default editor for crontab) is: :wq (yes, including the or :x There is nothing that guarantees that vim is the default editor for crontab. it depends on any number of system variables including EDITOR. Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909142 Share on other sites More sharing options...
gum1982 Posted August 31, 2009 Author Share Posted August 31, 2009 hi guys thanks for the reply. sorry if im being really stupid here are some screen shot i type the path to my cronjob in as you can see in this picture. but this is where i cant save it ive just try what was suggested but nothing seems to have happened it still isnt saved when i exit and load putty back up the path has gone. Ive never used putty or command lines before. Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909919 Share on other sites More sharing options...
gum1982 Posted August 31, 2009 Author Share Posted August 31, 2009 Figured it out. The Vi keystrokes you need to edit your crontab are: "i" for insert, then type out your cron line following the format below for each line, then "escape" to get out of insert mode, then ":" to get a prompt, then "wq" and then "enter" and it is saved. Quote Link to comment https://forums.phpfreaks.com/topic/172440-solved-entering-a-command/#findComment-909949 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.