egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can i run .exe?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Aug 19, 2008 11:59 am    Post subject: can i run .exe? Reply with quote

hello, i want to ask something can i run one file .exe on windows or file from linux from tcl script?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Aug 19, 2008 12:28 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber