Re: Perl issue

2006-07-17 Thread Dr.Ruud
John W. Krahn schreef: > system( $CT, 'lsreplica', '-fmt', '%[master]p\n', '-invob', $a ) == 0 > or die "system $CT failed: $?"; Yes, much better than anything I suggested. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: Perl issue

2006-07-17 Thread John W. Krahn
Sayed, Irfan (Irfan) wrote: > Hi, Hello, > I am executing following perl script > > # perl script to change the hostname of every replica / VOB > > use strict; > > my $CT = "ct"; > > my @vob_list = `$CT lsvob -s`; Assuming that 'ct lsvob -s' outputs the list: \openssl_openssl \openssl_

RE: Perl issue

2006-07-17 Thread Jeff Peng
Give a try on changing this line: `$CT lsreplica -fmt %[master]p\n -invob $a`; to: `$CT lsreplica -fmt \%[master]p\n -invob $a`; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Perl issue

2006-07-17 Thread Sayed, Irfan \(Irfan\)
\n means a newline character. I tried putiing '' around the $a but still same error. plz help Regards Irfan. -Original Message- From: Dr.Ruud [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 5:30 PM To: beginners@perl.org Subject: Re: Perl issue "Sayed, Irfan (

Re: Perl issue

2006-07-17 Thread Dr.Ruud
"Sayed, Irfan (Irfan)" schreef: > foreach my $a (@vob_list) > { >print $a; > `$CT lsreplica -fmt %[master]p\n -invob $a`; Why is the \n in there? Is it meant as a literal, or as a newline? I think you need '' around (the contents of) $a. -- Affijn, Ruud "Gewoon is een tijger."

Perl issue

2006-07-17 Thread Sayed, Irfan \(Irfan\)
Hi, I am executing following perl script # perl script to change the hostname of every replica / VOB use strict; my $CT = "ct"; my @vob_list = `$CT lsvob -s`; print "Following are the VOBs / Replicas whose hostname needs to be change \n"; print @vob_list; foreach my $a (@vob_list)

Re: Perl Issue

2002-05-01 Thread Frank Wiles
On Wed, 1 May 2002 11:11:46 -0400 CMS <[EMAIL PROTECTED]> wrote: > Does Perl, or a script .pl every time someone would > access the site, with that script .pl does perl > open another perl session, of itself ? > eg: 5 people connection, to web site, 5 perl running ?? Yes it will launch 5 P

Perl Issue

2002-05-01 Thread CMS
Does Perl, or a script .pl every time someone would access the site, with that script .pl does perl open another perl session, of itself ? eg: 5 people connection, to web site, 5 perl running ?? Thanks- Richard -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA