Crontab editing issue


 
Thread Tools Search this Thread
Operating Systems Solaris Crontab editing issue
# 1  
Old 05-20-2013
Crontab editing issue

Hi,

OS - SunOS

I gave crontab -e then it returns zero.

Code:
$ crontab -e
0

?

?

Crontab status -

Code:
$ ps -ef | grep cron
    root  2481     1  0   May 12 ?        0:18 /usr/sbin/cron

Please help
# 2  
Old 05-20-2013
I do not have a Sun to play with this at the moment, but will guess that the user that you are logged in as does not currently have any cron jobs setup. If the user did, then I would have expected formatted text returned.
Take a look at this thread for information on crontab
https://www.unix.com/shell-programmin...script-sh.html
This User Gave Thanks to joeyg For This Post:
# 3  
Old 05-20-2013
I suspect it's more to do with the EDITOR variable?
Code:
export EDITOR=vi
crontab -e

These 2 Users Gave Thanks to Scott For This Post:
# 4  
Old 05-20-2013
Good point Scott.
Forgot about that.
# 5  
Old 05-20-2013
Hi Scott,

Most probably your guess is right, I am not able to open the vi in full screen.it opens in small window. Shall i need to place the code in .profile?
# 6  
Old 05-20-2013
Do you receive an error (i.e. like "Terminal too wide", meaning you might need to change your tty settings (stty cols).) when opening in "full screen"? What do you mean, exactly?
# 7  
Old 05-20-2013
Yes, When I Open a script in full screen i will get that error.

Code:
$ vi om_wf_complete.sh
Terminal too wide
:

Then i resize the window size into small area, then it will open.

Please tell me where i need to place the value. I tried on command prompt, but not worked.

Code:
$ export EDITOR=vi
$ crontab -e
Terminal too wide
:


Last edited by nag_sathi; 05-20-2013 at 10:50 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Stream editing Issue

here's my statement: sed -i '4s/$/ #/' sed_test_file.txt I want to edit the n'th line (the '4' is for the example) of the file (but you can't just put the n instead of the 4) sed_test_file is a simple text file containig text only I tried to use $urlCounter instead of 4, as urlCounter... (4 Replies)
Discussion started by: ganraveh
4 Replies

2. Shell Programming and Scripting

Editing crontab via ksh

Hi all, I am trying the following I am hoping that the crontab would be changed. but it prints the previous crontab and says Can anyone tell me the correct ksh command that should be used here? I don't want to edit the crontab with crontab -e, I need to edit it via ksh. Thank... (2 Replies)
Discussion started by: ajaba
2 Replies

3. UNIX for Dummies Questions & Answers

Editing crontab of non-root user from file

Hi All, Ref: "build crontab from a text file" in same forum. (I am not allowed to post URL's in the first post) We are reorganizing our UNIX Crontab file by first making changes in a word pad text file. The intent is to then copy it back to Crontab. Will this work? Copy and Paste does not... (6 Replies)
Discussion started by: nivedhitha
6 Replies

4. UNIX for Dummies Questions & Answers

Crontab Issue..!!!

Hi, I have a cronjob but it is not getting executed.Is there any ways to check whether crontab is working.I have put crontab -l and checked.It got listed.But it is not working. My Crontab is, * * * * * /ldesk/home/abc/source/compare.sh >/dev/null 2>&1 (1 Reply)
Discussion started by: gayisada
1 Replies

5. AIX

Crontab issue

Hi all, I'm having a problem with a crontab entry execution for a non root user. AIX version 5.3 user@host ~ $ oslevel -r 5300-10 cron status user@host ~ $ ps -ef | grep cron root 377044 1 0 Oct 27 - 0:22 /usr/sbin/cron cron entry for user user@host ~ $... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

6. Fedora

editing crontab help

I'm using fedora 5 and sql 5.0. I'm trying to edit the crontab to perform automatic backups of my database. For some reason it isn't working. Here is what I have so far. 15 2 * * * /usr/bin/mysqldump -opt -all-databases u root -ppassword -h localhost... (10 Replies)
Discussion started by: randerson21
10 Replies

7. Shell Programming and Scripting

Issue with crontab

I have a ksh script which will connect to a database and executes some sql scripts. If i run the ksh script it is working fine. But if i schedule it to run at a perticular time using cron the sql script is not running. The scriptl initially creates a spool file for sql script and then connects and... (12 Replies)
Discussion started by: Sriranga
12 Replies

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

9. Solaris

editing crontab with vim and using .vimrc

Hi since we migrated from Solaris 8 to Solaris 10 I do miss a nice feature when editing crontab with vim editor: no more color highlighting after starting to edit. Well there is a hack, see below. I did define: export EDITOR='vim -c ":source /export/home/duc904/.vimrc"' Under Sol8 when... (2 Replies)
Discussion started by: duc904
2 Replies

10. Shell Programming and Scripting

Editing Crontab

Hi I am not able to edit crontab. Following is the comand that is being issued $crontab -e 2764 ............ This is what I am able to see But when I do $crontab -l List of all the crontab entry is displayed. Also I am seeing one entry in my /etc/cron.d prw------- 1 root ... (6 Replies)
Discussion started by: pankajkrmishra
6 Replies
Login or Register to Ask a Question