Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-05-29, 05:37 PM   #1
mrenaud
If something's hard to do, then it's not worth doing
 
Join Date: Apr 2005
Posts: 240
Logging into server with SSH

How do I do this?
I'm trying to set up cron on my server and the documentation is saying I need to log in using telnet or ssh to run the command crontab cron.txt.

Thanks
__________________
Lets trade A-B-C links
Lots of blogs ready to trade pr2 -pr3...pm me now!
mrenaud is offline   Reply With Quote
Old 2005-05-29, 05:51 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Get Putty (or SecureCRT or any number of other SSH compliant terminal programs)

log in using the user/pass info and then you should get a prompt

if you have uploaded a file with the crontab entry that you need, you can do:

# get the current crontab listings appended to your file
crontab -l >> newcrontabfilethatyouuploaded
crontab newcrontabfilethatyouuploaded

If you feel comfortable with your editor on there, you could do:

# set the editor to nano just in case
EDITOR=nano;export EDITOR
VISUAL=nano;export VISUAL
crontab -e

and paste the line in.

Then if the editor is nano, control-X will save. If you are in nvi/vi, then inserting the line will be a little challenging if you don't feel comfortable with vi.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-05-29, 05:53 PM   #3
mrenaud
If something's hard to do, then it's not worth doing
 
Join Date: Apr 2005
Posts: 240
Alright thanks I'll give it a try.
__________________
Lets trade A-B-C links
Lots of blogs ready to trade pr2 -pr3...pm me now!
mrenaud is offline   Reply With Quote
Old 2005-05-29, 06:04 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Might help if you know how to login to your server once you have your hands on a terminal program.

Type,
ssh YOURUSERNAME@YOURDOMAIN.com

Then hit return at which time it will ask for your password. It will not show your password as you type it.

As cd34 said, type,
crontab -e

On most of the systems Vi is the default editor. I don't use Vi enough to remember how to use it sometimes so I pull up this page.
http://staff.washington.edu/rells/R110/#basics5

Sometimes Pico is the editor. This one is for humans to actually use and works like a regular word processor with the commands listed at the bottom of the screen.

Typing man crontab will pull up the manual for crontab. If you are really new to all this you may want to start off by typing man man to read the manual on using the manual.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-05-29, 07:58 PM   #5
mrenaud
If something's hard to do, then it's not worth doing
 
Join Date: Apr 2005
Posts: 240
Apparently I need shell access on my account. That's what it said after I typed my password.
__________________
Lets trade A-B-C links
Lots of blogs ready to trade pr2 -pr3...pm me now!
mrenaud is offline   Reply With Quote
Old 2005-05-29, 08:42 PM   #6
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Then you would need to ask your hosting company how to insert a cron.

There are ways to do it via the web, but, I wouldn't be entirely certain it would get where you need it to be -- and some hosts might get a tad upset if you put it in certain areas.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-05-29, 09:39 PM   #7
mrenaud
If something's hard to do, then it's not worth doing
 
Join Date: Apr 2005
Posts: 240
I put in a support ticket and they told me I can do it through Cpanel:

Please login to the cpanel.
On the home page, click on cron jobs.
click on standard.
Specify the command in the box for " Command to run "
Select the time at which you want the cron to be run.
click on save crontab button

So I'll give that a try.
__________________
Lets trade A-B-C links
Lots of blogs ready to trade pr2 -pr3...pm me now!
mrenaud is offline   Reply With Quote
Reply


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


All times are GMT -4. The time now is 05:40 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc