That's really good of you to reply, I am not sure if people are ever interested in seeing posters attempts.
I did start to go down the object route but from the above I can see I'd confused the foreach too.
I used foreach($backuphost in $backupnode)
Also I made an error in the original post...
I am using a module to query a backup product and need (what I thought would be simple) the output of the commands to create the output side by side.
ie.
Node Serial
node1 12345
node2 56789
node3 10112
etc
I query the data I need using
$backupnode = GetBackupNode
$backupnode =...
Blimey, that's wonderful, i'm digging out some old scripts and all of them use cat! I could really cut down on processes used and really streamline some of them. Thanks again. Really appreciate it.
Hi just tested the commands and they work great, i'll get my notes out and put this command into my script then work on the rest. Gives me a great starting block. Many thanks.
Hi, as I said i'm rusty so the for zone in logfile was and is pointless it was just me trying to get back into the scripting that I used to do, i.e. it was one of the very few things I remembered how to do. I should add that i've not scripted for over 4 years.
What is UUOC ?
The $2 was...
Hi all,
I've been away from scripting for a while, i've hit a brick wall with a script i'm writing!
The data file has the following:
zone: nameserver_absvc01a
10:00:00:00:00:00:00:00
10:00:00:00:00:00:00:00
10:00:00:00:00:00:00:00
10:00:00:00:00:00:00:00
10:00:00:00:00:00:00:00...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.