On Fri, Apr 25, 2014 at 11:48:42AM +0100, A J Stiles wrote:
> On Thursday 24 Apr 2014, Mikael Fredin wrote:
> > I will look into netcat as well, thank you
>
> There's not much to look into, really! It's just a command-line tool for
> connecting STDIN and STDOUT to a network socket.
>
> $ echo -e "WIBBLE\nWIBBLE\nWIBBLE" | nc somehost.co.uk 3245
>
> will send
> WIBBLE
> WIBBLE
> WIBBLE
> to port 3245 of host somehost.co.uk , and display any response coming back on
> STDOUT. It really is that simple!
>
> Another example:
>
> $ echo -e "USER fred\nPASS b00bies\nQUIT" | nc pop3.myisp.co.uk 110
>
> will quickly login to your POP3 server and then logout without retrieving any
> messages; this can be useful if you need to make a POP3 connection before you
> can send mail using SMTP.
Which is a bit irrelevant if you want to connect to Asterisk through the
unix-domain socket [/var]/run/asterisk/asterisk.ctl .
--
Tzafrir Cohen
icq#16849755 jabber:[email protected]
+972-50-7952406 mailto:[email protected]
http://www.xorcom.com
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users