Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

To those seeking an RPC/Email backend server

Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
10-17-2004 11:24
Of course we still have the issue of everyone being on seperate boxes (although I am thinking the file storage may be linked...) If nothing else, we could save time by just tossing the binaries back and forth and not having to worry about re-compiling.
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
10-17-2004 22:48
You might consider asking support to allow you access to my mount-point.

FWIW, the support to me in DreamHost to date has been *awesome*. Very impressed.

Azelda
_____________________
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
10-17-2004 23:12
(By the way, other software available at /home/hughperkins is:

Lua : /home/hughperkins/dev/lua-5.0.2 (/include, /lib)
Ode: /home/hughperkins/dev/ode-0.5 (/include, /lib; float precision, no trimesh)
TinyXML: /home/hughperkins/dev/tinyxml

And, of course, OSMP:

/home/hughperkins/dev/hughsworkarea (/linux)

)

Azelda
_____________________
Timeless Prototype
Humble
Join date: 14 Aug 2004
Posts: 216
10-19-2004 12:31
Looping to check e-mails and slaying the server????!!!!!

Rather do something like:

# vi /etc/aliases
(insert the following line, for example)
timeless | "/usr/local/bin/pipeMail2mysql"
# newaliases

Where 'timeless' is the username (replace that with your actual one) and the pipe to 'pipeMail2mysql' will cause sendmail to send the e-mail, headers and all, _AS SOON AS IT ARRIVES_, via stdin to 'pipeMail2mysql'. Where 'pipeMail2mysql' is a compiled c/c++ binary executable file (that you will write, or pay me vast L$ to write for you) that knows how to take stdin and insert records into MySQL.

- Timeless
Cienna Rand
Inside Joke
Join date: 20 Sep 2003
Posts: 489
10-19-2004 12:49
From: Timeless Prototype
Looping to check e-mails and slaying the server????!!!!!

Rather do something like:

# vi /etc/aliases
(insert the following line, for example)
timeless | "/usr/local/bin/pipeMail2mysql"
# newaliases

Where 'timeless' is the username (replace that with your actual one) and the pipe to 'pipeMail2mysql' will cause sendmail to send the e-mail, headers and all, _AS SOON AS IT ARRIVES_, via stdin to 'pipeMail2mysql'. Where 'pipeMail2mysql' is a compiled c/c++ binary executable file (that you will write, or pay me vast L$ to write for you) that knows how to take stdin and insert records into MySQL.

- Timeless


Assuming you have access to /etc/aliases, and stuff. For a general user on one of these hosting services it's probably still doable to send straight to a script (procmail?), but not quite that simple.
_____________________
You can't spell have traffic without FIC.
Primcrafters (Mocha 180,90) : Fine eyewear for all avatars
SLOPCO (Barcola 180, 180) : Second Life Oil & Petroleum
Company
Landmarker : Social landmarking software
Conversation : Coming soon!
Timeless Prototype
Humble
Join date: 14 Aug 2004
Posts: 216
10-19-2004 12:59
Good point about the aliases file. So try this...

$ vi ~/.forward
| "/home/timeless/bin/pipe2mysql"
:wq

??

- Timeless
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
10-19-2004 13:48
From: Timeless Prototype
Good point about the aliases file. So try this...

$ vi ~/.forward
| "/home/timeless/bin/pipe2mysql"
:wq


Dreamhost uses postfix. Use ~/.forward.postfix, not ~/.forward. I'm not sure if the placement of the quotes makes a difference, but my .foward.postfix file looks like this:

"|/home/foo/bin/myscript"

(with the quotes)
_____________________
--
~If you lived here, you would be home by now~
Timeless Prototype
Humble
Join date: 14 Aug 2004
Posts: 216
10-19-2004 15:25
excellent
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
10-22-2004 19:30
Talk about you snooze you lose! It's only 10 days later and it looks like the plan is now $7.95/month. Still a deal mind you, but not quite as outrageous...

Just for reference, we are talking about the 'Crazy Domain Insane' product, right?
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
should read more of the thread...
10-22-2004 20:06
I was wrong it still works with promo code 777.

W00t!
Archaegeo Platini
Ancient Earth University
Join date: 12 Aug 2004
Posts: 152
10-28-2004 19:35
Its been a while since i used linux

Does anyone have the time to show me the briefest example of how to communicate via XML/Python on dreamhost to SL?

I do not see /home/hughperkins if that matters, my python shows in /usr/bin/python and is 2.1.3

Any advice or help to help me shake off the years of rust is appreciated greatly.
_____________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dean Archaegeo Platini
Ancient Earth University

Courses for the Second Life

secondlife://Sedig/211/46
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
11-06-2004 03:48
For info, MySQLdb module added to Python distrib at /home/hughperkins/Python-2.3.4

Example of interactive usage:

CODE

[marvin]$ python
Python 2.3.4 (#1, Oct 12 2004, 00:48:54)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>> help("MySQLdb")

>>> conn = MySQLdb.connect( host = "mydb.manageddreams.com", user="mydb", passwd = "mypass", db="mydb")
>>> cursor = conn.cursor()
>>> cursor.execute("SELECT VERSION()")
1L
>>> row = cursor.fetchone()
>>> print row[0]
4.0.20-log
>>> cursor.close()
>>> conn.close()
>>> conn = MySQLdb.connect( host = "mydb.manageddreams.com", user="mydb", passwd= "mypass",db="mydb")
>>> cursor = conn.cursor()
>>> cursor.execute("select * from test")
1L
>>> row = cursor.fetchone()
>>> print row[0]
blah
>>>


Azelda
_____________________
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
11-06-2004 05:23
Note to users of python at /home/hughperkins/Python-2.3.4: please update your paths to:

CODE

/home/hughperkins/local/bin/python


The Python has been recompiled with sys.prefix = /home/hughperkins/local which makes it much, much easier to install new modules, such as MySQLdb. Specifically, MySQLdb module works only with this new installation.

Azelda
_____________________
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
11-06-2004 06:10
Edit: installation rebuilt to avoid requirement for presence of gcc 3.x libraries. Python at /home/hughperkins/local/bin/python now works from cgi.

Azelda
_____________________
Archaegeo Platini
Ancient Earth University
Join date: 12 Aug 2004
Posts: 152
11-06-2004 09:17
sicne i cant point to yours, ended up doing my own install, used 2.4b1 lots of nice bug fixes
_____________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dean Archaegeo Platini
Ancient Earth University

Courses for the Second Life

secondlife://Sedig/211/46
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
02-21-2005 10:19
Please help me get DreamHost to install InnoDB. If you are using their MySQL servers to do any kind of e-commerce, and you want safe transactions, InnoDB is a must!
1 2 3