On Fri Jan 13 05:19:16 2012, rodrigo.olmos@gmail.com wrote:
Show quoted text> I've searched the bug list and I didn't find anything related to this:
> With this module the following hangs:
> cmd("su - rodrigo")
>
> But this works:
> cmd("su - rodrigo -c 'commands'")
>
> Is it the normal behavior?
I would say: yes.
The hang probably comes from the missing tty/STDIN for su.
On my Debian it does not hang but 'su' complains
su: must be run from a terminal
in both cases.
I'm cleaning tickets and close this as normal, it's no offense
please simply reopen if you disagree.
Thanks for reporting this.
Kind regards,
Steffen
--
Steffen Schwigon <ss5@renormalist.net>
Dresden Perl Mongers <
http://dresden-pm.org/>