escaping network paths when using console.command()

Esher, Marc (4-7260) mesher at argusgroupinc.com
Tue Oct 25 18:45:12 MEST 2005


Greetings,

  Take the following code:

 

cmdLine = "echo \\\\my\network\path";

SSH2ConsoleRemote console = new
SSH2ConsoleRemote(client.getConnection(), null, System.err);

console.command(cmdLine);

BufferedReader stdout = new BufferedReader(new
InputStreamReader(console.getStdOut()));

String line;

       while((line = stdout.readLine()) != null) {

            System.out.println("runRemoteCommand: " + line);

}

                        

 

When I run the code, it appears that all of the backslashes are being
stripped by the command() method. Is there a way to defeat this? I'm
working with a version of mindterm.jar from September, 2003.

 

Thanks so much for any help.

 

Marc                                         

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mindterm.appgate.com/pipermail/mindterm-users/attachments/20051025/f82cbd3d/attachment.htm


More information about the Mindterm-users mailing list