Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: write/read to remote machine

by hari9 (Sexton)
on Jul 28, 2010 at 19:44 UTC ( #851775=note: print w/replies, xml ) Need Help??


in reply to Re: write/read to remote machine
in thread write/read to remote machine

I tried putting the path in single quotes and it worked as I expected in windows machine.(removed the ip address of the local machine in that case.), still didnt work.

Thanks for your reply

Replies are listed 'Best First'.
Re^3: write/read to remote machine
by roboticus (Chancellor) on Jul 28, 2010 at 21:47 UTC

    Did you double-up on the backslashes? The single quotes prevents $\ from interpolating, but '\\' still converts to '\':

    Roboticus@Roboticus-PC ~ $ cat interp.pl #!/usr/bin/perl print '\\10.64.30.27\C$\Users\hari9', "\n"; print '\\\\10.64.30.27\\C$\\Users\\hari9', "\n"; Roboticus@Roboticus-PC ~ $ perl interp.pl \10.64.30.27\C$\Users\hari9 \\10.64.30.27\C$\Users\hari9

    ...roboticus

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://851775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-08-09 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?