[xmail] Re: restart server via email

2006-05-04 Thread Michael Schwarz
Hi all > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michal A. Valasek > Sent: Thursday, May 04, 2006 9:07 PM > To: xmail@xmailserver.org > Subject: [xmail] Re: restart server via email > > > Hello, > > | shu

[xmail] Re: restart server via email

2006-05-04 Thread Rob Arends
ct: [xmail] Re: restart server via email Win32 platform, win2ksvr, xmail 1.21, grep for windows installed so that the email will have a code in it and proceed if code is there. I took a long rest and came back to it... I have it sorta working. Im going to lay it out and hopefully everyone will

[xmail] Re: restart server via email

2006-05-04 Thread Michal A. Valasek
Hello, | shutdown.exe \\computername /R /T:05 /C by default, XMail service is running under "Local System" account. This is special account, which (to say simply) has local system administrator privileges, but can not access network resources. You can run whole XMail under some other user acc

[xmail] Re: restart server via email

2006-05-04 Thread waassssuu pppp
Win32 platform, win2ksvr, xmail 1.21, grep for windows installed so that the email will have a code in it and proceed if code is there. I took a long rest and came back to it... I have it sorta working. Im going to lay it out and hopefully everyone will understand and comment: pcreboot.cmd: @e

[xmail] Re: restart server via email

2006-04-01 Thread John Kielkopf
Grab something like grep for windows: http://www.interlog.com/~tcharron/grep.html and use something like: @echo off if "%~1"=="" exit 0 if not exist "%~1" exit 0 set /a maxfileSize=2048 if /i %~z1 GTR %maxfileSize% exit 0 grep "your-sec-code" %~1 if not %ERRORLEVEL%==0 exit 0 echo your reboot cod

[xmail] Re: restart server via email

2006-04-01 Thread waassssuu pppp
No issues and no problems but I want to be able to do it if I want to. I just need help with the script if you saw it in the previous email. I need a way to look in the body of an email for a code and if it sees that code proceed with the script. Its not really a bad idea or security problem. Yo

[xmail] Re: restart server via email

2006-04-01 Thread John Kielkopf
Your last two emails, and your test came through here fine. I'm not sure what you're asking exactly, but if it's for an opinion; I don't think restarting via email is a great plan. Surely, if you have the need to reboot your server like this, there are other issues with the server that need r