I would say you don't need to schedule it for every day and test to run it on Sundays only. Just schedule it to run on Sundays (i.e. the fifth column being ZERO) as:
pls can anyone help me with this script, the script is below, i need the script to get the previous month result every new month , the problem is that the loop has to be automated to always calculate for previous month .
a=`date "+%Y"` #this year to be used
b=$(date "+%Y%m" --date='49 days... (6 Replies)
Discussion started by: neyo
6 Replies
3. Post Here to Contact Site Administrators and Moderators
Dear All,
Can someone tell me how do I setup autosys job where it needs to execute on monthly basis that too on 1st day of the month.
Thanks. (3 Replies)
Anyone know the normal and average monthly salary (and hourly wage for part time) for a solid Web Development in India?
Basic requirements. LAMP (Linux, Apache, MySQL, PHP), HTML, CSS, Javascript. vBulletin a plus, but not necessary.
Anyone have any idea? (5 Replies)
Hi
I am still learning shell scripting, so for complex stuff, I need help.
I would like to have a script that produces sar monthly reports, so that I can produce a graph from it!
The idea is to use /var/adm/sa/<dir of sa files>Looking to hear from you.
regards (4 Replies)
Hi,
I want to archive files by month,
is there anyway of this code looks better?
find /tmp/w/ -type f -newermt '2014-01-01' ! -newermt '2014-02-01' | xargs tar -czvf files01.tar
find /tmp/w/ -type f -newermt '2014-02-01' ! -newermt '2014-03-01' | xargs tar -czvf files02.tar
find... (9 Replies)
Discussion started by: prpkrk
9 Replies
LEARN ABOUT CENTOS
reboot
HALT(8) halt HALT(8)NAME
halt, poweroff, reboot - Halt, power-off or reboot the machine
SYNOPSIS
halt [OPTIONS...]
poweroff [OPTIONS...]
reboot [OPTIONS...]
DESCRIPTION
halt, poweroff, reboot may be used to halt, power-off or reboot the machine.
OPTIONS
The following options are understood:
--help
Prints a short help text and exits.
--halt
Halt the machine, regardless of which one of the three commands is invoked.
-p, --poweroff
Power-off the machine, regardless of which one of the three commands is invoked.
--reboot
Reboot the machine, regardless of which one of the three commands is invoked.
-f, --force
Force immediate halt, power-off, reboot. Do not contact the init system.
-w, --wtmp-only
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
-d, --no-wtmp
Do not write wtmp shutdown entry.
--no-wall
Do not send wall message before halt, power-off, reboot.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
NOTES
These are legacy commands available for compatibility only.
SEE ALSO systemd(1), systemctl(1), shutdown(8), wall(1)systemd 208HALT(8)