echo $PASSWD |ssh -tt loguser@enfcdb01 "sudo -Sk -p '' -- su -lc ls im +ail"
(BTW, you may like to remove the password from your previus post)
In reply to Re^7: Problem using Net::OpenSSH->capture to su to another user
by salva
in thread Problem using Net::OpenSSH->capture to su to another user
by tim.culhane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |