Thanks!
Sorted it with your suggestion to use DISPLAY:none instead.
I've changed the JS to:
document.getElementById("loginbox").style.display="block";
document.getElementById("newbox").style.display= "none";
https://secure.glxhost.com/order/new.cgi?package=1 is where the code is.
Maybe thats where i've gone wrong then.
I've actually just made a javascript function that does element.style.visibility="hidden/visible
Re: https://secure.glxhost.com/order/new.cgi?package=1
I am trying to create a button which switches a DIV layer to visible or not- so that the customer can either have a "NEW CUSTOMER" or "EXSITING CUSTOMER" box to use.
I've got this to work great by using two <DIV>'s, and using javascript to...
Ah!!!!!!!
Bingo.
I see what it does now.
I didn't set $>.
I guess that $> means that all processes coming off it are running as that user too?
Well, even if it doesn't it does now :-)
When i did $< the process spawned off it was root again, but now it's the correct user!!!
Thanks!
Figured it out, but no joy with the start.
The Perl script is running as the correct user, but any process that it spawns is root again.
The shell script it spawns is running as root :-(
I'm having a few problems getting which one does which.
$< does this SET userid or read??
$) does this SET groupid or read?
Can you write how i would change userid to 502 and group to 502 and then check its changed :-S
OK, i've tried this, but i'm having problems with group.
I've tried just this as root:
print "Username: $< of group: $( \n";
AND
print "Username: $< of group: $)\n";
Both times it just returns:
Username: 0 of group: 0 10 6 4 3 2 1 0
Thanks, that looks just about what i'm after, but little point- where do i put it?
I've created a new perl script that just calls the start server script. Is this right?
#!/usr/bin/perl
$username=$ARGV[0];
# Do i put the change username here?
$> = "$username";
print "My username is $<\n"...
Hang on, what are you trying to do?
As far as i can tell, all you are saying with
while ($dir)
you are just saying, all the time that $dir is true (which it always it), loop.
But maybe that's what you want.
I would try something like this:
my $dir = "D://Program Files/B&L...
Ah right.
Should have mentioned that.
It's a shell script.
It firstly creates a new screen (as in the linux SCREEN command), and then executes a script (it could be any language) which is the actual game server script (for example ./hlds_run for counter strike).
Maybe this is a shell question...
I think your problem may be something to do with your / and \.
I may be wrong though on all of this, since it's not tested, but it's a guess.
Windows uses \ not /.
Also, perl may have a problem with this, since \ is the escape character.
Try:
my $dir="D:\\Program Files\\B\&L...
I'll go through what i am doing, so that it will become clearer.
I've got a 'master' server, and i've got several 'slave' servers.
These slave servers are gaming machines.
The master server has got some perl scripts that tell the slave server (via SOCKETS:INET and the Webserver script on the...
Hi,
I'm making a web server in perl, mainly because with Apache it's not possible to execute commands in perl scripts which need root access (except running apache as root which is bad).
Here's what i've got so far:
Code
!/usr/bin/perl
print "Content-Type:text/html\n\n";
use...
I can write Perl, and i know i can write one in there.
I tried it a while back, and it kind of worked. I got it to serve pages one at a time, but when it came to loading images at the same time, it couldn't.
Also, i have difficulty using the CGI module to grab input from forms when using my...
Hi,
I am trying to make a few perl scripts to adminsister my server with.
Unfortuantly, lots of them need root access.
Is there anyway to run just one VIRTUALHOST in apache as root, and the rest as normal?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.