[Samba] any plans on getting psexec / cmdat equivalent to Samba?
David.Shapiro at bcbsnc.com
Sun May 28 15:34:54 GMT 2006
How about ssh?
ssh host ls
Unix Team Lead
>>> "roland" <devzero at web.de> 5/26/2006 6:39:45 PM >>>
If anybody want`s to implement the psexec unix port or samba
maybe taking a look at xCmd from Zoltan Csizmadia at
may help a LOT and is a very good example. (This one seems to work
like psexec - but it is available with sourcecode!)
I don`t know if the author is still reachable via this mail adress or
there is any chance to get some help with "creating the xCMD/psexec
equivalent for linux", but I CC'ed him with this mail to say "thank you
making it and for providing the source".
Subject: [Samba] any plans on getting psexec / cmdat equivalent to
From: Tomasz Chmielewski <mangoo () wpkg ! org>
Date: 2006-03-22 11:00:23
Message-ID: 44212E47.4040300 () wpkg ! org
[Download message RAW]
Windows admins can make their work easier with a tool like psexec.
It allows to execute commands remotely, without the need to install
anything on the target machine. All that is needed is
Unfortunately, psexec command only runs on Windows.
The usage is as follows (we start notepad interactively with -i to
that something happens):
psexec \\192.168.1.2 -i -u username -p password notepad
It waits for the command to complete, and returns its exit code, so
be used within scripts.
A similar tool we can use with Samba is cmdat, which comes together
samba-tng (one just needs to compile samba-tng, and then can use
tool with a "regular" Samba).
To start a command on a remote system, we can use (we start notepad
interactively with /interactive to show that something happens):
cmdat -I 192.168.1.2 -U 'username%password' -c 'at now /interactive
Unfortunately, it uses at to start commands (1 minute from the current
time when we use "now"), so we know nothing about the status of the
running command, nor get any exit code. In other words, it's close to
impossible to use it in scripts to do anything useful (other than
starting single commands).
Is any work done in Samba to get a tool similar to psexec?
To unsubscribe from this list go to the following URL and read the
More information about the samba