Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:10

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Need alittle help
PostPosted: 24 Mar 2010 16:01 

Joined: 24 Mar 2010 15:56
Posts: 2
Hey everyone,

Im using ventrcon for some time now, and i need alittle help with the -F ("named pipe") function..
I need to send commands to the ventrcon program live, and i didnt understand how to use the named pipe.
I searched over the internet and didnt find anything that could help me, must of it was C codes that i dont really need right now.
How can i access the named pipe, and how can i send through it commands?

Thanks in advance,
gal.


Top
 Profile  
 
 
 Post subject: Re: Need alittle help
PostPosted: 24 Mar 2010 17:32 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
practically a named pipe is like a "server-like" file where an application creates it and another can exchange data with the first one through normal write/read operations (like a normal file).
a typical named pipe has the path \\.\pipe\name_of_the_pipe

so in ventrcon you must simply launch it with this -F option, example:
Code:
ventrcon -F -a mypass 1.2.3.4
now you can send all the commands you want to the server simply writing them in the \\.\pipe\ventrcon file, example:
Code:
echo help > \\.\pipe\ventrcon
note that you can send/write any command you want but you can't read the server's reply (no, it's not a limitation of ventrcon indeed doesn't seem possible to write the data back in the named pipe file)


Top
 Profile  
 
 Post subject: Re: Need alittle help
PostPosted: 25 Mar 2010 00:31 

Joined: 24 Mar 2010 15:56
Posts: 2
Thanks for your reply,
echo help > \\.\pipe\ventrcon
I didnt quite understood where to write that, in the CMD?
and \\.\pipe\ventrcon, where is it?


Top
 Profile  
 
 Post subject: Re: Need alittle help
PostPosted: 25 Mar 2010 01:03 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
yes from cmd.

the named pipe \\.\pipe\ventrcon is located on the same machine where is running ventrcon.
the idea behind this feature was to allow the sending of commands to ventrcon from a local php script (or another similar solution) in a simple way without having to start the exe all the times or doing other complex things... just write to a file and you have done it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC [ DST ]


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 post attachments in this forum

Search for:
cron