In bash, how do I input a password for a background process command?
bash, linux, nohup
Solution
Usually this is done by not requiring a password at all. Instead, consider configuring SSH to use a public key. There are several resources online (such as this one from dreamhost) that can help you do that.
Problem
I'm trying to do an rsync backup from dreamhost to another host, here's the command i'd like to use: nohup rsync -e "/usr/bin/ssh" --bwlimit=2000 -av username@server.dreamhost.com:remote_directory local_directory& I'd like the process to keep running in the background and even when I disconnect. Problem is, I don't know how to put in the password when it's a background process. How do I do this?