geeks question about FTP commands?
Posted: 24 May 2004, 09:45
anyone used command-line FTP in anger?
i need to transfer a stack of files from a windows box to a unix box (its a hp box if that matters) via command-line FTP.
i have a .bat file that logs into the ftp server and runs the following commands:
the PROMPT command toggles the command prompt
the LITERAL command sets the default CHMOD values for the files about to be sent
the MPUT command sends the files
i need to preserve the datestamp of the files, but at the moment they seem to end up with the transfer-time set as their last-modified date.
i want to keep the original datestamp.
any ideas how i do this? i've seen it done with ftp client software (ie: a checkbox you can tick to preserve the date/timestamp) but i'm using the microsoft command line ftp client and cant seem to be able to do it.
is it a server-side setting (ie: a LITERAL SITE command?) or is it a client side command (ie: a switch or something i need to put on the end of the MPUT line?)
bloody thing.
i need to transfer a stack of files from a windows box to a unix box (its a hp box if that matters) via command-line FTP.
i have a .bat file that logs into the ftp server and runs the following commands:
Code: Select all
prompt
literal site umask 012
mput c:\ftp\Sending\*.log
the LITERAL command sets the default CHMOD values for the files about to be sent
the MPUT command sends the files
i need to preserve the datestamp of the files, but at the moment they seem to end up with the transfer-time set as their last-modified date.
i want to keep the original datestamp.
any ideas how i do this? i've seen it done with ftp client software (ie: a checkbox you can tick to preserve the date/timestamp) but i'm using the microsoft command line ftp client and cant seem to be able to do it.
is it a server-side setting (ie: a LITERAL SITE command?) or is it a client side command (ie: a switch or something i need to put on the end of the MPUT line?)
bloody thing.