- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- exec problem
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
07-16-2004 02:36 AM
07-16-2004 02:36 AM
find /tmp/v_*.log ! -newer /tmp/last -exec rm {} ; touch /tmp/last > /dev/null 2>&1
It is giving me the error:
find: cannot access /tmp/last
Any ideas appreciated!
thanks!
John H.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 02:40 AM
07-16-2004 02:40 AM
Re: exec problem
How aobut permissions on /tmp/last? Since you touch it each time, has your umask changed?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 02:41 AM
07-16-2004 02:41 AM
Re: exec problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 02:42 AM
07-16-2004 02:42 AM
Re: exec problem
John H.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 02:42 AM
07-16-2004 02:42 AM
Solution/tmp/last is not there when script runs
That is the only cause
Find format
find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;
You do not have \; so also problem
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 02:56 AM
07-16-2004 02:56 AM
Re: exec problem
I'm changing the permissions to see if that solves it thanks!
John H.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2004 03:11 AM
07-16-2004 03:11 AM
Re: exec problem
If you are not having the file /tmp/last then find command cannot access the file and validate the /tmp/v*.log file weather it is not newer than the /tmp/last file.
Create the file first with touch then use the find command as like to validate the /tmp/v_*.log,
touch /tmp/last; find /tmp/v*.log ! - newer /tmp/last -exec rm {} > /dev/null 2>&1
It will work now.