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.
Old posts that have not been replied to for several years.
Pitchat
Op
Posts: 122 Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:
Post
by Pitchat » Sun Dec 07, 2003 4:08 pm
HI
How can i replace the exec command in a tcl to be able to use it in a windows eggdrop ?
heres an example
thanks
Pitchat
spock
Master
Posts: 319 Joined: Thu Dec 12, 2002 8:40 pm
Post
by spock » Sun Dec 07, 2003 6:48 pm
you could do it like this
but i think this would be better
Code: Select all
file rename -force -- $vname $vname.old
photon?
Pitchat
Op
Posts: 122 Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:
Post
by Pitchat » Mon Dec 08, 2003 1:38 am
yes it did just good but i found that i have 2 other exec that arent the same and replacing them with your solution doesnt fit it is sure that i do something wrong heres are the 2 remaining
and
Code: Select all
if [catch {exec rm -f $fname} resf] {
thanks
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Dec 08, 2003 11:40 am
file delete ?-force? ?- -? pathname ?pathname ... ?
Consult the
file command in the TCL Manual.
Once the game is over, the king and the pawn go back in the same box.
Pitchat
Op
Posts: 122 Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:
Post
by Pitchat » Mon Dec 08, 2003 3:46 pm
thanks guys like always with your help and a bit of myself i manage to get trough my problems and it works juste fine .
please dont stop helpin poor souls like mine
Pitchat
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Mon Dec 08, 2003 4:31 pm
next time u use exec or set file [open "|test.exe" "r+"] use mode -nt
when u start the bot eggdrop.exe -nt eggdrop.conf
XplaiN but think of me as stupid
CrazyCat
Revered One
Posts: 1359 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Tue Dec 09, 2003 3:43 am
And reserve the exec command for non-native commands.
It's a security hole when you use exec, because you allow to execute scripts and shell commands.
And particularly when it's to do some rm
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Tue Dec 09, 2003 6:24 am
indeed hehe
XplaiN but think of me as stupid