Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
July 16, 2003, 6:47 am
rate this thread
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
The command would be,
putty -ssh -pw password email@example.com -m somefile.sh
I am getting a dialog box that says, "unable to open command file
I've tried absolute paths (/u01/home/user/somefile.sh), relative paths
(./somefile.sh), 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...
Heh - thanks. You'd never know that from the documentation:
220.127.116.11 -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...
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum