- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab entry
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:31 AM
08-19-2008 08:31 AM
crontab entry
I have one of the backup script whose crontab entry is missing. back up is updating every day on particular file system.
Script is:---------
#!/bin/ksh
cd /db_backup
nohup compress *.1
nohup compress *.2
echo "compression complete" > compit
find . -mtime -7 -mtime +1 > delit
find ohr* -mtime -1 > copyit
for i in `cat copyit`
do
nohup cp $i /ignite-backup/backups/db_backup
done
for i in `cat delit`
do
rm $i
done
As per the crontab i am making this entry ,please comment on this .
min hr date month dayofweek cmd
0 18 1,15 * 1-5 /ignite-backup/backups/db_backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:37 AM
08-19-2008 08:37 AM
Re: crontab entry
I presume that you want a comment about the crontab scheduling:
Your command will run every Monday through Friday (inclusive) *including* the 1st and the 15th of every ("*") month t 1800.
See the 'crontab' manpages.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:38 AM
08-19-2008 08:38 AM
Re: crontab entry
It seems that it will run on every 1st and 15th of the month if there is mon-fri, otherwise it will not run, it will run at evening 6 o'clock if first condition match. . .
Regards,
Piyush Mathiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 10:08 AM
08-19-2008 10:08 AM
Re: crontab entry
Your crontab entry is not proper. I am not understanding why u have specify 1-5.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 10:35 PM
08-19-2008 10:35 PM
Re: crontab entry
Also, since the script is started from cron, there won't be any hangup signals.
Note your last for-loop can be replaced by:
rm $(< delit)
And similarly the other:
nohup cp $(< copyit) /ignite-backup/backups/db_backup