Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 0
crontab over scp on bash


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...


crontab 27 4 * * * /var/www/html/lingfield/forums/Database/

and this errors with no such filename or directory


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

and do
crontab -e <

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/

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
Registered: Aug 2002
Posts: 14,006

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 11:47 AM.

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