fork download
  1. #!/bin/sh
  2. echo 'msg="Hello World!"' > hello
  3. echo 'echo $msg' >> hello
  4. chmod 777 hello
  5. ./hello
  6.  
Runtime error #stdin #stdout #stderr 0s 5080KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./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