Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Crontab <foldername> - removed the whole crontab Post 303045537 by Showdown on Tuesday 31st of March 2020 05:30:44 AM
Old 03-31-2020
Crontab <foldername> - removed the whole crontab

Hello,


Hope you are doing great though the situation is not so good #Corona.


By mistake I ran the below command and my crontab is gone now . Could anyone please let me know what this command actually does and if possible how to recover the crontab entry.


ccs is one of my folder name .


Code:
crontab ccs


Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SZ in crontab

Dear friends, sz command transfer files from unix to hyperterminal (in WINDOWS OS) CRONTAB is used for jobs periodically can we use sz command in the crontab in UNIX Operating systems ? If so plz guide me, as iam unable to put sz command in crontab ... (1 Reply)
Discussion started by: manikumar
1 Replies

2. Shell Programming and Scripting

crontab

i wrote a shell script and put it in a crontab. but the script is not working. please help thanks in advance (10 Replies)
Discussion started by: rajan_ka1
10 Replies

3. UNIX for Dummies Questions & Answers

crontab

I am going to design the crontab.......... May I get some help.... (1 Reply)
Discussion started by: sathiyamoorthy
1 Replies

4. Solaris

Possibility of crontab entry being removed

A job which schedule on every 1st day of the month in crontab is being removed after the job run. What is the possibility that crontab entry can be removed? Pls advise. Thanks. This is in sun solaris version 9. (1 Reply)
Discussion started by: KhawHL
1 Replies

5. UNIX for Dummies Questions & Answers

Crontab

That should echo Machine name and then the hostnames command into the test file every minute shouldnt it? Cant seem to get it working. (4 Replies)
Discussion started by: RAFC_99
4 Replies

6. Linux

Crontab */1 ???

Hi! I found this line in the root's crontab: Who does "*/1" mean??? I have never met this case... Thx (4 Replies)
Discussion started by: Castelior
4 Replies

7. Linux

Need help with Crontab

Im setting up crontab to run a command at 0800 my current crontab entry is: 0 8 * * 1,2,3,4,5 tcpdump -s2000 -w'flowroute-%H%M.pcap' -G900 -W34 This should start the script at 800am monday through friday as i understand it. I have tested this a couple times and it does not start as... (6 Replies)
Discussion started by: Nasasdge
6 Replies

8. UNIX for Dummies Questions & Answers

crontab

hi, i have to backup a database everyday on a Sun Microsystem. i have been looking around and have found that crontab might be the answer. the list of steps that have to be followed for me to get the database is: 1. on cmd telnet the equipment. 2. put the user name and password. 3. i... (20 Replies)
Discussion started by: vashil
20 Replies

9. Shell Programming and Scripting

Crontab help

Hi I am trying to create a cron job but i get an error I have 2 files my main shell script with html which is genWebsite.sh and another called config.sh which hold variables that I pass to genWebsite.sh by using the line ./source config.sh. I want a cron job to refresh a html generated... (14 Replies)
Discussion started by: scriptnewbie
14 Replies

10. UNIX for Dummies Questions & Answers

Crontab

Can crontab be removed from an AIX system. We had a script that was running on the system. It stopped working. An outside vendor said that crontab does not exist on the system. and that is why it is not running. How can i verify this and get it back on the systems if needed? thanks (4 Replies)
Discussion started by: fierfek
4 Replies
CRONTAB(1)							   User Commands							CRONTAB(1)

NAME
crontab - maintains crontab files for individual users SYNOPSIS
crontab [-u user] file crontab [-u user] [-l | -r | -e] [-i] [-s] crontab -n [ hostname ] crontab -c DESCRIPTION
Crontab is the program used to install, remove or list the tables used to serve the cron(8) daemon. Each user can have their own crontab, and though these are files in /var/spool/, they are not intended to be edited directly. For SELinux in MLS mode, you can define more crontabs for each range. For more information, see selinux(8). In this version of Cron it is possible to use a network-mounted shared /var/spool/cron across a cluster of hosts and specify that only one of the hosts should run the crontab jobs in the particular directory at any one time. You may also use crontab(1) from any of these hosts to edit the same shared set of crontab files, and to set and query which host should run the crontab jobs. Running cron jobs can be allowed or disallowed for different users. For this purpose, use the cron.allow and cron.deny files. If the cron.allow file exists, a user must be listed in it to be allowed to use cron If the cron.allow file does not exist but the cron.deny file does exist, then a user must not be listed in the cron.deny file in order to use cron. If neither of these files exists, only the super user is allowed to use cron. Another way to restrict access to cron is to use PAM authentication in /etc/security/access.conf to set up users, which are allowed or disallowed to use crontab or modify system cron jobs in the /etc/cron.d/ directory. The temporary directory can be set in an environment variable. If it is not set by the user, the /tmp directory is used. OPTIONS
-u Appends the name of the user whose crontab is to be modified. If this option is not used, crontab examines "your" crontab, i.e., the crontab of the person executing the command. Note that su(8) may confuse crontab, thus, when executing commands under su(8) you should always use the -u option. If no crontab exists for a particular user, it is created for him the first time the crontab -u command is used under his username. -l Displays the current crontab on standard output. -r Removes the current crontab. -e Edits the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically. -i This option modifies the -r option to prompt the user for a 'y/Y' response before actually removing the crontab. -s Appends the current SELinux security context string as an MLS_LEVEL setting to the crontab file before editing / replacement occurs - see the documentation of MLS_LEVEL in crontab(5). -n This option is relevant only if cron(8) was started with the -c option, to enable clustering support. It is used to set the host in the cluster which should run the jobs specified in the crontab files in the /var/spool/cron directory. If a hostname is supplied, the host whose hostname returned by gethostname(2) matches the supplied hostname, will be selected to run the selected cron jobs subsequently. If there is no host in the cluster matching the supplied hostname, or you explicitly specify an empty hostname, then the selected jobs will not be run at all. If the hostname is omitted, the name of the local host returned by gethostname(2) is used. Using this option has no effect on the /etc/crontab file and the files in the /etc/cron.d directory, which are always run, and considered host-specific. For more information on clustering support, see cron(8). -c This option is only relevant if cron(8) was started with the -c option, to enable clustering support. It is used to query which host in the cluster is currently set to run the jobs specified in the crontab files in the directory /var/spool/cron , as set using the -n option. SEE ALSO
crontab(5), cron(8) FILES
/etc/cron.allow /etc/cron.deny STANDARDS
The crontab command conforms to IEEE Std1003.2-1992 (``POSIX''). This new command syntax differs from previous versions of Vixie Cron, as well as from the classic SVR3 syntax. DIAGNOSTICS
An informative usage message appears if you run a crontab with a faulty command defined in it. AUTHOR
Paul Vixie <vixie@isc.org> Colin Dean <colin@colin-dean.org> cronie 2012-11-22 CRONTAB(1)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy