Sponsored Content
Top Forums Shell Programming and Scripting Crontab job to run every sunday Post 302268402 by govindts on Monday 15th of December 2008 03:36:17 PM
Old 12-15-2008
Crontab job to run every sunday

Hello,

I wanted to run one of my shell script for every sunday at 5PM.

Here is the crontab entry i am using..

00 17 * * 0 /inventory/update.sh > /inventory/update.log 2>&1

The job is not kicking on sunday at the specified time.. Am i missing anthing?

Any help is appreciated...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cron job -- to execute at every first Sunday of every month

Dear all How can I schedule the cronjob to be run sometime at every first Sunday at every month? I have the edit the cronjob every month now, thanks (2 Replies)
Discussion started by: shanemcmahon
2 Replies

2. UNIX for Advanced & Expert Users

Run crontab job problem

I hv a crontab job (script) that can be run normally , now I try to run it on the shell but can't be run , can advise what is difference between run a script on crontab and run it manually ? is it the difference of system enviornment ?thx I tried to fix it by below method , I write a script... (3 Replies)
Discussion started by: ust
3 Replies

3. AIX

Crontab job on sunday with two week interval

Hi experts, Please help me to set a backup script run at 6AM on Sunday every two week It means the 1st sunday, run script backup at 6AM the 2nd sunday, skip the 3rd sunday, run script backup at 6AM the 4nd sunday, skip ... so on Thank you so much (4 Replies)
Discussion started by: tan.pham
4 Replies

4. UNIX for Dummies Questions & Answers

crontab does not run "root" job

hi, I've read different posts regarding crontab but none helped out...the shell scrip that I want to run through crontab gets run through crontab when I use the following crontab statement: 13 17 * * * /usr/net/gcc/DBdrop.sh > /usr/net/gcc/DBdrop.log 2>&1 but it does not run when I scheduel... (2 Replies)
Discussion started by: linux0004
2 Replies

5. UNIX for Dummies Questions & Answers

Crontab running every alternative sunday

Hi, I want to run a script starting this 28 Mar 2010 every alternative sunday. Can you give me the crontab entry for the same. Mine is a HP unix. (2 Replies)
Discussion started by: Krrishv
2 Replies

6. UNIX for Dummies Questions & Answers

Run script on every second sunday

I was to schedule a script in a crontab after every 15 days specically on every 2nd Sunday. I know that i can schedule on basis of weekdays, but can it be done by skipping in between???:wall: (5 Replies)
Discussion started by: masquerer
5 Replies

7. UNIX for Advanced & Expert Users

Autosys job run on Sunday

Hi, I need to create a autosys job which will run on every sunday at 7:30 AM NY time for each 10 min interval of time. days_of_week: su start_mins: 0,10,20,30,40,50 run_window:"07:30" Is it fine? Please help Thanks, Anup (2 Replies)
Discussion started by: anupdas
2 Replies

8. Shell Programming and Scripting

To Run a job every hour without using crontab

Hi, Can anyone help me in finding how to run a specific job every hour without using crontab. Say for example i need to run a command ps -aux in the starting of every hour.. (3 Replies)
Discussion started by: glv
3 Replies

9. AIX

job run before schedule on crontab

Guys, yesterday i just make a script with email as a result and put them into crontab, it will execute on 23.33. Today, i recieved email from system twice as result the script. the first email send at 23.02 and the second send at 23.33 how is the script execute two times ? the first job run... (6 Replies)
Discussion started by: michlix
6 Replies

10. AIX

cron job on 3rd sunday of every month

Hi, Actually scheduled my test scripts on test severs as shown below. They are supposed to run on 3rd sunday of every month. Unfortunately it ran on 2nd sunday of the month (suspecting that it will run every sunday). I am sorry if I miss something. Could you please let me know if I did any... (1 Reply)
Discussion started by: System Admin 77
1 Replies
xfsinvutil(8)						      System Manager's Manual						     xfsinvutil(8)

NAME
xfsinvutil - xfsdump inventory database checking and pruning utility SYNOPSIS
xfsinvutil [-F|-i] [-u UUID] [-M mount_point] [-m media_label] mm/dd/yyyy xfsinvutil -i xfsinvutil -C DESCRIPTION
xfsdump maintains an online dump inventory in /var/lib/xfsdump/inventory. The -I option of xfsdump displays the inventory contents hierar- chically. The levels of the hierarchy are: filesystem, dump session, stream, and media file. Over time, this database may grow too large as xfsdump (8) and xfsrestore(8) do not remove entries from the inventory. The database may also develop inconsistencies for various reasons such as operator errors etc., that may cause xfsdump or xfsrestore to print error or warn- ing messages. xfsinvutil is an utility to check this inventory database for consistency, to remove entries of dump sessions which may no longer be of relevance, and to browse the contents of the inventory. xfsinvutil may be used in three different modes. In the first mode xfsinvutil steps over each dump session recorded in the inventory and prompts for a yes or no response to whether each session should be pruned. The second is a batch mode in which xfsinvutil will prune every entry matching the supplied criteria. The third mode allows the user to browse the inventory in detail, to delete or undelete records at will and also to import inventories from other hosts. The following command line options are available: -F Don't prompt the operator. When xfsinvutil encounters a matching dump session, xfsinvutil will normally ask the operator for permis- sion to delete the entry. With this option the deletion is performed, no questions asked. -i Interactive mode. Causes xfsinvutil to run in a mode that will allow the operator to browse the contents of the inventory. Please refer to the Interactive Mode section below for more information. -M mount_point mm/dd/yyyy Specifies the mount point and cut-off date of inventory entries to be selected for pruning. xfsinvutil prompts the operator when a dump session in the inventory is identified by the mount point and was created prior to the specified date. The operator can then select specific dump sessions for removal from the inventory database. This prompt will not happen if the -n option is used; it will be assumed that the pruning is wanted. xfsinvutil also performs consistency checks on other inventory database entries when invoked with this option. The mountpoint must match the mount point as specified in the inventory shown using xfsdump with the -I option. This includes the host name and the mount path. -u UUID Specifies the filesystem universally unique identifier (UUID) of inventory entries to be selected for pruning. This option is equiva- lent to the -M option. -m media_label If specified, only sessions with at least one media file whose label matches this value will be eligible for pruning. This restric- tion is in addition to those imposed by the date and the -M or -u options. This option allows the pruning of all inventory references to media which may have been overwritten or lost. Note that this option does not apply to sessions with no media files. -n With this option, xfsinvutil will not ask any confirmation questions regarding sessions to prune. (It is the "Nike" option). -C With this option, xfsinvutil performs consistency checks for all entries in the inventory database. It fixes any problems found. If no consistent entries are found , the corresponding inventory database file is removed. Interactive Mode When run with -i, xfsinvutil will present the operator with a hierarchical representation of the xfsdump inventory. In this mode, the operator can use the arrow keys (or the h j k l keys) to navigate the inventory and also use the following keys and functionality: + Expand a branch of the tree. - Collapse a branch of the tree. * Fully expand a branch of the tree. % Fully collapse a branch of the tree. h Move selection to the parent entry. l Move selection to the child entry. j Move selection to next entry. k Move selection to previous entry. d Mark the current record, and all sub-records, to be deleted. u Clear the current record and all parent records from being deleted. i Import another xfsdump inventory. ? Show help window. x Commit any changes made to the inventory, and exit the program. q Exit the program without committing any changes to the inventory. Inventories from other hosts can be imported to create a larger common inventory. It is recommended that the contents of /var/lib/xfs- dump/inventory on the remote host be copied to a temporary local directory prior to running xfsinvutil. When xfsinvutil is run in interac- tive mode, and the operator hits i, they will be prompted for the path to the inventory to be imported. xfsinvutil will then add the con- tents of the imported inventory to the main window, and all entries will be marked as imported. The operator can then delete any of these entries that are not to be imported. When the operator commits the changes, xfsinvutil will import any entries which were not marked as deleted. Deleted entries are not actually deleted from the original imported inventory. NOTES
Inventory Each dump session updates an inventory database in /var/lib/xfsdump/inventory. xfsdump uses the inventory to determine the base of incre- mental and resumed dumps. This database can be displayed by invoking xfsdump with the -I option. The display uses tabbed indentation to present the inventory hier- archically. The first level is filesystem. The second level is session. The third level is media stream (currently only one stream is supported). The fourth level lists the media files sequentially composing the stream. FILES
/var/lib/xfsdump/inventory dump inventory database SEE ALSO
xfsdump(8), xfsrestore(8). xfsinvutil(8)
All times are GMT -4. The time now is 04:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy