RE: perl script on remote server linux

2008-09-01 Thread Irfan J Sayed (isayed)
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.

RE: perl script on remote server linux

2008-08-29 Thread Irfan J Sayed (isayed)
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

RE: perl script on remote server linux

2008-08-28 Thread TADIPAH
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

RE: perl script on remote server linux

2008-08-28 Thread Jeff Pang
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.

RE: perl script on remote server linux

2008-08-28 Thread Irfan J Sayed (isayed)
.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

RE: perl script on remote server linux

2008-08-28 Thread TADIPAH
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

RE: perl script on remote server linux

2008-08-28 Thread Jeff Pang
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 > > > &

RE: perl script on remote server linux

2008-08-28 Thread Irfan J Sayed (isayed)
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

RE: perl script on remote server linux

2008-08-27 Thread Jeff Pang
> 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

RE: perl script on remote server linux

2008-08-27 Thread Irfan J Sayed (isayed)
@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

Re: perl script on remote server linux

2008-08-27 Thread Raymond Wan
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

Re: perl script on remote server linux

2008-08-27 Thread Raymond Wan
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

RE: perl script on remote server linux

2008-08-27 Thread Jeff Pang
> 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

RE: perl script on remote server linux

2008-08-27 Thread Irfan J Sayed (isayed)
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

perl script on remote server linux

2008-08-26 Thread TADIPAH
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