Execution on NT

Neil Hoggarth neil.hoggarth at physiol.ox.ac.uk
Fri Sep 1 08:45:48 GMT 2000

On Thu, 31 Aug 2000, DAGNICOURT Sebastien - NTR wrote:

> I try to exectute a command on my NT server from my unix server with =
> the
> following command :
> smbclient \\\\monnet01\\C$ -U admin_nan -c "help.exe"

smbclient can't do that, I'm afraid. The "-c command" option to
smbclient is for you to supply an *smbclient* command line, not
a Windows command line. So, running something like

  smbclient '\\server\printer' -N -c "print file.ps"

is equivalent to running

  smbclient '\\server\printer' -N

and typing "print file.ps" at the "smb:\>" prompt.

Neil Hoggarth                                 Departmental Computer Officer
<neil.hoggarth at physiol.ox.ac.uk>                   Laboratory of Physiology
http://www.physiol.ox.ac.uk/~njh/                  University of Oxford, UK

More information about the samba mailing list