| CPUG | |
| The Check Point User Group | |
| A Resource For The Check Point Community. Fast. Useful. Independent. | |
|
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hi all, I'm looking for a way to send email alerts from scripts. I have a R61 gateway that I've set up cron jobs on it. Those cron jobs are scripts and it may be helpful if they can send email on special occasions (such us something failed). The built-in sendmail doesn’t really help (I got the syntax right but it seems like you cannot run it from cli/scripts. It just gets stuck). Is there any way I can send emails from splat and can it be used in a script? Any suggestion will be appreciated, Alex. |
| |||
| try this script in a test cron with adjusted parameters Code: #!/bin/bash . /root/.bashrc cat << _EOF | sendmail -s 'test script ' -t MyMail Relay -f splat@MyDomain MyMail@myDomain this is my script output from cron this is the env. $env _EOF |
![]() |
| Thread Tools | |
| Display Modes | |
| |