pass protocols to command from file
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite Need one more help please.. Manual run of following command works fine /jrr/bin/java -Xms14M -Xm14M -Dhttps.protocols=Tv1.2 -Dk.ts.client.protocols=TLSv.2 -jar /gq1/ust/classes/S.jar $(< /pass.txt) but shell fails can't read "(< /pass.txt)": no such variable !/usr/bin/expect spawn ssh gq1@a732.co.com "/jrr/bin/java -Xms14M -Xm14M -Dhttps.protocols=Tv1.2 -Dk.ts.client.protocols=TLSv.2 -jar /gq1/ust/classes/S.jar $(< /pass.txt);cd /gucq1/gcust;mail -s 'Hello' sam@gm.com < logs.txt" expect "password" send "N0r" interact expect eof. bash shell-script ssh command-line openssh share | improve this question edited Dec 14 '17 at 14:18 Archemar 19k 9 33 66 asked Dec 13 '17 at 14:54 SHaFqaT M 6 2 please do not change question, as is my answer in completly useless. you asked a question about bash , then ab...