How can I get the print statements to write to a file? Using windows with Interix.
if( $this = $that) {
print "AAA\n";
print "BBB\n";
print "CCC\n";
}
-Justin
Is there a quick way to find out the last element of an array? for example if I opened up a directory for reading and put the contents into an array. How can I find out how many elements there are in that array? Once I get that information I want to put that value into a variable. If I'm not...
$line = aaa_A43.bbb11_07172002_00.ab.err
@line = split(/[a-zA-Z_.]+/, $line);
This is what I get - 43 11 07172002 00
How can I make @line = "07172002"
Please Help.
Another script someone else wrote tries to send some file to another server via a home grown protocal every hour. If for some reason the other server was unable to receive this information it will create an error file like the ones below. What my script is doing now is opening a dir and reading...
@files= grep/.err/,readdir(DIR) or die "Unable to read directory $srcdir: $!\n";
This is a line in my script that I use to put everything with a .err extension into an array.
I'm not to good at writing regular expressions so if someone could help me I would really appreciate it. Basically I have bunch a files in a directory that look like the this "clog_b43.jus11_07172002_00.ab.err". I want to get rid of everthing but "07172002_00.ab.err". How can...
This code looks ok to me, but I keep getting a "Sorry can't open c:\Logs directory: Permission denied when trying to read this file. I made sure the correct permissions were set. Can anyone please help.
#!perl -w
use strict;
my $srcdir="c:\\Logs";
my @files=();
open(DIR...
There are certain things I need to remotely copy over to my machine on a daily basis using scp. I want to write a script to do this. I've never used the ssh module and I can't find any documentation on it. Can anyone help
-Justin
I'm using Win2k with legato 6.0.1 I'm getting a Connection Timed out error. I've tried to change the inactivity timout to 0 but this does not work. I can force a backup to the server from the client just fine. But the server can not fetch the data from the client. Any sugestions?
What works for me is edit your pool. Under clients make sure this is empty. If all the clients you need to backup are already in the group you have choosen then you don't need to specifiy anything in the client section. This worked for me. Hope this helps
-Justin
For those of you who can't find inactivity timout its a hidden attribute. Go to options and customize and check display hidden attributes. Then try again.
http://web1.legato.com/infodev/publications/NetWorker/WINDOWS/6.0.1/winrs.pdf
look on page 33 this will tell you about the inactive...
Try to change your target sessions. In networker 5.7 you can change it from 1-512. I found this helps. I'm not to sure if this is the right solution but it works. Let me know if it works for you.
-Justin
I'm using legato 5.7 under win2k. I've just started using legato not to long ago. Before I hook up a JB I've been using a dat drive with a 120m tape. The tape keep filling up at 3.9m. Now I know the tape hold more data then that. What am I doing wrong. Please help
-Justin
Has anyone everseen this error?. I'm using legato 5.7 under win2k. I ger this error when I'm on the client trying to restore a backup. I can't get the server to back up the client. I get this error from the server. WISS error,bad database version.
-Justin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.