- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change of folder/directory size required a mail
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
Discussions
Discussions
Forums
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
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
тАО04-13-2011 11:40 PM
тАО04-13-2011 11:40 PM
Change of folder/directory size required a mail
I want to know in my ftp location whether the file is existed or not , if existed needs to send mail.
This should not configured in crontab after writing script and it should not be uitlise much resources
Automatically it needs to check of the folder/directory size like a trigger and it sholud send a mail
is there any command in HP-UX for this ? or any solution please help me
Thanks in advance
Regards,
Mali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2011 12:03 AM
тАО04-14-2011 12:03 AM
Re: Change of folder/directory size required a mail
Otherwise, without cron / other scheduled job, how you can expect to run a script to check automatically ?
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2011 04:00 AM
тАО04-14-2011 04:00 AM
Re: Change of folder/directory size required a mail
> Automatically it needs to check of the folder/directory size like a trigger and it sholud send a mail
Checking the number of blocks allocated to a directory, or its size in bytes, or whether its overall content size (as with 'du -s') increases or decreases) isn't going to help you.
From your meager description, it sounds like you know when a file is added or changed in your directory. For that, you could write a script that records the most recently modified file's timestamp; sleeps for some period; awakens and compares the most recently modified file timestamp to what it last remembered. If newer, send an email.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2011 05:02 AM
тАО04-14-2011 05:02 AM
Re: Change of folder/directory size required a mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2011 01:14 AM
тАО04-15-2011 01:14 AM
Re: Change of folder/directory size required a mail
this sounds like an endless while loop...
while true
do
check_what_was_changed
sleep $SOMETIME
done
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2011 04:19 AM
тАО04-19-2011 04:19 AM