Using Putty Command Line, -m option, problems...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm trying to execute a remote command on a Linux box from Win2k.

The Putty docs state this can be done with the -m command (though no
example given).

The command would be,

putty -ssh -pw password user@ -m

I am getting a dialog box that says, "unable to open command file

I've tried absolute paths (/u01/home/user/, relative paths
(./, just the filename (as in the example above), and so

Anyone have any suggestions? If I use the Remote Command box inside
Putty, I can get it to execute. The docs aren't much help here


Re: Using Putty Command Line, -m option, problems... <> writes:
Quoted text here. Click to load it

-m takes the filename of a _local_ file on your Windows system.

Re: Using Putty Command Line, -m option, problems...

On 16 Jul 2003 09:29:25 +0100 (BST), Jacob Nevins

Heh - thanks. You'd never know that from the documentation: -m: read a remote command or script from a file

The -m option performs a similar function to the "Remote command" box
in the SSH panel of the PuTTY configuration box (see section 4.17.1).
However, the -m option expects to be given a file name, and it will
read a command from that file. On most Unix systems, you can even put
multiple lines in this file and execute more than one command in
sequence, or a whole shell script.

I guess the word "remote" was in there often enough to make me think
it was the remote file...

Anyway, thanks for the info...


Site Timeline