belize has asked for the wisdom of the Perl Monks concerning the following question:
# Open local file for appending open(OUT,">> $config1) || $Error( "Can't open $config1" ); print OUT "$id|$datestamp|$description\n"; close (OUT); # Open remote file for appending open(OUT,">> $config2) || $Error( "Can't open $config2" ); print OUT "$id|$datestamp|$description\n"; close (OUT);
Where $config1 = "/home/path/to/config1.txt"
and
$config2 = "http://www.differentdomain.com/path/to/confi2.txt"
I get the error:
"Can't open http://www.differentdomain.com/path/to/confi2.txt"
Is there a way to access a file on a remote server for writing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing to a file on two different servers
by chipmunk (Parson) on Dec 06, 2000 at 04:00 UTC | |
by belize (Deacon) on Dec 06, 2000 at 04:07 UTC | |
by chipmunk (Parson) on Dec 06, 2000 at 04:24 UTC | |
by davorg (Chancellor) on Dec 06, 2000 at 13:52 UTC | |
|
Re: Writing to a file on two different servers
by marvell (Pilgrim) on Dec 06, 2000 at 16:14 UTC | |
|
Re: Writing to a file on two different servers
by extremely (Priest) on Dec 06, 2000 at 05:02 UTC |