User Profile

Collapse

Profile Sidebar

Collapse
roblenator
roblenator
Last Activity: Jul 10 '07, 03:51 PM
Joined: Jun 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to create a variable from 2 variables? $a=M; $b=15; $M15 = newvar;

    Please respond to <REMOVED BY MOD>

    I am trying to parse a log file to determine when a process runs - to find a lull to reboot the server or do other system maintenance.

    I would like to build the following table:

    Sun Mon Tues ...
    hour
    0 1 1 1
    1 5 0 3
    2
    3
    4
    ...

    Where the number 5, means this...
    See more | Go to post

  • Thank you thank you thank you!!!

    The problem was my C$ needed to be C\$.

    So, the syntax opendir(DIR, "\\\\$node\\C\$ \\Servers") is the correct syntax.
    See more | Go to post

    Leave a comment:


  • Access UNC Windows path using variable as server name

    I am trying to access files on a remote windows server using the following code;
    [CODE=perl]
    my $node = 'server5';
    opendir(DIR, '\\$node\C$\Ser vers') or warn "open failed. reason: $!";
    [/CODE]

    I get an error; open failed. reason: no such file or directory at ... line xx.

    If I place the node name in place of the $node, it works fine.
    [CODE=perl]
    opendir(DIR, '\\server5\C$\S ervers')...
    See more | Go to post
    Last edited by miller; Jun 5 '07, 07:39 PM. Reason: Code Tag and ReFormatting
No activity results to display
Show More
Working...