04-03-2017
What does your
man crontab say about step values? Mine says
Quote:
Step values can be used in conjunction with ranges. Following a range with ``/<number>'' specifies skips of the number's value through the range.
So -
0/2 wouldn't work.
And, looking again at it, that wouldn't satisfy your logics either. Day-of-week
0-7/2 would mean Sunday, Tuesday, Thursday, Saturday .
Use
0 and discriminate every other Sunday within the script.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello!
my crontab -e dosent work. Im getting this error message:
sh: VI: not found
The crontab files was not changed.
How do i make it work? I think you should use "export editor=vi"
or something. But i cant seem to get the correct line!
pleas help... (11 Replies)
Discussion started by: dozy
11 Replies
2. Shell Programming and Scripting
Hi all,
I am writing a script to monitor some processes existence in the system. It works perfectly by running the script manually in commend line. However, when I put it under cron to run it failed. Everything time when the variable is null in the if statment. it failed and quitted. Here is... (2 Replies)
Discussion started by: stancwong
2 Replies
3. Shell Programming and Scripting
Hi, everyone:
I post a new thread because previous post may sink and I hope the new one can be caught by your eyes.
I created a shell script and the script works fine. However, the mail program part on script didn't send email to my email box and it also didn't provide any traceable... (7 Replies)
Discussion started by: duke0001
7 Replies
4. Shell Programming and Scripting
I have created a script to strat and shutdown Oracle 10g DB on Solaris automatically when UNIX reboot. In the begining, it worked well. All of sudden, the dbstart part didn't work, other 3 part for lsnrctl, emctl, isqlplusctl all worked fine. I think it was TNS_ADMIN variable got problem. Because... (0 Replies)
Discussion started by: duke0001
0 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I am learning to debug in sgi-Irix6.5, after a core dump, I was adviced to perform a "strace", but I got the following information:
ERROR: tracer already exists
what shall I do now?
Thanks a lot
Daniel (0 Replies)
Discussion started by: lakeat
0 Replies
6. Shell Programming and Scripting
Hi
This is what I was trying to do, comment one line and add something different in a new line right next.
This is the command I want to do
more .profile | sed 's,STRING1, #STRING1 NEWLINE STRING2,'
(I´m using ',' because my string is something like this
exec... (3 Replies)
Discussion started by: alcalina
3 Replies
7. Shell Programming and Scripting
I want to filter 2nd column = 2 using awk
$ cat t
1 2
2 4
$ VAR=2
#variable worked in print
$ cat t | awk -v ID=$VAR ' { print ID}'
2
2
# but variable didn't work in awk filter
$ cat t | awk -v ID=$VAR '$2~/ID/ { print $0}' (2 Replies)
Discussion started by: honglus
2 Replies
8. SCO
Continuing saga of working on making a retail store more robust by creating a backup clone of the main server, a 1995 era :eek: PC running SCO OpenServer 5.0.0b and a discontinued Point of Sales (POS) software system.
I have a PC of the same make and model. The CPU runs faster and it has a... (5 Replies)
Discussion started by: jgt10
5 Replies
9. UNIX for Dummies Questions & Answers
how to emulate aix 5.3
i had try pearpc , but it didn't work ...
someone have some solution?
thanks (1 Reply)
Discussion started by: prpkrk
1 Replies
10. Linux
OK I have been working on this simple action for a while and I cannot get it to work.
First off im new to the linux command line world. I feel like I am missing something simple.
What I am trying to achieve is that I want this command:
tcpdump -s2000 -w'flowroute-%H%M.pcap' -G900 -W36 &to... (13 Replies)
Discussion started by: Nasasdge
13 Replies
LEARN ABOUT OSF1
time_lock_es
time_lock_es(3) Library Functions Manual time_lock_es(3)
NAME
time_lock_es - Check time-of-day locking (Enhanced Security)
LIBRARY
Security Library (libsecurity.so)
SYNOPSIS
#include <sys/types.h> #include <sys/security.h> #include <prot.h>
int time_lock_es ( struct es_passwd *prpwd );
PARAMETERS
Specifies a protected password entry structure.
DESCRIPTION
The time_lock_es() function performs time-of-day lock checking for the current date and time against the time-of-day specification in the
fd_tod string of the prpwd parameter. The function returns 1 if the time lock is on and 0 if there is no lock.
The fd_tod specification is like that found in the UUCP Systems file. The specification is a comma-separated list of entries. If the cur-
rent time matches an entry in the specification, the time lock is not on. The entries are scanned until a match is found. If no match can
be found, the time lock is on. Each entry appears as follows:
<day><start_time-end_time>
The day is one of the following: Matches any day of the week. Matches Monday through Friday. Sunday Monday Tuesday Wednesday Thursday
Friday Saturday
The times are military time, for example, 9:15 am is 0915, 6:00 pm is 1800, and 12:42 am is 0042. When start_time is less than end_time,
the range of times contains valid times in which to log in that day. When the times are equal or there is only one time (including no time
at all), the entire day is valid. When start_time is later than end_time, times outside the range are valid. For instance, if start_time
is 04:15 and end_time is 02:00, then any time that falls outside the range of 02:00 to 04:15 is a valid time.
NOTES
Programs using this function must be compiled with -lsecurity.
In order to quickstart a program, the program must be linked as follows:
-lsecurity -ldb -laud -lm
See the shared library discussion in the Programmer's Guide for more information about using the quickstarting feature. delim off
time_lock_es(3)