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.

Search found 7 matches

by oioifatty
Tue May 10, 2005 11:10 pm
Forum: Archive
Topic: Major newbie help with IF statements
Replies: 3
Views: 1447

doh

Thank you for your posts, the help is very appreciated.
and thank you gb, thats the third or forth time you've helped me.
by oioifatty
Tue May 10, 2005 5:45 pm
Forum: Archive
Topic: Major newbie help with IF statements
Replies: 3
Views: 1447

Major newbie help with IF statements

Hi, i've got a smal tcl code that reads the contents of a file for devices, eth0, eth1 etc... the devs file contains all of the items in the list, but it only returns the last item that matches in the dev file, i know its something to do with the IF's, but i just can't get my head arounfd the correc...
by oioifatty
Tue May 10, 2005 5:21 pm
Forum: Archive
Topic: one more 'basic' question on this
Replies: 14
Views: 3519

another Question about file search

Hi, i've got a smal tcl code that reads the contents of a file for devices, eth0, eth1 etc... the devs file contains all of the items in the list, but it only returns the last item that matches in the dev file, i know its something to do with the IF's, but i just can't get my head arounfd the correc...
by oioifatty
Mon May 09, 2005 5:58 pm
Forum: Archive
Topic: one more 'basic' question on this
Replies: 14
Views: 3519

Thank you very much.

Thank you for the response, it works a treat.

p.s. sorry gb if i caused offence with the pm.
by oioifatty
Mon May 09, 2005 12:26 pm
Forum: Archive
Topic: one more 'basic' question on this
Replies: 14
Views: 3519

if [string match "iptables -A OUTPUT -o \$internet -p tcp" $line] { # it's a match, delete.. yeah thats the thing i want to acheive, but just don't know how to go about the deletion part. i've been using the examples of how to open a file, extract the text, and delete specified numbered l...
by oioifatty
Sun May 08, 2005 8:33 pm
Forum: Archive
Topic: one more 'basic' question on this
Replies: 14
Views: 3519

sorry that was proberly a bit vague, ############################ #this is the check button command# ############################ if {$http == 1} { set a [open /iptab a+] puts $a "iptables -A OUTPUT -o \$internet -p tcp" <--Inputs iptables command into file close $a } else { ##############...
by oioifatty
Sun May 08, 2005 8:05 pm
Forum: Archive
Topic: one more 'basic' question on this
Replies: 14
Views: 3519

pattern matching and deleting.

Just like to state this is a really great forum, actually the most imformative i've been on, btw not brown nosing. lol To my question: I am attempting to write a TCL/TK firewall gui on my fedora core box, just having bit of a problem with deleting strings from a file, I want to pattern match a strin...