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...
User Profile
Collapse
-
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. -
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')...
No activity results to display
Show More
Leave a comment: