Last month I've written an article on Luna trecută am scris un articol pe executing any file when application crashed or stopped running de executare orice fişier, atunci când aplicarea sa prabusit sau a încetat să fie difuzate . . All I need is a small portable software that monitors for a process availability. Tot ce am nevoie este un software mic portabil care monitorizează pentru un proces de disponibilitate. When the process crashed, the monitoring software will automatically run a batch file containing a few more commands to run. Când procesul prăbuşit, software-ul de monitorizare va rula în mod automat un fişier batch care conţine câteva comenzi mai mult pentru a rula. 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. Un server de jocuri, cu mod intensiv poate provoca accidente aleatoare de zi cu zi si este important să vă asiguraţi că acesta reporneşte automat serverul de joc atunci când acest lucru se întâmplă. 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. Până în prezent, totul funcţionează cum era de aşteptat, cu excepţia acesta ar fi fost mai bine dacă am putea include un e-mail sau de notificare prin SMS atunci când se blochează pe server.
Linia de comandă blat de e-mail
In order to do that, I found a small portable tool called Blat which can send an email using command line. În scopul de a face acest lucru, am găsit un mic instrument portabil numit Blat care pot trimite un e-mail folosind linia de comandă. Blat is a Win32 command line utility that sends eMail using SMTP or post to usenet using NNTP. Blat este un utilitar linie de comandă Win32 care trimite e-mail utilizând SMTP sau post pentru a Usenet folosind NNTP. Command line application is very different from graphical user interface (GUI). Linie de comandă de aplicare este foarte diferit de la interfaţa grafică (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. În programe cu interfaţă grafică, există butoane şi cutii pentru tine de a intra în detalii, dar pentru linia de comandă, totul trebuie să fie introdus într-o singură linie. It's not so user friendly but very flexible. Nu este atât de uşor de utilizat, dar foarte flexibil.

To use Blat to send email, you will definitely need to refer to the Pentru a utiliza Blat pentru a trimite e-mail, va trebui cu siguranţă să se facă referire la syntax sintaxa manual. manuală. Below is an example for a normal SMTP server that requires authentication. Mai jos este un exemplu pentru un server SMTP normală, care necesită autentificare. You can also use IP:Port for -server syntax. Puteţi folosi, de asemenea, IP: Port pentru sintaxa-server. By default Blat uses port 25 but if your SMTP server uses a different port, then you can change it. Prin Blat implicit foloseste portul 25, dar dacă server-ul dvs. SMTP utilizează un port diferit, atunci poti schimba.

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-from@email.com F-la-recipient@email.com ThisIsTheSubject obiectul-ThisIsTheBody corp-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. Folosind linia de comanda de mai sus, voi primi o alertă e-mail de notificare de fiecare dată când serverul este în jos. If I want to receive it in a form of SMS on my mobile, I will need subscribe “email to SMS” service from Dacă vreau să-l primească într-o formă de SMS pe mobil, am avea nevoie de subscrie "e-mail la SMS" serviciu de la Clickatell Clickatell , , World-Text World-Text or any other provider that offers such service. sau orice alt furnizor care oferă un astfel de serviciu.

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. Acolo nu a fost nici o actualizări pe Blat pentru mai mult de 2 ani, dar nu pot verifica dacă funcţionează fără probleme pe serverul meu webhosting SMTP. 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. Cu toate acestea nu cred că puteţi folosi Gmail, Hotmail, Yahoo şi SMTP pentru a trimite e-mail, deoarece acest serviciu de e-mail 3 necesită SSL şi nu pot găsi această opţiune în Blat. You can try Puteţi încerca să SendEmail SendEmail which supports TLS but you will first need to install the care susţine TLS, dar va trebui mai întâi să instalaţi Net::SSLeay and IO::Socket::SSL Net:: SSLeay si IO:: Socket:: SSL perl modules on Windows. module Perl pe Windows.

[ [ Visit Blat Official Homepage Vizitaţi Blat Oficial Homepage ] ]

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