How can I pass password to su command in shell script from another text file.
password.txt is like
password=tryme
shell script need to be ran by user gucq1
shell script is like
#!/bin/bash
cd /pstools/85419/jre/bin
java -Xms1024M -Xmx1024M -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2 -jar /app1/nohr/soft/85419/gucq1/cust/classes/SVC_TestS.jar
I need to run this script with different id (gucq1) than I am logged in with (autoid).
I dont want to use SUDO as I dont have access to it.