|
Posted by Jimmy on July 6, 2007, 1:46 am
Please log in for more thread options
I use Net::FTP to put file to an OpenVMS host.
As on OpenVMS new file is transferred by plus the version number by one
everytime instead of overwriting the old file.
I don't know whether Net::FTP has some method to force to overwrite the
file with the new transferred one.
|
|
Posted by Sherm Pendley on July 6, 2007, 4:21 am
Please log in for more thread options
> I use Net::FTP to put file to an OpenVMS host.
>
> As on OpenVMS new file is transferred by plus the version number by one
> everytime instead of overwriting the old file.
>
> I don't know whether Net::FTP has some method to force to overwrite the
> file with the new transferred one.
I highly doubt it. The versioning that you're seeing is a feature of VMS,
not of the FTP daemon you're connecting to, or of Perl's Net::FTP module.
There might be some means by which the system admin can disable versioning
for a specific directory, disk, or in general - I honestly don't know. That
question would be better asked (and more likely to be answered) in a group
that discusses OpenVMS administration.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net Cocoa programming in Perl: http://camelbones.sourceforge.net
|
|
Posted by Thomas Kratz on July 6, 2007, 5:36 am
Please log in for more thread options
Jimmy wrote:
> I use Net::FTP to put file to an OpenVMS host.
>
> As on OpenVMS new file is transferred by plus the version number by one
> everytime instead of overwriting the old file.
>
> I don't know whether Net::FTP has some method to force to overwrite the
> file with the new transferred one.
No Net::FTP doesn't, but you don't need it anyway :-)
VMS treats <file_name>;0 as the last version of the file. So doing a
$net_ftp_obj->put($file_name, "$file_name;0");
should do the trick.
This is the same for every other FTP client as well.
Thomas
--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*3),,mg,@_=mapsplit;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
|
| Similar Threads | Posted | | Looking for a file transfer module NOT ftp | May 9, 2006, 11:12 pm |
| Question on platform dependency of ExtUtils::Command::MM (file globbing) | December 17, 2006, 7:49 am |
| Net::SFTP transfer speed | December 14, 2004, 8:14 am |
| Information transfer over the internet | March 31, 2005, 10:46 am |
| Remote.pm (File::Remote) error handling question | January 29, 2007, 12:57 pm |
| install HTML::Template - Problem reading cache file / Bad file number | July 24, 2004, 7:55 pm |
| Reading contents of an excel file from a test file | May 15, 2007, 2:49 am |
| A do-file location: how the code inside that do-file find it? | January 20, 2008, 12:32 am |
| DBD:mysql doesn't read mysql option file /etc/my.cnf file | January 27, 2005, 11:19 pm |
| DBI question | November 5, 2004, 4:28 pm |
|