This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Question about piping...

Old posts that have not been replied to for several years.
Locked
J
Jed

Question about piping...

Post by Jed »

Is there a way to pipe the output from a dcc command (.match) into a file or into a tcl script... or even a bash script?

If not... is there a way to run .match from a tcl script?

(I need to grep/awk the output of .match)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You simply recreate the match command in Tcl.

This is a matter for a foreach loop on all users, and checking the information and so on.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

try

Post by De Kus »

having a look at the tcl commond userlist. it gives you the listerlist so you only need to foreach and string match the whole thing.
Locked