Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Remotely executing scheduled tasks using samba



Basically yeah.

--
Simon Males <sime@xxxxxxxxxx>



Dean Hamstead wrote:
like say?

ssh dean@xxxxxxxx /path/somescript.sh


Dean

Simon Males wrote:
Hello all,

  Earlier today I found out that Windows Scheduled Tasks can be executed
remotely from another Windows system using schtasks.exe with the
following syntax:

schtasks /Run /TN "Backups" /S "remote_system_name"

This is actually quite cool. Though I need to do this from a Linux system.
Has anyone used schtasks from a Linux system? Or know about MS-RPC (which
I guess is doing the ground work).