hai shawn
yes this is what i am looking for..
glob( '~/.bash_history' )
now the query is working.
thank you for ur reply
Chaitanya
On Tue, May 18, 2010 at 8:18 PM, Shawn H Corey wrote:
> On 10-05-18 10:27 AM, Chaitanya Yanamadala wrote:
>
>> ok is it so..
>> thank you so i think i can do one
hi,
system command is only used to run the command and check its success
based on the exit status.
system ( "history ") == 0 or die " failed";
if you want to capture the output of system command use
my $OUTPUT=`history`;
print $OUTPUT;
you can find more details at
perldoc -f system
--
Re
On 10-05-18 10:27 AM, Chaitanya Yanamadala wrote:
ok is it so..
thank you so i think i can do one thing like open the file ~/.bash_history
and then read the file..
actually i am trying this alternative..
but there is some error..
when i give it like
open(DAT, "~/.bash_history")or die("Cannot ope
e has no history to report.
>
> Bob McConnell
>
> -Original Message-
> From: Chaitanya Yanamadala [mailto:dr.virus.in...@gmail.com]
> Sent: Tuesday, May 18, 2010 10:20 AM
> To: Bob McConnell
> Cc: beginners@perl.org
> Subject: Re: help in perl script
>
> dear Bob
&g
: beginners@perl.org
Subject: Re: help in perl script
dear Bob
if my current shell does not have any history then how come i am getting
the history when i run the same in the terminal??
from where i am getting this history.
Chaitanya
On Tue, May 18, 2010 at 7:03 PM, Bob McConnell wrote
dear Bob
if my current shell does not have any history then how come i am getting the
history when i run the same in the terminal??
from where i am getting this history.
Chaitanya
On Tue, May 18, 2010 at 7:03 PM, Bob McConnell wrote:
> From: Chaitanya Yanamadala
>
> > hai
> > both of these
From: Chaitanya Yanamadala
> hai
> both of these didnt help me..
>
> @kammen
> i can run the history command from the command line..
> but not through the perl script..
> i have tried ur choice but it also didnt work..
>
> @shawn
> yes it didnt gave me any out put..
> but i require to print th
hai
both of these didnt help me..
@kammen
i can run the history command from the command line..
but not through the perl script..
i have tried ur choice but it also didnt work..
@shawn
yes it didnt gave me any out put..
but i require to print the output..
so hw do i do it..
can some body help
On 10-05-18 08:51 AM, Chaitanya Yanamadala wrote:
Can't exec "history": No such file or directory at cmd.pl line 33,
line 1.
--
so what could be wrong
i am running this under the cent os 5.4 and the perl version is 5.8.8
"history" is a built-in shell command for bas