in reply to Running as Another User
Thanks, I just looked up expect, I think it is what I am looking for, I didn't know that about the system command.
The only reason that I am hardcoding passwords is, is because I have a little project that I want to work with. I am trying to work on something, and when I get everything together and I know everything how I want to know, it I will change it from a hardcode, but it is just faster to hard code passwords in right now, to save time.
Thanks.