I\'m trying to call a custom shell script through sh:
sh
/bin/sh -c \'myscript.sh` >log.txt 2>&1 & echo $!
Output of th
(/bin/sh -c "myscript.sh" >log.txt 2>&1 ; echo $? >somefile) & echo $!