AW: how to automate yum installation

2009-12-07 Thread Thomas Bätzler
mahesh bhasme asked: > I want to pass yes/no argument to this comment : (Is this ok [y/N]: [y] > ) > . How we can do this in perl? Generally speaking, read the perlipc manpage ("perldoc perlipc" on the command line). In this particular instance, I'd rather suggest using "yum -y" instead. MfG

Re: how to automate yum installation

2009-12-07 Thread Agnello George
On Tue, Dec 8, 2009 at 12:29 PM, mahesh bhasme wrote: > Hi, > I have to configure yum installation using perl. I want write script for > > [r...@bis-testqa ~]# yum install perl > > Setting up Install Process > > Parsing package install arguments > > Package perl - 4:5.8.8-10.el5_0.2.x86_64 is alr

how to automate yum installation

2009-12-07 Thread mahesh bhasme
Hi, I have to configure yum installation using perl. I want write script for [r...@bis-testqa ~]# yum install perl Setting up Install Process Parsing package install arguments Package perl - 4:5.8.8-10.el5_0.2.x86_64 is already installed. Resolving Dependencies --> Running transaction check

Re: could not execute psexec

2009-12-07 Thread Bob goolsby
Note the last-but-one line that I quoted from the PSexec Doc: "Just copy PsExec onto your executable path. " I strongly suspect that you are NOT running the same environment in Perl as you are when you run from the command line. Check your PATH variables and fix your installation to inclu

Re: sort %hash by key

2009-12-07 Thread Shawn H Corey
Robert Wohlfarth wrote: > On Mon, Dec 7, 2009 at 10:29 PM, wrote: > >> I'm fairly new to perl but loving it. I've run into some trouble though... >> Trying to sort a hash by it's key value, which is not a problem by itself; >> >> foreach(my $key (sort keys %channels)) { >>print $key; >> }

Re: could not execute psexec

2009-12-07 Thread perl pra
Hi All, I have done the following. printed the cmd variable and check what actually got passed. If I copy paste the printed command on dos prompt it worked fine. I think its not intallation issues as I could execute the command from the dos prompt. Thanks, siva On Tue, Dec 8, 2009 at 1:02 AM,

Re: How to analyze a URL string?

2009-12-07 Thread Raymond Wan
Hi Grant, Grant wrote: I'm setting up the URL structure for my next website. I'd love to know what you guys think is the best way to analyze the URL in perl in order to generate the resultant page correctly. The URL structure only has 2 variants: /page-name.html /page-name/1/2.html ... P.

Re: sort %hash by key

2009-12-07 Thread Robert Wohlfarth
On Mon, Dec 7, 2009 at 10:29 PM, wrote: > I'm fairly new to perl but loving it. I've run into some trouble though... > Trying to sort a hash by it's key value, which is not a problem by itself; > > foreach(my $key (sort keys %channels)) { >print $key; > } > > What I've been struggling wit

sort %hash by key

2009-12-07 Thread trapd00r
Hi, I'm fairly new to perl but loving it. I've run into some trouble though... Trying to sort a hash by it's key value, which is not a problem by itself; foreach(my $key (sort keys %channels)) { print $key; } What I've been struggling with for the last hour or so is how I could sort the

Re: Can I design a website using Perl

2009-12-07 Thread Steve Bertrand
Scott Pham wrote: > Parag Kalra wrote: >> Hello All, >> >> I have only interacted with PHP/MySQL to design a website. >> >> I wanted to know if it is possible to use Perl instead of PHP (and I am >> pretty sure it should be possible :) ). But my main concern is what >> are the >> main Pros & Cons o

Re: how to tr this?

2009-12-07 Thread John W. Krahn
Xiao Lan (小兰) wrote: Hello, Hello, I have a text whose content is like: aaaa bbbbaa aaxxxbb bb776yhghhaa I want to switch all "aa" and "bb". I can handle this use regex: s/aa|bb/$& eq 'aa'?'bb':'aa'/ge; But how to use 'tr' doing that? $ perl -e' my @data = qw/ aaaa

Re: could not execute psexec

2009-12-07 Thread Bob goolsby
Funniest thing -- when I run psexc from the command line I get: C:\Documents and Settings>psexec 'psexec' is not recognized as an internal or external command, operable program or batch file. C:\Documents and Settings>psexec.exe 'psexec.exe' is not recognized as an internal or external command,

Re: Can I design a website using Perl

2009-12-07 Thread Scott Pham
Parag Kalra wrote: Hello All, I have only interacted with PHP/MySQL to design a website. I wanted to know if it is possible to use Perl instead of PHP (and I am pretty sure it should be possible :) ). But my main concern is what are the main Pros & Cons of using Perl instead of PHP. I have ver

Re: could not execute psexec

2009-12-07 Thread C.DeRykus
On Dec 7, 4:29 am, perl...@gmail.com (Perl Pra) wrote: > Hi All, > > I need to execute "*psexec.exe"* which is in C:\Windows\system32 through > perl scirpt. > .I am getting  the error "*'psexec' is not recognized as an internal or > external command,operable program or batch file"* > > Below is the

Re: could not execute psexec

2009-12-07 Thread Robert Wohlfarth
On Mon, Dec 7, 2009 at 6:29 AM, perl pra wrote: > Hi All, > > I need to execute "*psexec.exe"* which is in C:\Windows\system32 through > perl scirpt. > .I am getting the error "*'psexec' is not recognized as an internal or > external command,operable program or batch file"* > [snip] > my $cmd=

Re: could not execute psexec

2009-12-07 Thread Shlomi Fish
On Monday 07 Dec 2009 14:29:28 perl pra wrote: > Hi All, > > I need to execute "*psexec.exe"* which is in C:\Windows\system32 through > perl scirpt. > .I am getting the error "*'psexec' is not recognized as an internal or > external command,operable program or batch file"* > > Below is the perl

could not execute psexec

2009-12-07 Thread perl pra
Hi All, I need to execute "*psexec.exe"* which is in C:\Windows\system32 through perl scirpt. .I am getting the error "*'psexec' is not recognized as an internal or external command,operable program or batch file"* Below is the perl script. --- SNIP #!/usr/bin/perl -w use strict; use warnings;

Re: how to tr this?

2009-12-07 Thread Shlomi Fish
Hi Xiaolan! On Monday 07 Dec 2009 12:20:45 Xiao Lan (小兰) wrote: > Hello, > > > I have a text whose content is like: > > aaaa > bbbbaa > aaxxxbb > bb776yhghhaa > > > I want to switch all "aa" and "bb". > I can handle this use regex: > > s/aa|bb/$& eq 'aa'?'bb':'aa'/ge; > > > But ho

how to tr this?

2009-12-07 Thread 小兰
Hello, I have a text whose content is like: aaaa bbbbaa aaxxxbb bb776yhghhaa I want to switch all "aa" and "bb". I can handle this use regex: s/aa|bb/$& eq 'aa'?'bb':'aa'/ge; But how to use 'tr' doing that? Thanks. //Xiao lan -- To unsubscribe, e-mail: beginners-unsubscr...@per