Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Executing a program as another user

by wog (Curate)
on Feb 13, 2002 at 03:31 UTC ( #145055=note: print w/replies, xml ) Need Help??

in reply to Executing a program as another user

You could use to have your program communicate with su through a tty.
  • Comment on Re: Executing a program as another user

Replies are listed 'Best First'.
Re: Re: Executing a program as another user
by nomis80 (Sexton) on Feb 14, 2002 at 03:59 UTC
    Could you please supply some example? I have trouble simply understanding what is supposed to do. ;)
      Well, I guess the CPAN site I pointed to doesn't have really up-to-date documentation... More recent docs for are here, and would be helpful if you haven't already seen them. As for examples, the Expect package comes with a bunch of "tutorial" code, which can be seen here. (Link to web view of CVS; click on the reversion number to view anyone of those docs quickly...)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://145055]
[LanX]: HA ... fun! =)
[LanX]: Py2 or 3 ?
[shmem]: moment... lemme see...
[shmem]: Python 2.7.9
[shmem]: but! perl4 doesn't suck.
[LanX]: better try 3
[shmem]: that python stuff is none of my business.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2018-03-20 18:31 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (257 votes). Check out past polls.