- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help - I am looking for a script
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-23-2002 09:40 AM
07-23-2002 09:40 AM
The pattern that I am looking for is dbname.lg.
or better than mailing them, how about we back them up but this would require the renaming of the files as they are db backup log files with the same name.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:46 AM
07-23-2002 09:46 AM
Re: Help - I am looking for a script
will email you a list of dbname.lg files.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:50 AM
07-23-2002 09:50 AM
Re: Help - I am looking for a script
I have the following files in these directories
/bi/parking/02/Feb/02/iscan.lg
/bi/parking/02/Feb/03/iscan.lg
/bi/parking/02/Feb/04/iscan.lg
The script that you gave me comes back with a no message error.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:50 AM
07-23-2002 09:50 AM
Re: Help - I am looking for a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:03 AM
07-23-2002 10:03 AM
Re: Help - I am looking for a script
Something like this:
for FILE in `find /bi/parking -name iscan.lg`
do
elm -s "WhatEver" Nick@xxx.com < $FILE
done
I think that should give you what you're looking for.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:08 AM
07-23-2002 10:08 AM
Re: Help - I am looking for a script
thanks for your help.
Pete especially. It is a little heavy on the system load with a zillion sendmail requests, but I think it works.
Thanks again.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:12 AM
07-23-2002 10:12 AM
Re: Help - I am looking for a script
# for FILE in `find /dir -name "dbname.lg" -print` ; do
cat $FILE | mailx -s $FILE user@somewhere
done
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:12 AM
07-23-2002 10:12 AM
Re: Help - I am looking for a script
#!/bin/sh
find
do
mailx -s "$FILE" user@domain.com < $FILE
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:20 AM
07-23-2002 10:20 AM
Re: Help - I am looking for a script
Or - for that matter - we could pursue your backup idea. How and where do you want to back them up and what to you want done with the originals?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:23 AM
07-23-2002 10:23 AM
Re: Help - I am looking for a script
/usr/lib/sendmail -t << __EnD__
To: $TO
Cc: $CC
Bcc: $BCC
Subject: $SUBJECT
$(echo $BODY)
$(find /work -name 'dbname.lg' -exec uuencode {} {} \;)
__EnD__
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:01 AM
07-23-2002 11:01 AM
Re: Help - I am looking for a script
sendmail target@domain << END
Subject: changed files
$(find . -name "pattern" -exec uuencode {} {} \;)
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 08:58 AM
07-25-2002 08:58 AM
Re: Help - I am looking for a script
Thank you !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 10:39 AM
09-26-2002 10:39 AM
Re: Help - I am looking for a script
I for some reason, can not get my head around this.
It would be preferred if the files were concatenated to one big file.
Everything I try, simply lists the files.
The problem is my directory structure of ..../02/May/01/iscan.log and ..May/02/iscan.lg
for every day.
My apologies for re-posting.