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
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
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
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
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;
>> }
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,
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.
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
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
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
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
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,
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
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
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=
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
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;
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
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
19 matches
Mail list logo