shell script 2 telnet!
Hello guys,
I have a shell script that's really simple and nothing dynamic: it only connects to a telnet session, executes cmd 1, waits x seconds, cmd 2, x seconds, etc...
Now, I want to do something like this: whenever I connect via telnet and execute the command, if I have certain output, I want to send an e-mail. But it's important to notice that I don't want to receive email if I have output "X", and 60 seconds after (for example) if I run the same script and have the same output also receive the e-mail... What do you think is the best approach to this problem ?
It's difficult?
Regards,
André
|