hari9 has asked for the wisdom of the Perl Monks concerning the following question:
Hi dear all!
I'm trying to write/read files into/from a remote machine. The machine1,
I'm working on is linux, and I try writing into machine2, windows.
#open the directory you want to create file in. syntax of the form (i believe): ipaddress\C:\Users\folder_name\ opendir(DR,"\\10.64.30.27\C$\Users\hari9\"); #create the file. open(file,">drive1.txt); for($i=0;$i<=10;$i++) {print file $i; } closedir (DR); close (file);
If I were to write from windows into a linux machine please suggest me the syntax. ( my linux machine is a virtual machine)
file::Remote wouldnt work since its only for unix.
Samba's downloads files are neither working on my windows.
Any help would be appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: write/read to remote machine
by runrig (Abbot) on Jul 27, 2010 at 21:37 UTC | |
by hari9 (Sexton) on Jul 28, 2010 at 19:41 UTC | |
by runrig (Abbot) on Jul 28, 2010 at 20:41 UTC | |
Re: write/read to remote machine
by monk2b (Pilgrim) on Jul 27, 2010 at 21:56 UTC | |
Re: write/read to remote machine
by roboticus (Chancellor) on Jul 27, 2010 at 21:54 UTC | |
by hari9 (Sexton) on Jul 28, 2010 at 19:44 UTC | |
by roboticus (Chancellor) on Jul 28, 2010 at 21:47 UTC | |
Re: write/read to remote machine
by nikosv (Deacon) on Jul 29, 2010 at 14:46 UTC |
Back to
Seekers of Perl Wisdom