Proposing Code Domation to Samba -> Incl ability to remotestart Win program from Samba client

Jeff Gehlbach sambatech at jeffg.org
Thu Mar 24 15:20:54 GMT 2005


Hi!

On Wed, Mar 23, 2005 at 10:13:14PM -0500, Michael B Allen wrote:
> > There is no built-in RPC that I'm aware of for spawning arbitrary
> > executables.
> 
> Yeah there is. There's atsvc.ScheduleJobAdd(). Of course it can take up to
> 60 seconds for the schedualed job to run and once the call is made the RPC
> just returns so if you need to read the output or get a return code you
> would have to fudge something.

Yep, that's true.  It's worth mentioning (mainly for the archives as I'm
beginning to drift OT) that this approach requires the 'Schedule'
service (display name "Task Scheduler") to be started on the remote
system.

> But technically it works. JCIFS has an example that launches notepad.exe
> on the target machine.

Yes, I've used it as well but found the lag and the lack of feedback
outweighed the easier setup.

-jeff


More information about the samba-technical mailing list