Maybe this script is an option for you; I did not alter your script just wrote it new:
Output:
If there could be a situation where there is no file, there will be an error so you might want to check additionally for files to fill your array 1st.
Last edited by zaxxon; 12-21-2009 at 09:31 AM..
Reason: Added info; shortened it and defined array directly
Hello Dears,
My server hots cannot contacted my array disk 2540 by using out-of-band Ethernet Cable.
The Controller Ethernet port is off , I replace the ethernet cable but not OK
I reboot the server and the Array disk 2540 but Not OK.
Please somebody know how to solve this issue?
... (1 Reply)
I want to pass this array as a parameter.
IFS=$'\n'
fortune_lines=($(fortune | fold -w 30 ))
Inside of this line
screen -p 0 -S ${SCREEN_SESSION} -X stuff "`printf "say ${fortune_lines}\r"`"
And I am lost at this point.
I am thinking something like this?
Then make it loop..
... (7 Replies)
Hello all,
I have the below script and I'm a little stuck on the best way to continue.
Essentially I'm creating a text file (systems.txt) with a list of servers in it by hostname. Then I would like to echo a menu with each hostname and a number to use to pick it from the list. It's somehow... (7 Replies)
First time so excuse my ignorance please.
I may not be accurately describing the issue.
I have inherited a small lab mostly SUN V120s.
We lost power and are trying to recover.
Nope no backups...
The primary issue I have is 1 box is an Oracle Server.
It has 2 36Gb harddrives.
I am able to... (3 Replies)