Hi,
Please suggest.
Regards,
Irfan.
From: Irfan J Sayed (isayed)
Sent: Friday, August 29, 2008 1:09 PM
To: '[EMAIL PROTECTED]'; Jeff Pang; beginners@perl.org
Subject: RE: perl script on remote server linux
Thanks. It worked but with one issue.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2008 8:18 PM
To: Irfan J Sayed (isayed)
Cc: beginners@perl.org; Jeff Pang
Subject: RE: perl script on remote server linux
Try this:
system "ssh -x -t SERVER_NAME \"sudo /home
ou run
the script.
Thanks,
Hary
"Irfan J Sayed (isayed)" <[EMAIL PROTECTED]>
08/28/2008 10:29 AM
From
"Irfan J Sayed (isayed)" <[EMAIL PROTECTED]>
To
<[EMAIL PROTECTED]>, "Jeff Pang" <[EMAIL PROTECTED]>,
cc
Subject
RE: perl
ot;Jeff Pang" , beginners@perl.org
> Copie à :
> Objet : RE: perl script on remote server linux
>
> Yes. I want to parse string "error" in the log file.
>
> Please suggest how should I achieve this.
>
Regards,
Jeff.
Créez votre adresse électronique [EMAIL PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
.org; Jeff Pang
Subject: RE: perl script on remote server linux
Is there a specific text that you want to parse throught the log file?
Thanks,
Harsha
"Irfan J Sayed (isayed)" <[EMAIL PROTECTED]>
08/28/2008 09:29 AM
From
"Irfan J Sayed (isayed)" <[EM
ginal Message-
From: Jeff Pang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2008 2:32 PM
To: Irfan J Sayed (isayed)
Cc: beginners@perl.org
Subject: RE: perl script on remote server linux
> system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
you need a
il/AVMInstall.log" is a Perl open, shell can't
understand for this at all.
> Message du 28/08/08 15:29
> De : "Irfan J Sayed (isayed)"
> A : "Jeff Pang" , beginners@perl.org
> Copie à :
> Objet : RE: perl script on remote server linux
>
>
>
&
TED]
Sent: Wednesday, August 27, 2008 2:32 PM
To: Irfan J Sayed (isayed)
Cc: beginners@perl.org
Subject: RE: perl script on remote server linux
> system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
you need a "\" before the "@".
modify it to:
sys
> Message du 27/08/08 11:51
> De : "Irfan J Sayed (isayed)"
> A : "Jeff Pang"
> Copie à : beginners@perl.org
> Objet : RE: perl script on remote server linux
>
>
>
> Thanks Jeff. It really helped.
> Just one doubt, if we can perform operati
@perl.org
Subject: RE: perl script on remote server linux
> system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
you need a "\" before the "@".
modify it to:
system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
Créez votre a
Raymond Wan wrote:
Assuming we are using the same ssh, isn't the login name for ssh is
supplied using the "-l" parameter (lowercase L)? Give it a try on the
command line before putting it in the script so that you can figure
out what is wrong easier.
Sorry Irfan and thanks Jeff...I was wron
Hi Irfan,
Assuming we are using the same ssh, isn't the login name for ssh is
supplied using the "-l" parameter (lowercase L)? Give it a try on the
command line before putting it in the script so that you can figure out
what is wrong easier.
Ray
Irfan J Sayed (isayed) wrote:
Hi,
In my
> system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
you need a "\" before the "@".
modify it to:
system "ssh [EMAIL PROTECTED] /home/cgadgil/avm2.1/launchtomcat.sh";
Créez votre adresse électronique [EMAIL PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégr
r_list.txt" or die $!;
while() {
print "the host is: $_";
chomp;
system "ssh -x -t $_ \"sudo /home/tadipah/test.sh\" "; } close FILE;
--Jeff
> Message du 27/08/08 06:33
> De : [EMAIL PROTECTED]
> A : beginners@perl.org
> Copie à :
&g
I am trying to execute a perl script from source A to invoke another
script on 5 remote servers. The script is as follows:
#!/usr/bin/perl
open file, "server_list.txt";
@content = ;
$tot=$#content+1;
print "$tot \n";
while ($tot > 0)
{
$m = shift @content;
print "$m \n";
`ssh -x -t $m
15 matches
Mail list logo