#!/bin/sh echo 'msg="Hello World!"' > hello echo 'echo $msg' >> hello chmod 777 hello ./hello
Standard input is empty
Standard output is empty
./prog.sh: line 2: hello: Permission denied ./prog.sh: line 3: hello: Permission denied chmod: cannot access ‘hello’: No such file or directory ./prog.sh: line 5: ./hello: No such file or directory