Works like a charm!!

Thanks Danny! 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Danny Mallory
Sent: Tuesday, February 17, 2004 1:58 PM
To: sambar List Member
Subject: [sambar] Automatic Server Re-boot?

create a dos batch file in c:\ maybe as "sambarres.bat" with:
net stop "sambar server"
net start "sambar server"

Then create a AT scheduler for it.

at 03:00:00 /every:M,T,W,Th,F,S,Su "c:\sambarres.bat"

I use this a lot with frequent task like moving files, kicking off command
line perl jobs that remove old data, log files, backups, etc.. 

Danny



On 17/Feb/2004 08:51:35, Paul Alger \(Ironclad\) wrote:
> I guess that is one way to do it.  I really only need to restart 
> Sambar though.. Not the whole machine.
> 
> In the docs I can see how to install the Sambar as a service (-i), how 
> to uninstall as a service (-u) and how to execute the server directly
(-d).
> Now if I can find a command to stop the server, I can write a bat file 
> to stop the server, pause a few seconds and then restart it using the 
> -d option.
> 
> Problem is, I can't seem to figure out a way to stop the server...
> 
> Paul
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Simons, Rick
> Sent: Tuesday, February 17, 2004 8:05 AM
> To: sambar List Member
> Subject: [sambar] Automatic Server Re-boot?
> 
> shutdown.exe -r works on XP .. I think it comes with the NT resource 
> kit for NT/2k ...
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Behalf Of Paul Alger (Ironclad)
> Sent: Tuesday, February 17, 2004 10:59 AM
> To: sambar List Member
> Subject: [sambar] Automatic Server Re-boot?
> 
> 
> 
> Can anyone thing of a way that Sambar can be re-booted on a schedule?  
> This e-mail problem is going to be the death of me unless I can find a 
> way to at least treat the symptom (versus having Todd come up with a fix).
> 
> I figure if I can reboot the server twice a day using task scheduler 
> or something, I may get my life back.  My wife wants us to go out of 
> town for a few days but I simply can't unless I take my laptop and 
> have an internet connection available to baby-sit this mail server!
> 
> Rebooting the server every 12 hours may not be the best fix, but it should
> work for me.    If anyone can think of a way to do this, please let me
> know!!
> 
> Paul
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
>  
> 
> 
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
>  
> 
> 
> 
> -------------------------------------------------------
> To unsubscribe please go to http://www.sambar.ch/list/
> 
> 
> 
> 
> 
> 
> 






-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/





---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
 



-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



Reply via email to