On Fri, 2007-03-30 at 14:37 -0600, Steve wrote:

> As an interesting aside, I once decided to cheap out on a server, and
> went with one of those shared hosting for noobs deals.  I created a
> simple c++ program that that basically just piped a TCP connection
> straight to bash, did the double fork trick, then wrote a PHP script
> to allow me to launch it remotely.
> Poof instant shell access :D

A more correct solution to daemonizing an external program is here:

http://www.clapper.org/software/daemonize/



/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to