We have a command to handle the joining of our RHEL7 servers to Privilege Manager for Sudo that is not working when ran from the rc.local script. The command is below with more generic names instead of our specific assets.
echo "password" | /opt/quest/sbin/pmjoin_plugin -b -a -v -q -d masterport=12345 -d FailOverTimeOut=10 -d selecthostrandom=YES somehostname.com someotherhostname.com >> /var/log/Build.log
The command when ran manually or from other bash scripts work to perfection, but when it is executed from within rc.local, it is as if the password is not being piped into the command for when it is prompted for a password.
I've read some suggestions such as "plymouth quit" which has not helped.
Anyone out there have any experience with "echoing" a password to a command this way within the rc.local script so that you can proceed through an interactive script that prompts for a password?
Ultimately, this is just something we want to have run when an instance is first booted. So if there is another way to have a shell script to run once on boot and then delete itself without rc.local then we could explore that route too (crontab, etc?).