| View previous topic :: View next topic |
| Author |
Message |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Tue Aug 19, 2008 11:59 am Post subject: can i run .exe? |
|
|
| hello, i want to ask something can i run one file .exe on windows or file from linux from tcl script? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Aug 19, 2008 12:28 pm Post subject: |
|
|
Yup.
In fact, you have two options:
- 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.
- 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|