Try this:
onlyauser@mymachine:~$ cat >/dev/.lxc/user/call-me.sh <<.e > #!/bin/sh > echo "I'm executable" > .e onlyauser@mymachine:~$ chmod +x /dev/.lxc/user/call-me.sh onlyauser@mymachine:~$ /dev/.lxc/user/call-me.sh I'm executable
Try this:
onlyauser@ mymachine: ~$ cat >/dev/. lxc/user/ call-me. sh <<.e mymachine: ~$ chmod +x /dev/.lxc/ user/call- me.sh mymachine: ~$ /dev/.lxc/ user/call- me.sh
> #!/bin/sh
> echo "I'm executable"
> .e
onlyauser@
onlyauser@
I'm executable