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
REBOOT(2) System Calls Manual REBOOT(2)
NAME
reboot - close down the system or reboot
SYNTAX
#define _MINIX_SOURCE 1
#include <unistd.h>
int reboot(int how, ...)
DESCRIPTION
Reboot() is used to close down the system. It allows several ways of shutting down depending on how:
reboot(RBT_HALT)
Halt the system and return to the monitor prompt.
reboot(RBT_REBOOT)
Reboot the system by letting the monitor execute the "boot" command.
reboot(RBT_PANIC)
Cause a system panic. This is not normally done from user mode, but by servers using the sys_abort() kernel call.
reboot(RBT_MONITOR, code, length)
Halt the system and let the monitor execute the given code of the given length. (code is of type char * and length of type size_t.)
reboot(RBT_RESET)
Reboot the system with a hardware reset.
Reboot() may only be executed by the super-user.
DIAGNOSTICS
If the call succeeds, it never returns. If something went wrong, the return value is -1 and an error is indicated by errno.
SEE ALSO
shutdown(8), reboot(8), halt(8), sync(1).
NOTES
Minix can not return to the monitor if running in real mode, or if started from MS-DOS. This means that most of the reboot functions will
change to a reset.
AUTHOR
Edvard Tuinder (v892231@si.hhs.NL)
REBOOT(2)