Last month I've written an article on Huling buwan ko na nakasulat ang isang artikulo sa executing any file when application crashed or stopped running Isinasagawa ang anumang mga file kapag ang application crashed o tumigil sa pagtakbo . . All I need is a small portable software that monitors for a process availability. Lahat ng kailangan ko ay isang maliit na portable ang software na sinusubaybayan para sa pagkakaroon ng isang proseso. When the process crashed, the monitoring software will automatically run a batch file containing a few more commands to run. Kapag ang proseso crashed, ang monitoring software ay awtomatikong magpatakbo ng isang batch file na naglalaman ng ilang mga utos na tumakbo. A game server with intensive mod can cause daily random crashes and it's important to make sure that it auto restarts the game server when that happens. Isang laro sa server na may masinsinang mod maaaring maging sanhi ng araw-araw na random crashes at ito ay mahalaga upang matiyak na ito ay awtomatikong pagta restarts ang laro server kapag na mangyayari. So far everything is working as expected except it'd have been better if I can include an email or SMS notification when the server crashes. So far lahat ng bagay ay nagtatrabaho bilang mga inaasahang maliban sa gusto na ito ay mas mahusay na kung maaari kong kasama ng isang email o SMS notification kapag ang server crashes.
Command linya ng email blat
In order to do that, I found a small portable tool called Blat which can send an email using command line. Para gawin iyon, natagpuan ko ang isang maliit na portable tool na tinatawag na Blat na kung saan ay maaaring magpadala ng isang email na gamit ang command na linya. Blat is a Win32 command line utility that sends eMail using SMTP or post to usenet using NNTP. Blat ay isang Win32 command line utility na nagpapadala eMail gumagamit ng SMTP o-post sa usenet gamit NNTP. Command line application is very different from graphical user interface (GUI). Command linya ng aplikasyon ay ibang-iba mula sa graphical user interface (GUI). In programs with GUI, there are buttons and boxes for you to enter the details but for command line, everything must be typed out in a single line. Sa mga programa sa GUI, may mga pindutan at mga kahon para sa iyo upang ipasok ang mga detalye ngunit para sa command line, ang lahat ay dapat na nag-type sa out sa isang linya. It's not so user friendly but very flexible. Ito ay hindi user friendly ngunit tunay nababaluktot.

To use Blat to send email, you will definitely need to refer to the Upang gamitin ang Blat upang magpadala ng email, ikaw ay tiyak na kailangan upang sumangguni sa syntax syntax manual. mano-mano. Below is an example for a normal SMTP server that requires authentication. Nasa ibaba ang isang halimbawa para sa isang normal na ang SMTP server na nangangailangan ng authentication. You can also use IP:Port for -server syntax. Maaari mo ring gamitin ang IP: Port para-sa-server syntax. By default Blat uses port 25 but if your SMTP server uses a different port, then you can change it. Ayon sa default Blat gumagamit ng port 25 ngunit kung ang iyong SMTP server ay gumagamit ng iba't-ibang port, pagkatapos ay maaari mong palitan ito.

blat.exe -f from@email.com -to recipient@email.com -subject ThisIsTheSubject -body ThisIsTheBody -server smtp.server.com:25 -u SMTPUserLogin -pw SMTPUserPass blat.exe-f from@email.com-sa-recipient@email.com subject ThisIsTheSubject-katawan ThisIsTheBody-server smtp.server.com: 25-u SMTPUserLogin-pw SMTPUserPass

Using the command line above, I will receive an email notification alert whenever the server goes down. Gamit ang mga command na linya sa itaas, ako ay tumanggap ng isang email alert abiso kapag server ay pumunta pababa. If I want to receive it in a form of SMS on my mobile, I will need subscribe “email to SMS” service from Kung gusto kong makatanggap ng mga ito sa isang anyo ng SMS sa aking mobile, ay ko na kailangan mag-subscribe sa "email sa SMS na" serbisyo mula sa Clickatell Clickatell , , World-Text World-Text or any other provider that offers such service. o anumang ibang provider na nagbibigay ng ganitong serbisyo.

There hasn't been any updates on Blat for more than 2 years but I can verify that it works without any problems on my webhosting SMTP server. May ay hindi sa anumang mga update sa Blat para sa higit pa sa 2 taon ngunit maaari ko mapatunayan na gumagana ito nang walang anumang mga problema sa aking webhosting SMTP server. However I don't think you can use Gmail, Hotmail, and Yahoo SMTP to send out email because this 3 email service requires SSL and I can't find this option in Blat. Subalit hindi ko isipin maaari mong gamitin ang Gmail, ang Hotmail, Yahoo at SMTP sa magpadala ang email na ito dahil ito 3 serbisyo sa email ay nangangailangan ng SSL at hindi ko mahanap ang opsyon na ito sa Blat. You can try Maaari mong subukan ang SendEmail SendEmail which supports TLS but you will first need to install the na kung saan ay sumusuporta sa TLS ngunit kailangan muna ninyong i-install ang Net::SSLeay and IO::Socket::SSL Net:: SSLeay at io:: Socket:: SSL perl modules on Windows. Perl modules sa Windows.

[ [ Visit Blat Official Homepage Bisitahin ang Blat Official Homepage ] ]

Technorati Tags: Technorati Tags: , , , , , , , ,