Cron on Solaris not editing.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cron on Solaris not editing.
# 15  
Old 12-13-2010
So "crontab -e" is definitely using vi and the cron table content is displayed.
Can you edit the crontab properly with vi or do you have still issues with this ?
What is the terminal emulator you are using ?
This User Gave Thanks to jlliagre For This Post:
# 16  
Old 12-13-2010
Quote:
Originally Posted by jlliagre
So "crontab -e" is definitely using vi and the cron table content is displayed.
Can you edit the crontab properly with vi or do you have still issues with this ?
What is the terminal emulator you are using ?
I have this problem for one instance and other is working fine.
Terminal Emulator that we are using is OpenSSH.
I had to export editor than vi editor after that I am able to use this
# 17  
Old 12-13-2010
Quote:
Originally Posted by nixhead
I have this problem for one instance and other is working fine.
If "this problem" means "crontab -e" launching ed instead of vi, that just means the EDITOR (or perhaps VISUAL) variable is not set on one of the servers. Solaris 10 and older crontab defaults to "ed" in such case. Solaris 11 Express hopefully switched to vi.
Quote:
Terminal Emulator that we are using is OpenSSH.
That's hardly a terminal emulator.
Quote:
I had to export editor than vi editor after that I am able to use this
Okay, so problem fixed ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies

2. UNIX for Dummies Questions & Answers

Solaris cron and cd

I have a (stupid) question about cron. If 'cd' is used in cron script, do we have to 'cd' back to 'starting' dir at the end of script (for other scripts and programs to work)? (1 Reply)
Discussion started by: orange47
1 Replies

3. UNIX for Dummies Questions & Answers

Script not running through cron on solaris 5.8

Hi All, I am running a script thorugh cron which is given below. this script is not doing its defined job through cron ,files are still in unzipped state. But when i run this script as ./script.sh it gets executed fine and does all that is required. also when i run thi script as sh... (2 Replies)
Discussion started by: Jcpratap
2 Replies

4. Solaris

Video capture and editing on Solaris vs Debian vs Ubuntu

I am interested in doing some heavy video work. I have a ADVC 110 Video capture device, which I am using to capture VHS video tapes, which I will convert on the server to DVD format and burn to DVD's using DVD production software. I will also take the captured video file and split it up in parts... (1 Reply)
Discussion started by: Marcus Aurelius
1 Replies

5. UNIX for Dummies Questions & Answers

Editing a cron file with crontab

I want to set up a file with crontab to run the cron deamon so I can use at to schedule jobs. I think the crontab file (or whatever you call it) has to be set up. Currently, I don't have a crontab file (I checked by typing sudo crontab -u myusername -l), and I don't know the syntax for creating... (6 Replies)
Discussion started by: Ultrix
6 Replies

6. Solaris

Solaris 10 cron question

I have a script that needs to install a script the runs just before cron starts. Currently (for 9 and older), it simply finds the name of the cron script in /etc/rc?.d, decrements the number and creates a link. For example, if cron starts with /etc/rc2.d/S75cron, the install script extracts the... (3 Replies)
Discussion started by: BOFH
3 Replies

7. Solaris

editing cron

im running crontab -e as root, I keep getting, I set my editor to EDITOR=vi... # crontab -e 477 (2 Replies)
Discussion started by: csaunders
2 Replies

8. UNIX for Dummies Questions & Answers

Cron in Solaris

Hi, Im just begining in UNIX and i want to know how to create a CRON schedule to take a file, compact it and copy it by ftp to other computer running Linux. Thanks alot folks! Macakongs2099 (2 Replies)
Discussion started by: Macakongs2099
2 Replies

9. UNIX for Dummies Questions & Answers

Editing a CRON file

Hi, I am accessing CRON via telnet and want to set up some jobs. I have typed crontab -e to edit my cronfile but I can't seem to enter anything when I type on my keyboard. All I have is a flashing cursor at the top with ~ on the start of each line. How can I enter the jobs and save this... (9 Replies)
Discussion started by: jaffy1229
9 Replies

10. UNIX for Dummies Questions & Answers

editing a profile on solaris 2.3

Firstly, thank you for this great forum and the time you spend on answering newbies like me. I still have a problem with understanding how profiling works on a solaris 2.6 unix system. when adding a user, it should get a profile in /home I suppose. And again, I suppose that this is the file... (7 Replies)
Discussion started by: phpote
7 Replies
Login or Register to Ask a Question