![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| xserver problem - hang | tanvirscsa | SUN Solaris | 0 | 09-28-2007 03:46 PM |
| how to up the aix machine when the desktop was hang | balarajum | AIX | 7 | 03-22-2007 06:22 AM |
| system hang | ajay234 | Red Hat | 1 | 06-15-2006 11:32 AM |
| Hang a Process | laila63 | SuSE | 6 | 06-30-2004 11:57 AM |
| Help for Linux hang up | andysastre | Linux | 1 | 09-02-2003 01:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Ftp hang
Im making a script that goes out to about 200 servers and grabs log files daily and need to make sure the script gets all the servers it can even if one is out. I am ftp'ing the files over but if i cant connect to the server the process looks like it dies and the script is finished.
|
|
||||
|
Code:
getInfraFiles()
{
cd Infra/$DAY
logTime
FILE_COUNT=$(/bin/ls -1 $ARCHIVE_DIRECTORY | /usr/bin/wc -l | /usr/bin/tr -d ' ')
if [[ "0" != $FILE_COUNT ]]; then
rm *
fi
logTime
echo -n "=P$(expr $COUNT + 1)-O$(expr $COUNT + 1),">>$HOMEDIRECTORY/$LOGS
logTime
/usr/bin/ftp -i -n -v $LINE <<cmd
user "$USER" "$PASSWD"
if cd $INFRAPATH
then
binary
mget *
bye
fi
else
bye
echo -n "Didn't Connect,Didn't Connect," >> $HOMEDIRECTORY/$LOGS
fi
cmd
}
it doesnt just move on like i need it to do |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|