Is there any way to give input to background processes or which run as daemon processes?
I was coding some Puppet configuration files and I had to push them to some remote machine. For that purpose I used git.
So I created a bare repository on that remote machine and used a git hook which would update the file after each push. So to update in /etc/puppet of the server machine I need to authenticate as root of that machine... But git essentially does this transfer through SSH (in the background ).
I tried to use /bin/expect to provide username and password for root of the remote machine but it didn't work.