- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file re-created? How to know?
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
03-31-2006 02:46 AM
03-31-2006 02:46 AM
Re: file re-created? How to know?
I still don't like to use "ll" with "cut" to get the status of the "flag".
Any other good idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:47 AM
03-31-2006 02:47 AM
Re: file re-created? How to know?
I still don't like to use "ll" with "cut" to get the status of the "flag".
Any other good idea to check the bit of the permission mode status?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:49 AM
03-31-2006 02:49 AM
Re: file re-created? How to know?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:52 AM
03-31-2006 02:52 AM
Re: file re-created? How to know?
If the only state information you retain is a last line number than the best you can do is to assume a new log has been created if your saved line number is greater than the current log's number of lines.
In my original post, I said that "good" log file would have some indication of the time of an event beyond just the ordinal occurance of an event. You could save knowledge of *both* the line number and all or part of the line where you last left off. Then, when you scan again, if you find that your restart point is different (data-wise) you start from the log's beginning.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2006 02:55 AM
03-31-2006 02:55 AM
Re: file re-created? How to know?
test -u. Man test for details.
FILENAME=myfile
if [[ -u "${FILENAME}" ]]
then
echo "Setuid bit is set"
else
echo "It ain't"
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2006 02:47 AM
04-06-2006 02:47 AM
Re: file re-created? How to know?
The cat /dev/null > logfile creates a zero legnth logfile after the copy, so all old errors deleted.
I see better answers after mine, but thought I would answer your question.
Cheers,
JASH
- « Previous
-
- 1
- 2
- Next »