For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2006 > Term:ReadKey









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Term:ReadKey
Michael Gale

2006-07-23, 6:56 pm

Hello,

I am using Term::ReadKey with the ReadLine function, is there a way to
pass my input to the shell ?

So if I type in ls and hit enter, it will pass my commands to the shell
to be executed ?

Michael
DJ Stunks

2006-07-23, 6:56 pm

Michael Gale wrote:
> Hello,
>
> I am using Term::ReadKey with the ReadLine function, is there a way to
> pass my input to the shell ?
>
> So if I type in ls and hit enter, it will pass my commands to the shell
> to be executed ?


exec(uted)?

-jp

T Baetzler

2006-07-24, 3:56 am

Michael Gale <michael.gale@bluesuperman.com> asked:
> I am using Term::ReadKey with the ReadLine function, is=20
> there a way to pass my input to the shell ?


Have a look at system(), and the perlipc manpage.

HTH,
Thomas


Michael Gale

2006-07-24, 6:57 pm

Hello,

This will not work as my system will block on the command until it is
done. I want / need the script to continue catching the input.

Michael


Thomas Bätzler wrote:
> Michael Gale <michael.gale@bluesuperman.com> asked:
>
>
>
> Have a look at system(), and the perlipc manpage.
>
> HTH,
> Thomas
>
>

DJ Stunks

2006-07-24, 9:56 pm

Michael Gale wrote:[color=darkred]
> Hello,
>
> This will not work as my system will block on the command until it is
> done. I want / need the script to continue catching the input.
>
> Michael
>
>
> Thomas B=E4tzler wrote:

some perl.beginners do's and don'ts:

1) don't top post
2) do specify the problem completely right off the bat rather
than forcing us to guess at solutions which turn out not
to fit criteria you didn't even mention.

-jp

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com