答案:su - oracle -c "/bin/bash /home/oracle/im.sh"
su - username -c "command /home/scripts.sh"
转载于:https://www.cnblogs.com/jimmyTang-J/p/11416748.html