How to save crontab configuration when using SSH?


 
Thread Tools Search this Thread
Operating Systems Linux How to save crontab configuration when using SSH?
# 1  
Old 04-28-2010
How to save crontab configuration when using SSH?

Hi,

I'm trying to save a crontab configuration using SSH, acessing a Linux machine from a Windows desktop.

So, in the prompt I type "crontab -e", to edit crontab, and a window is opened.

But after writing the changes, I press Save button but it seems not working, because when I enter crontab editing again my changes are not there.

What should I do to save my configuration?


Thank you
# 2  
Old 04-28-2010
There's no special way to do it over SSH as opposed to locally.

It may reject your changes if it detects a syntax error.

[edit] You say it opens a window? It may be using an odd text editor. Try changing your EDITOR variable to 'nano' or 'vim' so it uses a local editor in the console.

Last edited by Corona688; 04-28-2010 at 12:35 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect script to save configuration from a router

Hy guys, My name is Alex, i am new here and I hope to find some answers. I am trying to run a expect script to telnet to a mikrotik router, run a command (export), and save the output of that commant to a file (outputfile.txt). The problem is that only part of the output is saved to... (2 Replies)
Discussion started by: axexandru
2 Replies

2. UNIX for Dummies Questions & Answers

Auto load and save crontab

Hi all, I am trying to simplify things for two people who will be taking over my role whilst i go on leave. In doing so, i wanted to find a way that upon login to unix, the crontab would be reloaddd and resaved. I want to do this due to our IT dept taking the server down more often of late... (5 Replies)
Discussion started by: KlintJ
5 Replies

3. Ubuntu

How to save crontab?

How to save crontab? I have try both method below but can't save it. FIRST METHOD error message hit 'escape' and then the following: :wq http://i.imgur.com/nY2YI.jpg SECOND METHOD error message ctrl + s http://i.imgur.com/ECzl0.jpg (3 Replies)
Discussion started by: mampwamp
3 Replies

4. UNIX for Dummies Questions & Answers

Crontab not working with the hour configuration

Hi, When I set the crontab to run every minute, every hour, it works fine. * * * * * env > /tmp/env.output However I want to run it every day at 8:00 AM and it does not run. * 8 * * * env > /tmp/env.output I ran the 'date' command which says it's 8AM PST and also the 'TZ'... (5 Replies)
Discussion started by: samantha13
5 Replies

5. Solaris

SSH Configuration

hi, I am getting error " connection refused by remote host, using ssh to remote solaris machine. (2 Replies)
Discussion started by: vidyadharpol
2 Replies

6. Solaris

Save flarcreate on another server through ssh

hi, i would like to know if it is posible to create the flash archive and in the same line add another command to save it in another server through SCP. flarcreate -n "sv756flash" -c -X excludefilelist |... i appreciate your help. thanks a lot. (4 Replies)
Discussion started by: pabloli150
4 Replies

7. UNIX for Dummies Questions & Answers

can't save crontab with vi

I edit crontab with vi editor, i delete the lines i wanted, but i can't save! i tried the :w, :wq, ZZ commands and it seems like vi is unfamiliar with it. any suggestions? (3 Replies)
Discussion started by: idan_cn
3 Replies

8. Shell Programming and Scripting

how to save crontab

how does one save changes in crontab? i am using vi editor. Issued crontab -e command on the prompt. however not sure how to save changes. :wq doesnt work. any idea.... (10 Replies)
Discussion started by: shahab03
10 Replies

9. UNIX for Dummies Questions & Answers

SSH Batch configuration

Team, I am trying to do ssh batch as root. I have ssh set-up to do work w/o requiring password/uid on remotes. The problem is I need to submit batch work to remote systems, and NOT have my terminal program.sh lock/wait for the response from remote. This is so I can submit batch work to other... (2 Replies)
Discussion started by: xcom007
2 Replies

10. UNIX for Dummies Questions & Answers

Crontab refuses to save changes!

I'm trying to create a new crontab entry for a user on a debian box but whenever I do a crontab -e or crontab -u username -e then edit the crontab (with vim as my default editor) and :wq. I get the error message: no crontab for username - using an empty one crontab: no changes made to crontab... (18 Replies)
Discussion started by: fire>ant>
18 Replies
Login or Register to Ask a Question