Both server are in cluster, in a virtual environment.
I have done this till now, and it seems to work:
#!/usr/bin/perl
use strict;
use warnings;
use Net::SFTP::Foreign;
open FIL, '<monitorFile';
my $line = <FIL>;
close FIL;
my $host = 'host1';
my $password = 'password';
my $user = 'root';
my...
Thank you very much!! that was great!
Can you please help me in another step?
I want to add this:
If the date is the TODAY day, copy this file into another server.
Thank you very very much!!!
i have written only the part that is related to the format of my date. sorry, but i am new to perl.
#!/usr/bin/perl
use strict;
use warnings;
my ( $sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst ) = localtime(time()- 24*60*60 );
$year += 1900;
$mon += 1;
if( $mon < 9 ){
$mon = "0"...
Hi all, i am new to perl.
i have a text file that contains the date in only one row.
I want to check if the date inside this file is the today date or not.
The file contains the date in this form:
file_save = 20120628150005
the first 8 numbers( 20120628 ) indicates the date, the other...
Hi all,
i have written this script:
Code:
awk -F';' '
BEGIN {
printf "\n"
printf "\n"
printf "\n"
printf "----------------------------------------------\n"
print " For test "
printf "----------------------------------------------\n"
test_200 = 0
test_300 = 0
test_500 = 0...
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.