02-07-2011
Every other sunday
I want to input the values in the crontab so that the script will only execute on alternate sundays.
Example if it ran on 6th which is a Sunday it should run on the 20th which is also a sunday but i am skipping 13th
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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... (2 Replies)
Discussion started by: govindts
2 Replies
2. UNIX for Advanced & Expert Users
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
3. Shell Programming and Scripting
how to run an already developed script run against a list of ip addresses solaris 8 question.
the script goes away and check traffic information, for example
check_GE-VLANStats-P3 1.1.1.1
and returns the results ok.
how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies
4. Shell Programming and Scripting
Hi
I have written a script which restarts the application , I want to add a piece of code in my script , to make sure this gets executed only on sunday .
So that even if someone runs it on any other day by mistake it should exit throwing an error message . Can someone please assist what will... (6 Replies)
Discussion started by: honey26
6 Replies
5. Shell Programming and Scripting
Hello all,
I'm trying to write a script to gather and send data and it works just fine at the bash command line, but when executing from CRON, it does not run properly.
My scripting skills are pretty limited and there's probably a better way, but as I said it works at the command line, but... (12 Replies)
Discussion started by: rusman
12 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script.
Kindly help.
Thanks in Advance !! (41 Replies)
Discussion started by: nanz143
41 Replies
7. Shell Programming and Scripting
Hello All,
I have script which needs to be scheduled in crontab which needs to be run only on the first sunday of the quarterly months (March, June, September,Dec).
Can anyone please help me out on this.
Thanks,
Arun. (13 Replies)
Discussion started by: Arun1992
13 Replies
8. Shell Programming and Scripting
Hi ALL,
I have been testing this script to run for every last Sunday of the month,looks like month which have 5 sunday (july 2016 )is not passing this and failing every time.
Here is what I am using,
current_date=31
echo " CURRENT DAY -> $current_date"
if
... (2 Replies)
Discussion started by: netdbaind
2 Replies
9. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
bcrontab
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)