Hi All,
Now there is one more problem:) .. the file I am getting from windows to SOLARIS machine contains ^M characters.... Can PERL handle such file.. removing ^Ms automatically.. or do I have to use some utility for this?
Thanks,
-- Smita
smi pawar <[EMAIL PROTECTED]> wrote:
Hi ,
Thanks A Lot Torsten...
rcp 'ntbox:"/Program files/myfile.txt"' works fine.
rcp '"ntbox:/Program files/myfile.txt"' gives error ntbox: unknown host.
Actually, This has nothing to do with perl, running rcp on command line (instead of perl script)
gives same results.
The other solution( puttting \ before space) didn't work.But still thanks for the replies.
Thanks A Lot to all of you,
---- Smita
Torsten Förtsch <[EMAIL PROTECTED]> wrote:
Try
rcp '"ntbox:/Program files/myfile.txt"' .
or
rcp 'ntbox:"/Program files/myfile.txt"' .
I think the UNIX needs the outer quotes (') but your NT also wants the blank to be quoted.
On Sun, 17 Feb 2002 00:46:38 -0800 (PST)
smi pawar <[EMAIL PROTECTED]>wrote:
>
> Hi all,
>
> I want to remote copy a file from a windows machine ( from C:\Program files) to a SOLARIS machine. So I am using rcp .... It works fine when the source file path does not contain spaces:
>
> e.g. rcp ntbox:/myfile.txt .
>
> In this case the source file is in ntbox:c:\
>
> This works fine.
>
> But when I give command like :
>
> rcp ntbox:/Program files/myfile.txt .
>
> In this case the source file is in ntbox:c:\Program files
>
> It prompts following error:
>
>! ! /Program: The system cannot find the file specified. (Error 2)
> cp: cannot access Files/myfile.txt
>
>
> So I tried following :
>
>
> bash$ rcp "ntbox:/Program Files/myfile.txt" .
> /Program: The system cannot find the file specified. (Error 2)
>
> bash$ rcp 'ntbox:/Program Files/myfile.txt'
> /Program: The system cannot find the file specified. (Error 2)
>
> Can anybody please help me regarding this?
>
> Thanks,
>
> ---- Smita
>
>
>
>
>
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games