[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Rebuilding catalog cgi thru web
****** message to minivend-users from Jeremy Olson <jolson@enteronhome.com> ******
Dennis Duval wrote:
> ****** message to minivend-users from "Dennis Duval" <skip-minivend@seacove.net> ******
>
> I have written a group of perl scripts which allows modification of the
> products database as well as a couple of other databases through a browser.
> They also allow modification of the random special files (rand1.html , etc).
> However, some of these modifications seem to require that minivend be
> stopped and restarted to rebuild the cgi executable. I can easily write a
> perl script that will allow me to do this from the command line, but when I
> include the same code in a web application, it either errors out or fails to
> do the requested restart.
>
> Question 1: Is restarting minivend the only way to rebuild the cgi
> exectuable? It seems inefficient to stop the program and rebuild all
> catalogs just to generate a new cgi.
>
> Question 2: If restarting minivend is mandatory, how can I get it to
> restart properly from within a web app? I'm sure that there is a permission
> or ownership problem that i'm overlooking. I've tried relaxing permissions
> on minivend and the stop/start scripts to a point that would let me do this,
> even going as far as suid minivend. But to no avail. Tried running the
> apache virtual server as same group/user as minivend. Still no luck.
>
> Here is the perl code, which works find from a command line but will not
> work from a web app:
>
> #!/usr/bin/perl
> $cmd = 'su -c /minivend/mvend/bin/restart minivend';
> system($cmd);
> exit;
>
> I've tried endless variations of this such as:
>
> $cmd = '/minivend/mvend/bin/restart';
> $cmd = '/minivend/mvend/bin/minivend -serve';
>
Dennis,
I'm just curious about the
$cmd = 'su -c /minivend/mvend/bin/restart minivend';
isn't the next thing that happens is you are prompted for
a root password? Depending on UNIX system this is on.
Jeremy Olson
The Enteron Group
800 497 2695
312 922 5736 (fax)
mailto:jolson@enteron.net
http://www.enteron.net
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list