User Profile

Collapse

Profile Sidebar

Collapse
eggi
eggi
Last Activity: Nov 3 '08, 10:58 PM
Joined: Nov 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • eggi
    replied to Perl rename function doesnt work!
    in Perl
    Hmm... that's odd.

    I created a file named "binger", ran the inside of your code and it did rename the file to "Binger."

    I would do as was suggested in the previous reply. It seems that the problem is most likely that the $file variable isn't getting set correctly or there are characters i teh name that arent' getting translated with "tr" properly. If you are using full path names, you may...
    See more | Go to post

    Leave a comment:


  • eggi
    replied to Help me in recursive!!!
    in Perl
    Hey Jeff


    Sorry about that - I will refrain from including links. I assumed it was okay because it's part of the editor selections.

    Thanks :)

    , Mike
    See more | Go to post

    Leave a comment:


  • eggi
    replied to Help me in recursive!!!
    in Perl
    Hey there

    The problem looks like it has to do with scoping. Even though this isn't the end-solution, can you write a copy of this code and remove the "my" declarations and see if you get the same error? If you do, then you'll need to refer to the top_xml_node, when you run append_child, absolutely like so:

    Code:
    NameOfModule::top_xml_node->appendChild($top_node)
    Best wishes,

    ...
    See more | Go to post
    Last edited by numberwhun; Dec 17 '07, 03:01 PM. Reason: remove personal URL (per posting guidelines)

    Leave a comment:


  • eggi
    replied to user creation in HP-UX
    Hey There,

    The previous post was dead-on. useradd works almost exactly the same way in HP-UX as it does in Solaris.

    The issue you had (I'm surprised you didn't get an error message) is that you told useradd (with the -m flag) that you wanted to make the home directory, but not what that directory you wanted created.

    The problem was that, by adding the option you were being just specific enough for...
    See more | Go to post

    Leave a comment:


  • Hey There,

    Have you checked catalina.out? If you could post the error from there when you startup, I'd be happy to help you figure it out.

    Best wishes,,

    , Mike
    See more | Go to post
    Last edited by Niheel; Jun 30 '11, 04:54 PM. Reason: no signatures

    Leave a comment:


  • eggi
    replied to Perl chdir problem
    in Perl
    Hi,


    Try:
    chdir("$dirloca tion");

    , Mike
    See more | Go to post

    Leave a comment:


  • eggi
    replied to Match pattern and Extract section from file
    in Perl
    To get you started, you can extract elements from a perl match using parentheses on the left hand side and $ variables on the right

    for instance

    [code=perl]
    $string="what is it"
    print "$string\n" ;
    $string =~ /^.* (is) .*$/$1/;
    print "$string\n" ;
    [/code]

    first print should get you "what is it"
    second print should just be...
    See more | Go to post
    Last edited by numberwhun; Nov 25 '07, 03:04 PM. Reason: add code tags

    Leave a comment:


  • eggi
    replied to How to disable auto detection of usb device?
    Hey There,

    Take a look at /etc/modules.conf. If you find a line there for usb, comment it out. Also, try disabling Kudzu.

    , Mike...
    See more | Go to post

    Leave a comment:


  • eggi
    replied to How to start telnet ?
    Hey there,

    It depends on what kind of system you're using, but the short answer would be to add a line in most Unix to /etc/inet/inetd.conf or, in Linux add an entry in /etc/xinetd.d for it.

    For both you can just borrow from what's probably already there.

    In unix, in /etc/inet/inetd.conf, copy any line (probably best at the top) that has the terms "tcp" and "stream" in it and substitute...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...