Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. andy7t

    DIV Layers, On top of each other

    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";
  2. andy7t

    DIV Layers, On top of each other

    Heres the code: function newchange() { document.getElementById("loginbox").style.visibility = "hidden"; document.getElementById("newbox").style.visibility = "visible"; } function loginchange() { document.getElementById("loginbox").style.visibility = "visible"...
  3. andy7t

    DIV Layers, On top of each other

    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
  4. andy7t

    DIV Layers, On top of each other

    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...
  5. andy7t

    Spawning perl script as another user

    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!
  6. andy7t

    Spawning perl script as another user

    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 :-(
  7. andy7t

    Spawning perl script as another user

    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
  8. andy7t

    Spawning perl script as another user

    Sorry!! Ignore that. DRRRR! That's the groups it belongs to. Woops.
  9. andy7t

    Spawning perl script as another user

    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
  10. andy7t

    Spawning perl script as another user

    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"...
  11. andy7t

    Move file out of directory after 7 days

    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...
  12. andy7t

    Spawning perl script as another user

    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...
  13. andy7t

    Exclude hidden file in a Cleanup Script

    Beat me to it Xagte :-D Whats the last bit for? Lost me there. I'm not too good at regex. I should read up on it.
  14. andy7t

    Exclude hidden file in a Cleanup Script

    Why not something simple like: next if $file=/^\./; Think that should work :-S. Just checks to see if the first character is a "."
  15. andy7t

    Move file out of directory after 7 days

    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...
  16. andy7t

    Spawning perl script as another user

    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...
  17. andy7t

    making link open in new browser window

    <a href=link.html target=newwindow>
  18. andy7t

    Perl Webserver- Run CGI

    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...
  19. andy7t

    Apache and Root- Can i have one user running as root?

    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...
  20. andy7t

    Apache and Root- Can i have one user running as root?

    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?

Part and Inventory Search

Back
Top