When I run the script or run ftp manually, I have a PuTTY session open to the destination server and directory so that I can see the progress. From the script it takes approximately 6 minutes to transfer 1GB of data. When run interactively 1GB transfers in about 40 seconds.
Everything should be the same. FTP works from the script, it is just like it has been throttled. One more thing I thought of, our production server runs a script every 3 minutes during the first 10 days of the month that polls for ftp connections where data files are being submitted by our customers. I wonder if the previous admin (who did not docuemnt anything ) added something to the config which is throttling the bandwidth on non-interactive ftp connections?
Not sure if it's possible, but then again I have not done much with the ftpd myself.
One thing from 'man ftpd' (on Solaris) kinda caught my eye:
maybe there's an extensive logging going on with the '-i' option that you have in your script and don't have with the cli.
Quote:
Originally Posted by Countificus
What exactly does set-x do? I am pretty green, but I am catching on fast. I was a Windoze AD and Exchange admin for 10 years before I got this job and have been in the UNIX world for about 6 months.
'set -x' will output ALL the commends from the script as they're to be executed - this is a shell's debugging mechanism.
Hello everyone,
we are running VSFtpd as FTP Server on Redhat AS 5. I would like to have a script to be run immediately after every FTP transfer. Is is possible (or with any other FTP Server?).
I thought of writing a script to monitor if FTP transfer happening and run the required-script... (2 Replies)
Hi everybody,
I just want to transfer files with FTP (mget and mput). The problem is that I dont want to overwrite any existing files and don't want to transfer them again (e.g. using the rename-function). So I only want to transfer new files with mget and mput.
My first idea was to create... (3 Replies)
Hi all,
I would need a bash script to sync/transfer folders recursively via FTP/RSYNC
(I initially planned to use FTP but I heard RSYNC would fit a lot better for this job(?))
The situation:
3 different Linux servers
1. source
2. destination - Samba
3. Server where the script runs on
... (2 Replies)
Hi,
I am experiencing extremely show transfer rates when transferring zip files over SFTP. Over FTP it works fine.
I have disabled compression in the sshd_config file but that does not seem to help..
Any ideas? (0 Replies)
Dear All,
We run backup script to update backup file every hour.
I want to create a script, which transfer these files in another server using ftp as new backup file created every hour. Files should be stored with a unique name for every hour(e.g 20130708_13:00 , 20130708_14:00 and so on) and... (13 Replies)
I've K shell script. It will transfer the files from one server to other server using 'SCP' command. While running the script alone as a command line in UNIX ssh terminal its running with out asking password and files are transferred with out asking for password. But by running the script using... (6 Replies)
I have shell program as below
#!/bin/sh
echo ======= LogManageri start ==========
#This directory is getting the raw data from remote server
Raw_data=/opt/ftplogs
# This directory is ready for process the data
Processing_dir=/opt/processing_dir
# This directory is prcoessed files and... (4 Replies)
Discussion started by: Chenchireddy
4 Replies
LEARN ABOUT FREEBSD
ftpaddhost
ftpaddhost(1M) System Administration Commands ftpaddhost(1M)NAME
ftpaddhost - set up a virtual FTP host
SYNOPSIS
ftpaddhost -c | -l [-b] [-x xferlog] hostname root_dir
DESCRIPTION
The ftpaddhost script is executed by the super user to set up virtual FTP hosts. The ftpaddhost command configures the virtual host host-
name under directory root_dir. The value of hostname can be an IP address or the name of a host.
OPTIONS
The ftpaddhost script supports the following options:
-b Create a banner for the virtual host. This option is useful to confirm that the virtual host is working.
-c Configure complete virtual hosting. This option allows each virtual host to have its own version of the ftpaccess,
ftpconversions, ftpgroups, ftphosts, and ftpusers files. The master version of each of these configuration files is
copied from the /etc/ftpd directory and placed in the /etc/ftpd/virtual-ftpd/hostname directory. If the
/etc/ftpusers file exists it is appended to the virtual ftpusers file. If a virtual host lacks its own version of a
configuration file, the master version is used.
-l Configure limited virtual hosting. This option allows a small number of parameters to be configured differently
for a virtual host. See the virtual keyword on the ftpaccess(4) manual page.
-x xferlog Create a logfile entry such that the transfer logs for the virtual host are written to the specified file. An abso-
lute path must be specified for the xferlog file.
OPERANDS
The following operands are supported:
hostname The host name or IP address of the virtual server.
root_dir The absolute pathname of the directory under which the virtual server is set up.
EXIT STATUS
The following exit values are returned:
0 Successful completion
1 Improper usage of the command
2 Command failed
FILES
/etc/ftpd/virtual-ftpd/hostname The configuration files directory for the virtual host hostname.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWftpu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO ftpconfig(1M), in.ftpd(1M), ftpaccess(4), ftpconversions(4), ftpgroups(4), ftphosts(4), ftpusers(4), xferlog(4), attributes(5)SunOS 5.10 1 May 2003 ftpaddhost(1M)