LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2006, 08:53 AM   #1
jason.farmer
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
crontab over scp on bash


Hi,

I've got completely stuck...

Only access I have to server is via SSH - I'm using WinSCP3...

So I open a terminal window to edit the crontab entry

crontab -e

but this hangs as I cannot use commands that require user input...

so

crontab 27 4 * * * /var/www/html/lingfield/forums/Database/lingfield_backup.sh

and this errors with no such filename or directory


so...

I guess the next step is to create some vi script to edit the crontab entry...

and do
crontab -e < somescript.vi

but all I try fails (I don't know vi very well...) with

<<
/var/www/html/lingfield/forums/Database$ crontab -e < crontabsrc.txt
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
"/tmp/crontab.XXXXW3szxs" 0L, 0C~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ :i
crontab 27 3 * * * /var/www/html/lingfield/forums/Database/lingfield_backup.sh




:wq
Vim: Error reading input, exiting...

Vim: preserving files...

crontab: "/bin/vi" exited with status 1
Vim: Finished.


>>

any help would be appreciated...
 
Old 09-23-2006, 10:50 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Use PuTTy instead of WinSCP
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Sleep vs crontab and bash serial port nutthick Programming 4 06-01-2006 02:42 AM
Reading crontab into bash array nutthick Programming 2 05-22-2006 12:44 PM
BASH :Reading the crontab, and editing it semaja2 Programming 4 02-05-2006 06:43 AM
Using crontab in a bash script nro Linux - Newbie 3 08-26-2005 08:04 PM
setting up scp alias under bash - parameter passing problem gjr Linux - Newbie 4 06-08-2005 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration