Using: CentOS 6.2 BASH shell
My script is something along the lines of
#!/bin/bash
INSTALL_PATH="Enter install path"
CR="\n"
/bin/su root -c "/usr/bin/expect << EOF
spawn name.run
expect $INSTALL_PATH
send $CR
EOF; ... do more stuff..."
Now sometimes my name.run file asks "Would you like to uninstall?" how can I send this as an optional argument after the first send?