Re: problem with SshClient
Andre Charbonneau <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
The problem is that the file separators are interpreted as escape
characters.
Try escaping the file separators by using double '\' characters. For
example:
"C:\\<Dir1>\\<Dir2>\\<command>"
Cheers,
Andre
meenakshi venkateswaran wrote:
> Hi..
>
> I am using SshClient to connect to a windows 2003 server machine from
> my machine which is running WinXP, after which I have to execute some
> commands on the remote win machine. When I pass string
> "C:\<Dir1>\<Dir2>\<command> into the executeCommand() method I get an
> error saying:
> *C:<Dir><Dir><command>* not found
> Please note the missing file separators.
> Can anyone please tell me why the file separators are missing and how
> to rectify this problem??
>
> Thanks in advance for all you help and suggestions..
> Meenakshi
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sshtools-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sshtools-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV