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 Mike Lewis 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. plasmatwin

    List start menu items

    I'm currently working on a project that requires me to list the contents of the "All Programs" folder (and preferably the rest of the start menu, but that's not necessary). I was wondering if there was a nice API to do this (I know there isn't one to edit it, but that's not important to me)...
  2. plasmatwin

    Extensible configuration system

    Hi, I'm writing a modular program (mainly as an experiment) and I would like some advice on passing the configuration of the program. What I would like is to be able to use a configuration file (preferably xml) to hold all the core configuration, aswell as different lumps of configuration that...
  3. plasmatwin

    Getting Single lines from an async socket

    I'm writing an IRC client library in c# using the Aynchronous Socket model in .NET. I am currently at a problem where, when recieving data from the socket, the program simply fills its buffer (a byte[256]) with data from the socket and hands it to me. The problem is that this array could contain...
  4. plasmatwin

    Comparing two associative arrays

    The mandatory hash is declared in the source code pretty much as it is there. The point is the mandatory one can be changed by me expanding the source and I didn't want the reply "just check each value manually one by one" ;) Trojen: thanks for the tip on where to start, I'll post back once I...
  5. plasmatwin

    Comparing two associative arrays

    hm... well, say that I have a nice complicated hash of hashes that looks like so on decleration: my %config = ( "yesh" => { "yarr" => "harr", "chocolate" => 0, "fruit" => { "banana" => "yellow", "orange" => "well... orange", }, }, "boo" => { "something" =>...
  6. plasmatwin

    Comparing two associative arrays

    That's cool, pretty much exactly what I was looking for. Does it require that I specify "lefthalf"? Because there are multiple sections and I was hoping for a "one size fits all" algorithm that could compare any style of hash format (with as many dimensions that were neccessary and stuff...)...
  7. plasmatwin

    Comparing two associative arrays

    Hi, I have my configuration loaded into a hash called %config, I want to check that hash for the presence of certain mandatory values. It is currently a hash of two hashes, I want to make another temporary hash of two hashes with some default values in it and then loop through each value of the...
  8. plasmatwin

    validating contents of ini files before loading with Config::IniFiles

    Ok, so I want to load an ini file as the config of my script. I want to use the tie() method so that I can access it as if it were a normal hash array (called %config). If I want to check the contents of the ini file for sanity of the data in the inifile (existance of compulsory settings, etc)...
  9. plasmatwin

    POE IRC bot failing and I don't know the source of the error...

    Ok... now I feel like a complete idiot... truly, I do Sorry to anyone I have sent on a wild goose chase trying to figure out what was wrong with this... the config file was originally written on a windows computer, thus it had CRLFs at the end of the lines, and the linux machine was reading it...
  10. plasmatwin

    POE IRC bot failing and I don't know the source of the error...

    Something I just noticed, all lines with a variable from the config in them are not printed properly, so I changed ALL the config variables out of the irc_connect subroutine and it now works perfectly. This worries me now slightly because it means that it IS the fault of the config hash... but...
  11. plasmatwin

    POE IRC bot failing and I don't know the source of the error...

    Nope, that's why I am unable to solve it myself and couldn't give a smaller snippit of the code, if you go to the connect event and specify static values rather than the ones it fetches from the config hash then it still fails, however a less complicated script does not... I sense a major...
  12. plasmatwin

    POE IRC bot failing and I don't know the source of the error...

    Hi, I'm frustrated at the moment because my IRC bot has stopped functioning and I don't know why. I made allot of changes without testing it and I don't know what went wrong... It gives me an error saying: getservbyname error 99: Cannot assign requested address I tested a simple POE irc bot...
  13. plasmatwin

    Perl Script full path

    I can't see how it makes much of a difference tbh, however $0 should return the full path, it worked for me on windows XP if I remember. I'm on linux at the moment so I can't test it... sorry about that... Tell me why you need the full path and I will see what I can do to help in context :-)
  14. plasmatwin

    er... SUID?

    It can be called directly from sudo if I REALLY REALLY try, I just have to make sudo run "/usr/bin/perl -e 'my script here'" but I think the idea of spawning a seperate child process to do the root part is better... I'll have to see where things go... Thanks for your help on this :-)
  15. plasmatwin

    er... SUID?

    Sorry about that, angry at my family and I guess I took it out on you. I appreciate the help though :-) I don't want to change what the actual Apache process is run by, but I would like to just do it internally during the script. Would executing sudo work? I could create a cgi script that can...
  16. plasmatwin

    er... SUID?

    yes, the WORLD, as in I will be the only one who can actually gain access to it. Go figure... The idea is fine, I can do the parts of passing the input, all I want to be told is how to get the root access! That's the problem with the docs I find on the internet, they are all to ready to tell me...
  17. plasmatwin

    Win32::NetResource

    The readme also states that on Win32 systems (which I assume you are on due to the module) you should just copy the contents of the lib folder in the archive to the sitelib folder of your perl installation (such as C:\perl\) Since the makefile.pl passed without any errors then you can assume...
  18. plasmatwin

    er... SUID?

    so how does webmin do it? I don't want to use the actual webmin package but I am designing something along the same lines for a little project. Webmin has a log on system, so will this soon. I was going to get to that later, this is me just playing around at the moment. If you can tell me how to...
  19. plasmatwin

    er... SUID?

    ok, I am doing a web based admin system for a little project I am working on. To see what I could do as a start I decided to start on reading the iptables rules and formatting them nicely on the page - just to start. I hit a rather large road block though, I need root permissions. I am using the...
  20. plasmatwin

    relative paths in perl...

    sorry, I detect them by looking for a "." at the beginning, there might not be a following slash.

Part and Inventory Search

Back
Top