Cron on Solaris not editing.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Cron on Solaris not editing.
# 8  
Old 12-10-2010
Your commands don't show it but your current shell isn't bash. It is very likely the legacy Unix bourne shell. You shouldn't use it as your interactive shell.
In any case, the
Code:
EDITOR=vi crontab -e

syntax works with that one too.
# 9  
Old 12-10-2010
Maybe $TERM isn't right?

What is the value of $TERM and what type of terminal (or terminal emulator) are you using?

To find out what shell program you are running, just type "ps". Then look up the Shell with "man" to find out what sort of Shell it is. On modern systems the shell called "sh" is often the Posix Shell rather than the old Bourne Shell.
This User Gave Thanks to methyl For This Post:
# 10  
Old 12-11-2010
Image
# 11  
Old 12-11-2010
Your current shell is likely bash.
Please post the output of these commands:
Code:
ptree $$
crontab -l
EDITOR=vi crontab -e
:ve

An by the way, there is no need to post innovative graphical screenshots. A cut and paste to the editor window and applying the code tag would make things clearer.
This User Gave Thanks to jlliagre For This Post:
# 12  
Old 12-11-2010
The number you were getting after issuing crontab -e indicate that the ed(1) line-orientated text editor was invoked.
# 13  
Old 12-11-2010
.... and what type of terminal (or terminal emulator) are you using?
(I find it hard to believe that it is a real DEC vt100).

Following a post recently where a terminal misbehaved due to strange line speed setting, please post the output from:
Code:
stty -a

This User Gave Thanks to methyl For This Post:
# 14  
Old 12-13-2010
Quote:
Originally Posted by methyl
.... and what type of terminal (or terminal emulator) are you using?
(I find it hard to believe that it is a real DEC vt100).

Following a post recently where a terminal misbehaved due to strange line speed setting, please post the output from:
Code:
stty -a

Following is the output:
Code:
#: stty -a
speed 9600 baud; 
rows = 44; columns = 178; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext 
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc 
ixon -ixany -ixoff imaxbel 
isig icanon -xcase echo echoe echok -echonl -noflsh 
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten 
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3

---------- Post updated 2010-12-13 at 12:04 AM ---------- Previous update was 2010-12-12 at 11:52 PM ----------

Quote:
Originally Posted by jlliagre
Your current shell is likely bash.
Please post the output of these commands:
Code:
ptree $$
crontab -l
EDITOR=vi crontab -e
:ve

An by the way, there is no need to post innovative graphical screenshots. A cut and paste to the editor window and applying the code tag would make things clearer.
Here are the output of the commands:
ptree $$
Code:
513   /usr/lib/ssh/sshd
  17758 /usr/lib/ssh/sshd
    17759 /usr/lib/ssh/sshd
      17768 -ksh
        17781 bash
          20657 ptree 17781

EDITOR=vi crontab -e
Code:
"/tmp/crontab_Ca4yO" 3 lines, 360 characters 
#55 23 * * * /export/home/arsadm/process.sh > /export/home/arsadm/process.out 2>&1
17 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * email_kill.sh > email_kill.out 2>&1
#18 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /emaild.sh start &

:ve
Code:
Version SVR4.0, Solaris 2.5.0

Sorry for screenshots , I will take of that in future.
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