- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to search an email thru a file on the whole se...
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
тАО02-02-2009 11:48 PM
тАО02-02-2009 11:48 PM
How to search an email thru a file on the whole server
Please advice.
Regards
Feng Lin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 12:35 AM
тАО02-03-2009 12:35 AM
Re: How to search an email thru a file on the whole server
Do you have more details on what you are looking for and where?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 12:40 AM
тАО02-03-2009 12:40 AM
Re: How to search an email thru a file on the whole server
My colleague is going on leave..So need to remove her email inside some jobs which contain her email address but we do not know where the files are located on the server. I am expecting something like the following
find / -name "*.pl" |grep xxxx@yahoo.com.sg
I am just quoting an example. Is this correct?
Regards
Feng Lin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 12:58 AM
тАО02-03-2009 12:58 AM
Re: How to search an email thru a file on the whole server
Ah. The first place to look is the cronjobs:
/var/spool/cron/crontabs/*
To look for all .pl scripts:
find / -name "*.pl" -exec grep xxxx@yahoo.com.sg +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 01:26 AM
тАО02-03-2009 01:26 AM
Re: How to search an email thru a file on the whole server
The command for pl files is not working. Did you try it out yourself?
Regards
Feng Lin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 01:40 AM
тАО02-03-2009 01:40 AM
Re: How to search an email thru a file on the whole server
Dennis is actually correct., That syntax
for find(1m) works on HP-UX.
So, both these versions would work on HP-UX:
find / -name "*.pl" -exec grep xxxx@yahoo.com.sg +
find / -name "*.pl" -exec grep xxxx@yahoo.com.sg {} \;
The latter format is probably the one you are
used to...
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 02:32 AM
тАО02-03-2009 02:32 AM
Re: How to search an email thru a file on the whole server
You could also add -type f if you want to ensure you only search regular files.
For example...
find / -type f -name "*.pl" -exec grep xxxx@yahoo.com.sg + -print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 02:53 AM
тАО02-03-2009 02:53 AM
Re: How to search an email thru a file on the whole server
echo "\nThis is an automated message generated by script $0 on server $(uname -n)\n"
That way it is easy to find the source of the message when required.