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: jaimin bhavsar <jaimin76 at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 7 Aug 2007 09:55:01 -0700 (PDT)
- Subject: Re: "net use" command works locally on the sytem where cygwin is installed but using rsh doesnt work
Now, as you said after using quotes and extra shashs
for I am able to get correct command on the system,
but now I am getting another error :
System Error 1223 has occured.
The operation was canceled by user
The share I am trying to access is a public share and
I do not require a password to access it.
When I checked Application event logs I get :
The description for Event ID ( 0 ) in Source ( rshd )
cannot be found. The local computer may not have the
necessary registry information or message DLL files to
display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The
following information is part of the event: rshd: PID
2600: root@nws-bur-121-205 as Administrator: cmd='net
use z: \\\\10.8.121.42\\myshare'.
--- Igor Peshansky <email@example.com> wrote:
> On Mon, 6 Aug 2007, jaimin bhavsar wrote:
> > Hi There,
> > I am trying following command locally :
> > net use z: \\\\<ipaddress>\\<sharename>
> > works
> > but the same thing if I try using rsh It does not
> > rsh -l Administrator <ipaddress> net use z:
> > \\\\<ipaddress>\\<sharename>
> > I get following message :
> > The syntax of this command is:
> > NET USE
> > [snip]
> > 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
> > down.
> 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
> for details.
> |\ _,,,---,,_ firstname.lastname@example.org |
> ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D.
> (name changed!)
> |,4- ) )-,_. ,\ ( `'-' old name: Igor
> '---''(_/--' `-'\_) fL a.k.a
> JaguaR-R-R-r-r-r-.-.-. Meow!
> Belief can be manipulated. Only knowledge is
> dangerous. -- Frank Herbert
> Unsubscribe info:
> Problem reports:
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html