Multiple FTP scripts submitted to a subprocess


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Multiple FTP scripts submitted to a subprocess
# 1  
Old 02-11-2005
Question Multiple FTP scripts submitted to a subprocess

Why does running 5 FTP scripts sequentially take longer to run (16 seconds)
than when all 5 are submitted to a subprocess and run simultaneously (7 seconds)?
I would think there would be some I/O contention.
There are about 10 files to be FTP'd in each script.
Although each script connects to the same FTP site,
each script writes to a separate directory.
I tried just one FTP script and just changed directories before putting the files,
but it still took about 16 seconds.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Multiple Users - Multiple Scripts

Hello All, I have to restart 100's of scripts for at least 20+ users once the server restarts for any reason. I wanted to come up with a single script to trigger of all scripts/programs under all users with just one script (without root privilege). Is it possible to do so? :confused: If not,... (6 Replies)
Discussion started by: PikK45
6 Replies

2. Shell Programming and Scripting

Calling multiple scripts from another scripts

Dear all, I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out. Here is the snippet:- #!/bin/bash HSFILE=/root/Test/Components.txt LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies

3. Shell Programming and Scripting

[HELP] Scripts moving aging file by FTP

Hi Experts, Kindly share scripts to find aging file and ftp to another server.. Example: Find files more than 5 days and ftp to another server. Please give suggestion :) Thanks Edy (1 Reply)
Discussion started by: edydsuranta
1 Replies

4. Shell Programming and Scripting

How to delete the submitted at command

Hi I have submitted an at command to run next week . Now i want to remove the submitted at command . I dont want the job to run . Can anyone help me , with the command to remove the submitted at command . thanks in advance ... (3 Replies)
Discussion started by: rxg
3 Replies

5. Shell Programming and Scripting

Problem with ftp scripts and cron

Need some help / advice with the follow script... Basically i have an FTP server that connects to other ftp servers and sends and downloads files every few hours or so. There are 12 different accounts that all have 2 scripts each, one to send and one to receive. Below is an example send script... (1 Reply)
Discussion started by: mokachoka
1 Replies

6. Shell Programming and Scripting

Need help with FTP scripts

Hi, I'm using the following code to FTP files from a remote system. ftp -inv <ip address> <<ENDFTP user uname password ENDFTP echo " binary get <file name> bye " > ftp.tmp ftp -inv < ftp.tmp I want to know how I can capture the details of the FTP process in a file. I would also... (3 Replies)
Discussion started by: bornon2303
3 Replies

7. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

8. Shell Programming and Scripting

FTP Scripts

HI All Need a help in FTP script i need to ask the user to enter the source ftp server and password and target ftp server and password , once it has logged in to the source server it need to go to directory and ftp to the target server can anyone help me on this , Sample code is... (27 Replies)
Discussion started by: raghav1982
27 Replies

9. Shell Programming and Scripting

How to find out Errors in FTP Scripts

Hi Please let me know is there any way through which I can find out errors & do debugging in FTP scripts. Thanks Sourabh TCS (1 Reply)
Discussion started by: sourabhshakya
1 Replies
Login or Register to Ask a Question
FTP_CONNECT(3)								 1							    FTP_CONNECT(3)

ftp_connect - Opens an FTP connection

SYNOPSIS
resource ftp_connect (string $host, [int $port = 21], [int $timeout = 90]) DESCRIPTION
ftp_connect(3) opens an FTP connection to the specified $host. PARAMETERS
o $host - The FTP server address. This parameter shouldn't have any trailing slashes and shouldn't be prefixed with ftp://. o $port - This parameter specifies an alternate port to connect to. If it is omitted or set to zero, then the default FTP port, 21, will be used. o $timeout - This parameter specifies the timeout for all subsequent network operations. If omitted, the default value is 90 seconds. The timeout can be changed and queried at any time with ftp_set_option(3) and ftp_get_option(3). RETURN VALUES
Returns a FTP stream on success or FALSE on error. EXAMPLES
Example #1 ftp_connect(3) example <?php $ftp_server = "ftp.example.com"; // set up a connection or die $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); ?> SEE ALSO
ftp_close(3), ftp_ssl_connect(3). PHP Documentation Group FTP_CONNECT(3)