Hi, Can anyone please tell me whether we can pull the file from the remote server tru FTP, with the same date the file is available in remote server? Thanks, Punitha 1 Reply. Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
To ftp file on a remote server. I want to send some files in. What will be the procedure for that thanks 5 Replies. Contantly check for file at the remote server and ftp when avaliable. Hello, I used the search engine but could not find the solution I am looking for.
Probably its simple but I do not know the solution. My requirement is I ftp files every day in the morning from the remote server to the local machine. Now if the files are not there at the time I schedule the ftp FTP a file to a remote Server. Dear all, I am trying to push a data file to a remote Server. I am taking date variable from the database. RedHat Commands. OpenSolaris Commands. Linux Commands. SunOS Commands. FreeBSD Commands.
Full Man Repository. Advanced Search. Contact Us. Forum Rules. Mark Forums Read. Group I am in a project where we are downloading the file from an ftp without any problem, only that it was asked to get the date that the file was made available on the ftp, for internal control purposes, in this case how I would be able to do this part to obtain the date that the file was made available within ftp?
Where I am sending part of the code to get a sense of how it has been done so far. Read buffer, 0, buffer. Abort ;. Wednesday, March 4, PM. LastModified; Console. ToString ;. Marked as answer by neibala Thursday, March 12, PM.
Hi beibala, Thank you for posting here. C has a class FileInfo that can modify the last modified time of a file. Try the following code. Abort ; Hope this could be helpful. Thursday, March 5, AM. It takes almost no time to fetch the timestamp, so I don't know why you're hesitant to do that.
Active 2 years, 9 months ago. Viewed 5k times. But by default it returns an array sorted by name. Please help me! Martin Prikryl k 47 47 gold badges silver badges bronze badges.
I bet you're going to have to use: php. Add a comment. Active Oldest Votes. Both these servers support the -t flag to sort the files by a modification time: LIST -t Though this is not only non-standard, it actually violates the FTP protocol.
Martin Prikryl Martin Prikryl k 47 47 gold badges silver badges bronze badges. Thanks, I think that my ftp server does not supports that feature. I'll sort them locally — Tien Nguyen Van. Yeah I know, this's the final answer — Tien Nguyen Van.
Sign up or log in Sign up using Google.
0コメント