Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Rep:
Apache DSO question.
Hello,
I'm new to DSO and I am trying to figure out whether or not using DSO can help me.
Does anyone know of a DSO module in apache2 that can execute another program as if it came from a command prompt?
I am attempting to have a cgi script launch another program from within a browser. If someone can point me in the right direction it would be greatly appreciated.
I have very little experience with DSO, but if you place a shellscript similar to the following example in your cgi-bin, you can run shell commands directly..
This is a little prank image I made a few years back, the file is named sword.gif:
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106
Original Poster
Rep:
Art,
I'm actually already doing this, but the program terminates upon completion. I have the operator input something through the browser and it executes a program. Although the apache seems to somehow lose the process.
I'll grep for the program and find it, but it is like it is in limbo.
This is how it should look like:
root 22976 1 0 17:26 pts/2 00:00:00 /usr/local/(full path)
It doesn't seem to know what to do with it, but maybe that is my problem. The program is just supposed to be a background process that does not get killed until the operator tells it too.
It is being launched by a system() call. Does anyone know how system() calls work with apache? It seems like it will only execute that one call and after that call it immediately terminates.
aa.. Now I see what you mean.. So far I havnt figured any way to run it in a shell environment instead of the usual background limbo.. Now, one bubblegum solution comes to mind.. Make a screen, and then have the script give the command for the screen to be executed.. I think it had some commandline parameter like that..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.