title: How can I pass a password to the "su" command?
body: <p>I have a program that is going to take a password as input and then do a shell execute to perform a "su" (switch user) command in UNIX.  However, I don't know how to pass the password variable to the UNIX su command.  The language I have to use for this is pretty limited (UniBasic). </p>
  
  <p>Any ideas?</p>