05-18-2002
Re: cron
Quote:
Originally posted by hassan2
when you edit a cron file using crontab -e
crontab use vi editor, to start typing hit the Esc key on your keyboard followed by i key to insert then you could start typing
to save hit the Esc key on your keyboard, then semi colom i.e :
followed by wq
here the editor is decided by the EDITOR environment variable. the default is ed. you can set it to vi and then make the changes as mentioned above
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi! I am a newbee. I would really appreciate if you can answer the following question:
I have a huge data file, 214MB with several coloumns. I need to delete the very last line of the file. Everything I know takes a lot of time to do it ( because I have to open the file in an editor or run a... (3 Replies)
Discussion started by: Garuda
3 Replies
2. Solaris
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
3. Shell Programming and Scripting
I have a file of 100000 records. This file is created by concatenation of two files. I want to edit this file from record number 80,000 till the end and add "|N" for each record . How can I acheive this. Please suggest (4 Replies)
Discussion started by: dsravan
4 Replies
4. Shell Programming and Scripting
hi experts,
please help me in writting the script..
i have two files file1 and file 2
i have to write a script which will take input parameters as file1 and file2
file1:
......
1
2
3
4
file2:
.....
1
2
output (6 Replies)
Discussion started by: subhendu81
6 Replies
5. UNIX for Dummies Questions & Answers
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. Shell Programming and Scripting
I am working on Solaris machine.
I have to add a cron for some operation, nut in SSH terminal crontab -l shows all related crons, but crontab -e instead of opening vi editor shows some number.
Could any body tell what can be issue? (16 Replies)
Discussion started by: nixhead
16 Replies
7. Shell Programming and Scripting
Hi,
I am having a file which is fix length and comma seperated. And I want to replace values for one column.
I am reading file line by line in variable $LINE and then replacing the string.
Problem is after changing value and writing new file temp5.txt, formating of original file is getting... (8 Replies)
Discussion started by: Mruda
8 Replies
8. Shell Programming and Scripting
I have a text file that has data like:
Data "12345#22"
Fred
ID 12345
Age 45
Wilma
Dino
Data "123#22"
Tarzan
ID 123
Age 33
Jane
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
Data "1012345#22"
Fred
ID... (16 Replies)
Discussion started by: say170
16 Replies
9. Shell Programming and Scripting
Hello all,
I'm new hear and a noob regarding file editing and awk, but I have a file that has one column and i want to add a new column, as the first column and it have the same data in the column.
ex: file1 -
123456
654321
098765
567890
here is what i want my file to look like (tab... (3 Replies)
Discussion started by: J_Had
3 Replies
10. Shell Programming and Scripting
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
CRON(8) System Manager's Manual CRON(8)
NAME
cron - daemon to execute scheduled commands (Vixie Cron)
SYNOPSIS
cron
DESCRIPTION
Cron should be started from /etc/rc or /etc/rc.local. It will return immediately, so you don't need to start it with '&'.
Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. Cron
also searches for /etc/crontab and the files in the /etc/cron.d/ directory, which are in a different format (see crontab(5)). Cron then
wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute. When execut-
ing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if
such exists).
Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has,
cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab
file is modified. Note that the Crontab(1) command updates the modtime of the spool directory whenever it changes a crontab.
SEE ALSO
crontab(1), crontab(5)
AUTHOR
Paul Vixie <paul@vix.com>
4th Berkeley Distribution 20 December 1993 CRON(8)