Computing.Net > Forums > Unix > ftp shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ftp shell

Reply to Message Icon

Name: mehul
Date: January 6, 2003 at 11:43:25 Pacific
OS: solaris
CPU/Ram: sun5.8
Comment:

Hi Gurus, I need some help
I am trying to write a script for ftping 2 tar files which are huge in size in same server in background so that ftp for 2 tar files starts simultaneously
1.main.sh
2.file1.sh
3.file2.sh

from main.sh i am calling
{
file1.sh &
file2.sh &
}

it gets stuck in file1.sh and file2.sh is not ececuting.

is something i am doing wrong , appreciate your help

Thx
Mehul

but it



Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: January 30, 2003 at 05:13:09 Pacific
Reply:

Can't see anything wrong, though the last command in the list doesn't need to be in background, and the \{\} brackets aren't necessary in your example. You could also add 'wait' if you want to have the script wait for all background processes to complete before continuing.

If you create a dummy script that you know will always succeed (e.g. just contains 'sleep 10' or some such), can you call that twice simultaneously in background using the same method?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ftp shell

FTP Shell sample www.computing.net/answers/unix/ftp-shell-sample/2120.html

ftp shell script skip login www.computing.net/answers/unix/ftp-shell-script-skip-login/4887.html

problem in ftp www.computing.net/answers/unix/problem-in-ftp/3526.html