Php – bash issue with variables containing a single quote
I'm trying to run a command at the command prompt and if one of the values includes a single quote it doesn't run correctly. The command I'm using is : lxc-attach -n test -- bash -c 'echo 'abcd1234' > /home/rocket/test.log'…