I am trying to run a shell script within that I will be calling another script and the 2nd script waits for some commands to be provided. I have used echo to pass the commands but it does not work. the 2nd script keeps on waiting for input.script1:#!/bin/shset -xsh script2.shecho .open Simulation\nset +xbut this does not yield any result. it keeps on waiting.output:./script1.sh+ sh script2<Nothing appears here>
Pass commands to a script which is waiting for an input on a Linux machine
shell script;shell