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.

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_____________________________________________________________________
-- 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

Reply via email to