Auto Start Script Run Issue

Jamie Sammons, modificat fa 1 any. New Member Apunts: 4 Data d'incorporació: 19/12/24 Publicacions recents

Hi Team,

We have written a script to automatically start the web service. Before starting, we need to provide the SSL passphrase. However, due to certain restrictions, we are unable to install the expect library on our Linux system. Is there an alternative method to pass the SSL passphrase? Please find the script below.

# Use `expect` to handle the SSL passphrase prompt
/usr/bin/expect <<EOF
sudo service httpd start
expect "Please Enter SSL passphrase:"
send "$passphrase\r"
expect eof
EOF

 

Thank you,

Vishal S Karjinni