[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash error handling help

On 2005-06-04, theal penned:
> I am have a script that uses a for loop to copy files to about 100
> servers.  I know how to get it to exit the entire script on an
> error, but I only want to stop what it is doing for the current $i
> and move to the next. here is the basics of the script. there may be
> some syntax errors in this script as I have edited it for public
> viewing.

Without looking in detail at the script, I think you're looking for
the "continue" keyword.  `man bash`, search for continue.


Ask smart questions, get good answers:

Reply to: