Let me rephrase my question.
What I am trying to do is while loop the $sock() identifier in order to return the socket names of the open sockets.
This is very simple:
alias socks {
var %i = 1
while ($sock(*,%i)) {
echo -a $ifmatch
inc %i
}
}
Now, I have an @window that has every socket name of each open socket listed. I need to somehow check to see if the socket name of each socket the "socks" command returned is indeed listed inside the @window. If it is
not listed, then my script will add it to the @window.
alias sockwindow {
var %w = 1
while ($line(@Socks,%w)) {
echo -a $gettok($ifmatch,2,32)
inc %w
}
}
The above command would list the names of the sockets that are listed in my @window. So, what I want to do is a comparison to see if the data the "socks" command returned matches the data the "sockwindow" command returned. I am guessing I need two while loops to do this.