Remove the continue and append a ;; after "Please try again later".
As you seem to use indention, the do .. done can be indented too, only the EOF really needs to be at the beginning of the line and have no whitespace after, where as the cat > EOF can be anywhere.
Also, i'm not sure this is doing what you expect:
You might want to change this to:
hth
Remove the continue and append a ;; after "Please try again later".
As you seem to use indention, the do .. done can be indented too, only the EOF really needs to be at the beginning of the line and have no whitespace after, where as the cat > EOF can be anywhere.
Also, i'm not sure this is doing what you expect:
You might want to change this to:
hth
When I run the script it looks for a nonprod or prod server list conf file.
Thanks alot for your input! Great help! I am however running into a new problem with your fix that happened without the continue, which is why I put it in first place.
See below the output after running the script and see the sample conf file that has the servers list.
It seems that it doesn't always go through the entire list of servers, it will start a loop then go halfway, then stop.
CONF FILE:
OUTPUT:
Quote:
Originally Posted by ongoto
Hello gkelly1117
With 'continue' , you may have meant something of this sort...
Hello!
Please I need some help on writing a script to push files from one server to the other once a day, everyday. I know that I can use this script on a crontab to send the files , but I am not sure how to start writing it, the actual script.
I could start by declaring some variables:
... (4 Replies)
Hello everyone,
I am new to Perl and I am having some issues getting a script to work. I have to create a script that uses an array of 52 cards, "shuffles" the cards (using loops with the pop, shift, and push commands), and prints out the top five. This is not a randomizing of the array just a... (2 Replies)
We have a cluster of 3 web servers. I'll be updating a single master server and copying info to the other 2 slave servers. What's the best way of synching all of them? Run rsync on each of the slave servers to pull the updates from the master? Or run rsync on the master to push the updates to the... (1 Reply)
I need to use pushd and popd to navigate all of the subdirectories in my current directory.
I know how to get into each subdirectory, add it to the stack, and pop back out, but i cant figure out how to get into subdirectories deeper than the first without adding a foreach and if statement for... (1 Reply)
I'm trying to write a script that will start an X application if it's not already running, but will find it and pop it to the front if it is already running (maybe it's lost on a busy desktop).
Is there such a mechanism?
Here is part of the logic: VRDP="$(ps ax|grep "rdesktop .*... (3 Replies)
Hi I am trying to send a file form one linux server into an another linux server.
I cannot do ftp get. Can anyone please assist me how can I push the file to the other server ?
Thanks. (2 Replies)