Search Results

Search: Posts Made By: atechcorp
7,759
Posted By Yoda
df -g /directory/folder | mailx -s "Disk Free"...
df -g /directory/folder | mailx -s "Disk Free" someone@company.com
2,767
Posted By vgersh99
0 3 * * 1 /path/shut_down_first.sh &&...
0 3 * * 1 /path/shut_down_first.sh && /path/start.sh
or if want to do more elaborate checks between the shutDown and the startUp steps, implement a bounce.sh script and do it all there.
2,767
Posted By in2nix4life
From the man page for crontab on AIX 6.1: ...
From the man page for crontab on AIX 6.1:


The crontab File Entry Format

A crontab file contains entries for each cron job. Entries are separated by newline characters. Each crontab...
2,767
Posted By ctsgnb
Shouldn't it be : 0 3 * * 1...
Shouldn't it be :

0 3 * * 1 /path/script.shinstead ?

man crontab

man cron
29,640
Posted By bartus11
Try this then: ls | awk...
Try this then: ls | awk '/^testfiles9842323879838/{c++};END{print c}'
15,871
Posted By mrwatkin
Then you crontab -e again and change the settings...
Then you crontab -e again and change the settings to what you want for it (edit the line).
15,871
Posted By Corona688
Add a line like this: 0 * * * *...
Add a line like this:

0 * * * * /path/to/script.sh This will tell cron to run /path/to/script.sh on minute 0 of every hour, day, month, and weekday.

If the script doesn't run quite properly...
11,528
Posted By ctsgnb
Nope, you should then change the date formatting...
Nope, you should then change the date formatting to something like :

$(date +'%m%d%Y%H%M')

use man date to check the correct format you need
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 01:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy