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.

can i run .exe?

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

can i run .exe?

Post by ultralord »

hello, i want to ask something can i run one file .exe on windows or file from linux from tcl script?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Yup.

In fact, you have two options:
  1. Use the exec command. The command will block until the child process terminates. Thus your eggdrop will stop responding until the command stops blocking, and may cause your eggdrop to disconnect (ping timeout). Any output from the program will be returned once the command completes.
  2. Use open with pipes. The command will return instantly. Any further interaction with the process will be done through the created file handle and the normal commands for file interactions.
NML_375
Post Reply