- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron not working
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
11-14-2005 07:14 AM
11-14-2005 07:14 AM
rm -rf /temp/hourly.backups/monday/1pm/* #clear the directory
/usr/bin/find /aot1* /temp -newer /usr/local/bin/start.file -name *.prt | /usr/bin/cpio -pd /temp/hourly.backups/monday/1pm
/usr/bin/touch /usr/local/bin/start.file #reset the time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:21 AM
11-14-2005 07:21 AM
Re: Cron not working
Refer this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=182956
Regards
Vijay Chinnasamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:23 AM
11-14-2005 07:23 AM
Re: Cron not working
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x958f8cc5e03fd6118fff0090279
cd0f9,00.html
Regards
Vijay Chinnasamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:24 AM
11-14-2005 07:24 AM
Re: Cron not working
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:26 AM
11-14-2005 07:26 AM
Re: Cron not working
Which shell you are running this with?
Regards
Vijay Chinnasamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:39 AM
11-14-2005 07:39 AM
Re: Cron not working
What has changed? Things don't normally just stop working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:43 AM
11-14-2005 07:43 AM
Re: Cron not working
One thing I see that may be the source of your problem is the expansion of "/aot1*". The expansion by the shell *before* find() runs may be causing the error.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:49 AM
11-14-2005 07:49 AM
SolutionThe problem is that the shell is instantiating *.prt before the find command ever sees it. As soon as 2 or more files in the same directory match that pattern, find cannot parse it. The correction is quite simple: ..prt becomes "*.prt" or slightly better still '*.prt'. Now that the expression is within quotes, the find command rather than the shell does the expansion of the expression.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:54 AM
11-14-2005 07:54 AM
Re: Cron not working
Yes, Clay nailed it. To prove it simply do:
# cd /aot1
# echo *.prt
...This will cause the shell to expand all of the matching files. You will (when the failure occurs) see multiple files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 09:20 AM
11-14-2005 09:20 AM
Re: Cron not working
I know the command was not the greatest but it worked. I still don't know why it broke. Nothing on the system has changed and I am the only user. The error message was in the mail not the cron log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 10:17 AM
11-14-2005 10:17 AM