06-16-2005
Quote:
Originally Posted by Javi
First of all, thanks for the answers
I have tested all this solutions but by now, I'm not able to get if the file is complete downloaded.
The command 'lsof' doesn't show the file that the 'vsftpd' process is writting. I get the same problem with 'fuser'.
I have made a C program that lock in exclusive mode the file. I thought that If I am able to lock the file then the file is not open by another process. But It doesn't work, the program is able to lock the file although the file is downloading.
The real problem appear to be that, nowhere in the Linux system reside information about the files than the vsftpd daemon is working with ...
My system receive files from a lot of external different systems, so I can't request to all this systems ( some of them, another companies ) a second file to confirm that the first one is completed.
Why dont you check the size of the downloaded file's size in an interval of say 30 secs, if they are same, it is inferred the FTP is completed.
10 More Discussions You Might Find Interesting
1. HP-UX
FROM WINDOWS , WHILE GETTING DATA FROM HP-UNIX SERVER USING FTP, I AM ABLE TO GET DATA ONLY LESS THAN 4GB FILE, PLZ HELP ME HOW TO GET MORE MORE THAN 4GB FILE. (4 Replies)
Discussion started by: niranjan
4 Replies
2. HP-UX
from windows ftp tool even you are not root user you can delete root files (8 Replies)
Discussion started by: mkhsy
8 Replies
3. Shell Programming and Scripting
Dear All,
Please to be inform you,I have posted one thread on this forum last 5 days back. I was not getting suggestions for my thread. So i am creating a new thread with detailed of my R&D.
I am new in Shell Scripts, Perl and Cron Jobs. I have one requirement in Cron jobs for FTP Download.... (5 Replies)
Discussion started by: moorthygs
5 Replies
4. UNIX for Dummies Questions & Answers
I am trying to download from ftp server (rsync and postfix). But every time I connect to the ftp server, it prompts for USER and PASS but I don't know which username and and password to use. And I am using command based UNIX OS. (2 Replies)
Discussion started by: kumarrana
2 Replies
5. Shell Programming and Scripting
Hi all,
I'm having problems downloading files from ftp server. I have to download only those files that name starts with YYYYMMDD.But file comes like the format "20080624221035.TXT".Also how i can get list of all file names with in specified folder.
Here i paste my code
ftp -vn... (1 Reply)
Discussion started by: vaskarbasak
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I know this is probably a very silly question for most but how to do I force curl to do active FTP downloads?
Thank you
Dallas (2 Replies)
Discussion started by: Dallasbr
2 Replies
7. Windows & DOS: Issues & Discussions
Hi all,
I want to download patches using any FTP client by connecting to updates.oracle.com site on windows platform.Please advice me on this.
I am using windows xp operating system
Thanks in advance (0 Replies)
Discussion started by: William1482
0 Replies
8. Shell Programming and Scripting
Dear all,
I am beginner to shell scripting.
I have to download more than 1k files from ftp site.
link is below
ftp://ftp.ncbi.nih.gov/genomes/Bacteria/
Earlier i was using wget url, for download but the problem is some times folder names get changed, i don't know how to move in directories... (4 Replies)
Discussion started by: admax
4 Replies
9. Shell Programming and Scripting
Our main Server "Srv1" is used to generate text files based on specified criteria and it is also connected to two clients (pc1 and pc2) which are responsible for getting the files from Srv1 as it follows:
1. pc1 ( which represents my UNIX machine ) uses shell script to copy the files from Srv1
2.... (3 Replies)
Discussion started by: arm
3 Replies
10. Shell Programming and Scripting
Hi,
I have few files at FTP location and have written a script to download the same from ftp based on the sysdate - 1, however with the below code I am unable to download the files from FTP.
x=`TZ=CST+24 date +%Y%m%d`
mget Daily_BIH_$x_NEW.tar.gz
can anyone please help me in... (10 Replies)
Discussion started by: rramkrishnas
10 Replies
LEARN ABOUT CENTOS
vsftpd
VSFTPD(8) BSD System Manager's Manual VSFTPD(8)
NAME
vsftpd -- Very Secure FTP Daemon
SYNOPSIS
vsftpd [configuration file and / or options]
DESCRIPTION
vsftpd is the Very Secure File Transfer Protocol Daemon. The server can be launched via a ``super-server'' such as inetd(8) or xinetd(8).
Alternatively, vsftpd can be launched in standalone mode, in which case vsftpd itself will listen on the network. This latter mode is easier
to use, and recommended. It is activated by setting listen=YES in /etc/vsftpd/vsftpd.conf. Direct execution of the vsftpd binary will then
launch the FTP service ready for immediate client connections.
Systemd changes the vsftpd daemon start-up. The vsftpd package contains vsftpd-generator script generating symbolic links to /var/run/sys-
temd/generator/vsftpd.target.wants directory. The generator is called during e.g. 'systemctl --system daemon-reload'. All these symbolic
links link /usr/lib/systemd/system/vsftpd@.service file. The vsftpd daemon(s) is/are controlled by one of following ways:
1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
# systemctl {start,stop,...} vsftpd[.service]
2. Single daemon using /etc/vsftpd/<conf-name>.conf
# systemctl {start,stop,...} vsftpd@<conf-name>[.service]
3. All instances together
# systemctl {restart,stop} vsftpd.target
See systemd.unit(5), systemd.target(5) for further details.
OPTIONS
An optional configuration file or files may be given on the command line. These files must be owned as root if running as root. Any command
line option not starting with a "-" character is treated as a config file that will be loaded. Note that config files are loaded in the
strict order that they are encountered on the command line. If no config files are specified, the default configuration file of
/etc/vsftpd/vsftpd.conf will be loaded, after all other command line options are processed.
Supported options are:
-v Print the version information and exit, even if other options are encountered.
-ooption=value
Set a single option, value pair as per the format in the config file. Multiple -o options are supported, and they are applied in
strict order relative to their appearance on the command line, including intermingling with loading of config files.
EXAMPLES
vsftpd -olisten=NO /etc/vsftpd/vsftpd.conf -oftpd_banner=blah
That example overrides vsftpd's built-in default for the "listen" option to be NO, but then loads /etc/vsftpd/vsftpd.conf which may override
that setting. Finally, the "ftpd_banner" setting is set to "blah", which overrides any default vsftpd setting and any identical setting that
was in the config file.
FILES
/etc/vsftpd/vsftpd.conf
/usr/lib/systemd/system/vsftpd.service
/usr/lib/systemd/system/vsftpd@.service
/usr/lib/systemd/system/vsftpd.target
SEE ALSO
vsftpd.conf(5) systemd.unit(5)
March 8, 2001