Re: [lug-nuts] sockets and processes

From: Mike Machado (mike@innercite.com)
Date: Wed Dec 01 1999 - 14:18:42 PST


Webb Sprague wrote:
>
> Hi Folks
>
> How do you open a unix domain socket to interact with
> a process (probably with perl)? I have looked at the
> camel book, but I find the code pretty opaque (says
> more about me, I think...). Eventually I want to send
> queries to MySQL through a perl "print" statement and
> get the responses into variables so I could put them
> in an HTML page, but I would settle for opening a
> simpler socket for now and understanding what is going
> on.
>
> Thanks again
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores. Millions of Products. All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
> ****************************************************************************
> * To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
> * in the message body to majordomo@saclug.org. Please direct other
> * questions, comments, or problems to lug-nuts-owner@saclug.org.

Webb: If you check out my myadmin script at ftp.cheapnet.net/pub/myadmin
you will see where I do a forking pipe open
and use print to print commands to the mysql program. This sounds like
what you want to do. For the unix domain socket, its just like a tcp
socket, you just pass 'AF_UNIX' instead of 'AF_INET' to the socket
function. If you want to talk about that internship, email me directly.
We might have some stuff you can do.

-- 
Mike Machado
mike@innercite.com
InnerCite
Network Specialist
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:08 PST