I want to run
sleep 1; echo "hello"
in Shell in Julia. However,
run(`sleep 1; echo "hello"`)
doesn’t work correctly due to ;
but I can’t find how to change the code. Can anyone help me?
I want to run
sleep 1; echo "hello"
in Shell in Julia. However,
run(`sleep 1; echo "hello"`)
doesn’t work correctly due to ;
but I can’t find how to change the code. Can anyone help me?
run(`sleep`)
run(`echo "hello"`)
Or:
run(`bash -c 'sleep 1; echo "hello"'`)