Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: write/read to remote machine

by runrig (Abbot)
on Jul 27, 2010 at 21:37 UTC ( #851615=note: print w/replies, xml ) Need Help??


in reply to write/read to remote machine

Not that it'll help much in your case, but if opendir or open fail, you should display the associated error message, e.g.:
open(my $fh,">drive1.txt) or die "Error opening file: $!";
In any case, did you read and do you understand what opendir does? I do not think it does what you think it does.

To help with your problem, can you ftp or scp files to the linux machine? putty runs on windows and has ssh/scp clients.

Replies are listed 'Best First'.
Re^2: write/read to remote machine
by hari9 (Sexton) on Jul 28, 2010 at 19:41 UTC

    opendir, It opens a a new folder under the given path ( the last part of the path being the new folder you want to create)

    I tried writing the same code on windows, and it worked.

    I use Putty to logon to the unix machine, but should ssh/scp code be included in the perl script?

    Thanks for the reply!
      opendir, It opens a a new folder under the given path ( the last part of the path being the new folder you want to create)
      No, did you read the documentation? Or the documentation for readdir that the first docs link to for a usage example?
      I use Putty to logon to the unix machine, but should ssh/scp code be included in the perl script?
      Yes, if you don't want to or are unable to set up samba on the linux machine. Does a plain file copy from the command line work? Is samba already set up?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-08-14 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?