Sponsored Content
Top Forums Shell Programming and Scripting Replicate remote directory to local directory with ftp Post 302770897 by before4 on Tuesday 19th of February 2013 01:31:03 AM
Old 02-19-2013
lftp give very good solution for this case , but i still have some issue with lftp

I want to download only the files that newer than latest local files( last downloaded from previous task) , tried --newer-than but have problems with different offset/timezone.

Code:
lfile=$(ls -1 | tail -n 1)
mfile=$(date -r $lfile)

lftp  -d -e "mirror --newer-than='$mfile' $rdir $ldir;bye" -u $u,$p $ips

any sugestion?
 

10 More Discussions You Might Find Interesting

1. Solaris

[FTP]opying of file from remote to local machine

Hi All, i wannna copy a file from the remote machine to my local machine using FTP protocol. i have made a connection to the remote machine , then i used the "get" cmd to copy the remote file as below :-> ftp> get (remote-file) /home/aruba/opmtools/was50/Was5Install.doc (local-file)... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies

2. Shell Programming and Scripting

Problem with ftp- how to check if the remote directory exists.?

I am trying to initiate a ftp session from my shell script in the following way. In my script, as per my requirements i am writing the required ftp commands to a file and then I am using this file to carry out the ftp process. for example temp.txt will contain cd /home/user/mydir append... (2 Replies)
Discussion started by: anijan
2 Replies

3. UNIX for Dummies Questions & Answers

Scp from local to external directory

Hi, I am trying to copy a whole directory from my home /RUN1 to the external directory jorgensen@hal.oerc.ox.ac.uk:/home/compchem/jorgensen/simulations The command I have used is: scp -r jorgensen@hal.oerc.ox.ac.uk:/home/compchem/jorgensen/simulations The error message I get is: ... (5 Replies)
Discussion started by: chrisjorg
5 Replies

4. Shell Programming and Scripting

Replicate one directory with another

I have a dir as /library/utility/apache-tomcat/tbase-6001/repositories which has many huge directories and files. I am planning to replicate it to another folder /library/utility/apache-tomcat/tbase2008-6001/repositories Normal copy command is taking a hell lot of time and getting hung in... (1 Reply)
Discussion started by: Tuxidow
1 Replies

5. UNIX for Dummies Questions & Answers

How to transfer file from Local PC to Unix Directory without FTP!!!

Dear Friends, How to transfer files from my local PC to Unix directory without using FTP. Scenario: Transfer/Upload a file from PC to unix using web browser without using FTP technologies. I heard something like sendunix and sendpc used to transfer files from unix to Desktop and... (1 Reply)
Discussion started by: kk_c2il2
1 Replies

6. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

7. UNIX for Dummies Questions & Answers

File listing from remote to local directory

Hello, I have a file at remote server. I have to select only current day's files that are dropped on ftp server. The files do not have date or timestamp on them. so I plan to get the file listing from remote server to the local server. Based on file listing date I can find out when the files... (2 Replies)
Discussion started by: pavan_test
2 Replies

8. Shell Programming and Scripting

How to transfer file from Local PC to UNIX Directory without FTP?

Dear All, i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i... (8 Replies)
Discussion started by: ripudaman.singh
8 Replies

9. Solaris

Ftp a directory to another server from the local server what is the command

ftp a directory to another server from the local server what is the command (2 Replies)
Discussion started by: PMoore
2 Replies

10. Shell Programming and Scripting

Unable to ssh and list files in local directory from remote.

#!/bin/bash script_work_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_work_area" script_config_dir="/home/websys/TEST_dpi_42_file_trnsfer_engine/PORT22/script_config" dpi_sourceServerList=$script_config_dir"/dpi_sourceServerList" dpi_srvr_42="rtm@1.1.1.1"... (8 Replies)
Discussion started by: sadique.manzar
8 Replies
UPDATE-FLASHPLUGIN-NONFREE(8)				      System Manager's Manual				     UPDATE-FLASHPLUGIN-NONFREE(8)

NAME
update-flashplugin-nonfree - program to get the newest Adobe Flash Player SYNOPSIS
update-flashplugin-nonfree --install update-flashplugin-nonfree --uninstall DESCRIPTION
The program update-flashplugin-nonfree takes care of downloading last minute information from Debian about suitable versions, removing the installed Adobe Flash Plugin if it has been reported as insecure, or, if a newer suitable version is available, downloading a newer Adobe Flash Player and its installer from the Adobe download site, run the downloaded installer to install the Adobe Flash Player on the local system, and then move the installed files to where they fit on a Debian system. A copy of the downloaded .tar.gz is saved in /var/cache/flashplugin-nonfree for later reuse. The program update-flashplugin-nonfree is used in the postinst and prerm scripts of the Debian package, but this program can also be run manually by root. OPTIONS
--install To install, update or remove the Adobe Flash Player depending on downloaded last minute information from Debian about suitable ver- sions. --uninstall To remove the Adobe Flash Player. --verbose Produce detailed information about what's happening. --quiet Produce no informational output. SEE ALSO
http://wiki.debian.org/FlashPlayer If you subscribe to this wiki page, then you will receive updates via e-mail. http://www.adobe.com/ The Adobe homepage. August 15, 2007 UPDATE-FLASHPLUGIN-NONFREE(8)
All times are GMT -4. The time now is 05:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy