This is the mail archive of the
mailing list for the Cygwin project.
Re: "net use" command works locally on the sytem where cygwin is installed but using rsh doesnt work
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: jaimin bhavsar <jaimin76 at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 6 Aug 2007 17:56:18 -0400 (EDT)
- Subject: Re: "net use" command works locally on the sytem where cygwin is installed but using rsh doesnt work
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
On Mon, 6 Aug 2007, jaimin bhavsar wrote:
> Hi There,
> I am trying following command locally :
> net use z: \\\\<ipaddress>\\<sharename>
> but the same thing if I try using rsh It does not work
> rsh -l Administrator <ipaddress> net use z:
> I get following message :
> The syntax of this command is:
> NET USE
> More help is available by typing NET HELPMSG 3506.
> Please help me out if executing "net use" command
> using rsh.
> I checked the mailing list and found the similar
> thread with "ssh" but I was not able to crack this
The command you give will be sent to the remote shell and re-parsed. So,
you have to escape the backslashes twice.
Or, you could just put single quotes around the path to the share.
Note that this does not guarantee that you'd be able to access the share,
only that the remote end will see the right share name. See
<http://cygwin.com/faq/faq.using.html#faq.using.shares> for details.
|\ _,,,---,,_ firstname.lastname@example.org | email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Belief can be manipulated. Only knowledge is dangerous. -- Frank Herbert
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html