slinger question

I am able to successfully do #exec cgi commands but I can’t do #exec cmd
commands. What might I be doing wrong.

What I want to do is to run a C program. I put the program in the /cgi-bin/
directory and I also tried giving the full path to it.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

execute for all. I just saw an impleplication that exec cmd will only run
shell scripts, not C programs. Is that true?


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Apps” <apps@qnx.com> wrote in message news:3C028DD6.6090801@qnx.com

Hello Bill,

This is just a shot in the dark but what are the file permissions on the
executable? They may not allow access to everyone.

Regards,
Dave B.




Bill Caroselli wrote:

I am able to successfully do #exec cgi commands but I can’t do #exec cmd
commands. What might I be doing wrong.

What I want to do is to run a C program. I put the program in the
/cgi-bin/
directory and I also tried giving the full path to it.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


\

Hello Bill,

This is just a shot in the dark but what are the file permissions on the
executable? They may not allow access to everyone.

Regards,
Dave B.




Bill Caroselli wrote:

I am able to successfully do #exec cgi commands but I can’t do #exec cmd
commands. What might I be doing wrong.

What I want to do is to run a C program. I put the program in the /cgi-bin/
directory and I also tried giving the full path to it.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net
\

New slinger question.

If I am set up so that CompanyX.com and CompanyY.com both resolved to the
same IP address which is my server, can slinger be set up to use one set of
paths for Company X and a different set of paths for company Y?

I do see that in CGI script there is an environment variable called REFERRER
that seems to be set to the host name that was originally referenced. But
slinger needs to make decisions before it calls any of my CGI scripts.

If slinger can’t do this, can apachie?

If apachie can’t either it appears that slinger can be set up to monitor a
specific IP baddress with the -i option. Is this the recommended way of
hosting multiple domains on the same CPU?

If so, is it OK to have two copies of slinger running concurrently, with one
monitoring one IP and the other monitoring the other?


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Yes, another slinger question.

Does slinger run CGI scripts atomicly?

I.E. does it wait until one has finished running before launching another?

The reason I ask is that I now want to have my cgi scripts update a data
base. The data base work is easy. But I want to know if I need to
implement record locking on my own or if I can be guaranteed that another
cgi script won’t modify things under my feet.


P.S.

Incidently, I really want to thank the QNX community for the help I received
here and via e-mail. 10 days ago I was an absolute web server newbie
(although I’ve written HTML pages before). In just the last 10 days I’ve
been able to turn out some really terific web applications. I hope to go on
line just as soon as we get our high speed link connected.

QNX is the best OS on Earth. But even more than that, the QNX community is
the greatest bunch of people to be working with.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

Just guessing here, but probably no. I would guess that once the CGI is
forked/spawned, that slinger is happily waiting for the next connection

  • after all, there’s no guarentee that your cgi will ever terminate. So
    you’d be wise to set up some record locking.

On your previous question regarding virtual servers, Apachie can
definitly handle this. Slinger is supposed to be a low overhead server
so you’d probably have to use the either the -i option or the
REFERRER variable and an extra level of CGI code. I’d start looking for
a more full featured server if you really need this. Apache is pretty
straight forward to setup…

Bill Caroselli wrote:

Yes, another slinger question.

Does slinger run CGI scripts atomicly?

I.E. does it wait until one has finished running before launching another?

The reason I ask is that I now want to have my cgi scripts update a data
base. The data base work is easy. But I want to know if I need to
implement record locking on my own or if I can be guaranteed that another
cgi script won’t modify things under my feet.


P.S.

Incidently, I really want to thank the QNX community for the help I received
here and via e-mail. 10 days ago I was an absolute web server newbie
(although I’ve written HTML pages before). In just the last 10 days I’ve
been able to turn out some really terific web applications. I hope to go on
line just as soon as we get our high speed link connected.

QNX is the best OS on Earth. But even more than that, the QNX community is
the greatest bunch of people to be working with.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net

\

Thank you, Dave.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“David Hawley” <david.l.hawley@computer.org> wrote in message
news:3C0BFDD4.6010100@computer.org

Just guessing here, but probably no. I would guess that once the CGI is
forked/spawned, that slinger is happily waiting for the next connection

  • after all, there’s no guarentee that your cgi will ever terminate. So
    you’d be wise to set up some record locking.

On your previous question regarding virtual servers, Apachie can
definitly handle this. Slinger is supposed to be a low overhead server
so you’d probably have to use the either the -i option or the
REFERRER variable and an extra level of CGI code. I’d start looking for
a more full featured server if you really need this. Apache is pretty
straight forward to setup…