Exactly, I actually wish to run 'yum' through Perl, but I want to give
(even) a non-sudoer the opportunity to authenticate for root and go
ahead with the install.
Tom Phoenix wrote:
On 7/17/07, Teresa Thomas <[EMAIL PROTECTED]> wrote:
But when I
try to execute commands that require user inpu
--- "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> wrote:
> You can't run su except from a terminal. This is
> not part of Perl, it's
> part of the security for su. There's no way
> around this.
>
No way?I think Expect.pm can do this.Though putting
passwords, especially root passwords, into scrip
On 7/17/07, Teresa Thomas <[EMAIL PROTECTED]> wrote:
But when I
try to execute commands that require user input (eg, su or yum while not
on root), then it says 'standard in must be a tty' and fails.
These are programs that don't expect to be run by other programs, but
by humans. If you want to
Teresa Thomas wrote:
Perl's system() function seems to be working great for simple commands
like 'pwd' , 'ls' that does not require user interaction. But when I
try to execute commands that require user input (eg, su or yum while not
on root), then it says 'standard in must be a tty' and fails
Teresa Thomas wrote:
Perl's system() function seems to be working great for simple commands
like 'pwd' , 'ls' that does not require user interaction. But when I
try to execute commands that require user input (eg, su or yum while not
on root), then it says 'standard in must be a tty' and fails
Perl's system() function seems to be working great for simple commands
like 'pwd' , 'ls' that does not require user interaction. But when I
try to execute commands that require user input (eg, su or yum while not
on root), then it says 'standard in must be a tty' and fails.
Is this because Pe
-- Forwarded message --
From: Matthew Topper <[EMAIL PROTECTED]>
Date: Jul 17, 2007 6:17 AM
Subject: Re: Executing commands through Perl
To: Teresa Thomas <[EMAIL PROTECTED]>
It sounds like Perl might be overkill for this. Personally, anytime I find
myself using the
Teresa Thomas wrote:
Hi,
Hello,
Its my first time (first day actually!) using Perl and I would like some
help in performing some relatively simple operations.
My program outputs two columns of text based data. I want to parse this
information, extract some contents and send the contents (w
You may also want to look at this:
http://perldoc.perl.org/perlipc.html#Using-open()-for-IPC
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Teresa Thomas wrote:
Hi,
Its my first time (first day actually!) using Perl and I would like some
help in performing some relatively simple operations.
Welcome to the world of Perl.
My program outputs two columns of text based data. I want to parse this
information, extract some contents
On 7/16/07, Teresa Thomas <[EMAIL PROTECTED]> wrote:
Hi,
Its my first time (first day actually!) using Perl and I would like some
help in performing some relatively simple operations.
My program outputs two columns of text based data. I want to parse this
information, extract some contents and
11 matches
Mail list logo