sudo scripts conundrum

view full story

http://www.unix.com – hello; Got a problem running monitoring scripts using sudo ssh.. Mgmt decided to take away root sudoers access.. so most of the scripts ran as: Code: sudo ssh $BOX ... Now I need to run them as: Code: echo $my_pw | sudo -S -l my_user_id $BOX ... I tried this but not working.. Any wisdom/tricks would be appreciated.. Thank you (HowTos)