in reply to Re^9: Problem using Net::OpenSSH->capture to su to another user
in thread Problem using Net::OpenSSH->capture to su to another user
Hi Salva,
Ok, I've gotten it working now, the trick is to break up the command, surrounded by single quotes, so that su doesn't think it is being passed parameters.
However, I still always get the below error when the capture method is called.
tcgetattr: Invalid argument
I suppose it isn't a showstopper, but it makes the output of the script quite ugly with all these error lines coming through. I suppose there is no way of silencing this error?
regards,
Tim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Problem using Net::OpenSSH->capture to su to another user
by salva (Canon) on Jun 05, 2014 at 10:30 UTC | |
by tim.culhane (Initiate) on Jun 05, 2014 at 14:06 UTC | |
by salva (Canon) on Jun 05, 2014 at 14:26 UTC | |
by tim.culhane (Initiate) on Jun 06, 2014 at 08:22 UTC |