Sponsored Content
Full Discussion: Crontab file
Top Forums UNIX for Advanced & Expert Users Crontab file Post 302219163 by ynilesh on Monday 28th of July 2008 08:33:39 AM
Old 07-28-2008
There are no special commands for that. Just read old backup crontab and put it in,
Code:
crontab -e

and save it.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

crontab file

Does any know if crontab files are automatically backed up anywhere? I am trying to track down when I specific entry was added to one of my crontab files and cannot just use the most recent timestamp on the latest version of the file. (1 Reply)
Discussion started by: mclaughline
1 Replies

2. Shell Programming and Scripting

need help to write crontab file

hello Unix Guru's I need help to write crontab .. i want to run my script everyday . It should start after 12:00 midnight everyday . But on Friday i dont want to start that script at 12:00 midnight but want to start after 3:00 a.m . any way to write cronttab like this .. my... (4 Replies)
Discussion started by: deepa20
4 Replies

3. Shell Programming and Scripting

Reformat Crontab file

I need help writing a script that will reformat a crontab file. The first thing the script is doing is a crontab -l > crontab.txt. I need the crontab.txt file to read "8.00 PM every weekday (Mon-Fri) only in Oct." instead of the orig format "0 20 * 10 1-5" (1 Reply)
Discussion started by: alnita
1 Replies

4. Shell Programming and Scripting

How to edit the crontab file

Hi All, There are some cron jobs scheduled already by someone, now I have to make some changes to the schedule timings. Please advise me. thanks, Raju (2 Replies)
Discussion started by: rajus19
2 Replies

5. UNIX for Dummies Questions & Answers

Problem with crontab file

I have a crontab file called /var/spool/cron/root with these contents. When I use the command, crontab -l, these are the contents which are displayed. HOME=/ MAILTO=maintenance@mycompany.com; robl@mycompany.com PATH=/sbin:/bin:/usr/sbin:/usr/bin SHELL=/bin/bash ##run-parts... (2 Replies)
Discussion started by: bobble14988
2 Replies

6. Shell Programming and Scripting

Shell Script to grep Job File name and Log File name from crontab -l

Hello, I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l. #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1 #40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
Discussion started by: guptra
1 Replies

7. UNIX for Dummies Questions & Answers

crontab and calling a .sh file

Hey out there. I have a .sh file I am calling from cron that I am trying to use to shut down the app at midnight. I have a file that does it and works just fine if I run it by typing "bash crontabstop.sh" from a command prompt. But if I call the file from a crontab I get this output.... (5 Replies)
Discussion started by: vsekvsek
5 Replies

8. Solaris

Crontab file issue

Hi guys, I edited my crontab file and entered this enter: * * * * * w >> `date +%F`.who Then I later deleted the above entry and entered : * * * * * w >> /rpool/who/w.txt when I login and ran : crontab -e I get this entry: * * * * * w >> `date +%F`.who Instead of this entry: *... (3 Replies)
Discussion started by: cjashu
3 Replies

9. UNIX for Dummies Questions & Answers

Not able to edit crontab file

Hi, I have a solaris 10 box. And I want to schedule a cronjob.But it gives the following error bash-3.2$ crontab -l crontab: can't open your crontab file. bash-3.2$ EDITOR=vi bash-3.2$ export EDITOR bash-3.2$ crontab -e crontab: can't open your crontab file. I checked in... (12 Replies)
Discussion started by: Rossdba
12 Replies

10. UNIX for Advanced & Expert Users

Crontab No such file or directory

I keep getting the crontab No such file or directory error message. 0,30,31,32,33,34,35,36,37,38,39,40 * * * * "/bin/ps aux --sort -\%mem >> /home/m/bob/cookies" I have made sure my directory exists. find /home/m/bob -iname 'cookies' 2>/dev/null /home/m/bob/cookies I am using the full... (3 Replies)
Discussion started by: cokedude
3 Replies
bcrontab(1)						      General Commands Manual						       bcrontab(1)

NAME
bcrontab - Manage users crontab files SYNOPSIS
bcrontab [ -u user ] file bcrontab [ -u user ] { -l | -r | -e } DESCRIPTION
bcrontab interfaces with the bcron-spool daemon to manage crontab files in the privileged spool directory. OPTIONS
-u user Tell bcron-spool that we are acting on behalf of the named user. bcron-spool will only accept the username if bcrontab is running as either root or the same user ID as the named user. -l List the cronab crontab to standard output. -r Remove the user's crontab. -e Edit the current crontab. ENVIRONMENT
VISUAL If this is set, it is used as the editor to invoke to edit a crontab. EDITOR If $VISUAL is not set and this is, it is used as the editor to invoke to edit a crontab. If neither are set, /bin/vi is used. BCRON_SOCKET The path to the named socket used to communicate with bcron-spool. Defaults to /var/run/bcron-spool. LOGNAME USER These two variables are used, in order, to determine the user name invoking the program. One must be set if the -u option is not used. FILES
bcrontab tries to writes a temporary file into the current directory, and then into /tmp if that fails, in order to edit the current crontab. SEE ALSO
bcron-spool(8), crontab(5) AUTHOR
Bruce Guenter <bruceg@em.ca> bcrontab(1)
All times are GMT -4. The time now is 08:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy