Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need to write a unix script that will look for certain text in a file and then email me if it finds it.
Can someone please help me?

There's 2 parts to this thing:
- have a piece of code checking on "text", and deciding if text is there or not, GREP would be part of that solution
- mail if the previous result was true ... check how you need to mail from the command line, write a script, check if a command you know can do that ... start there, cause if you can't mail, you won't get anywhere
I don't know what Solaris default command line mail tool is, find that out first

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |