Escaping " or '
#1602
-
Hey guys, is their any way to escape " or ' while using execute command, for example echoing something to a file ? execute -o echo "@reboot sleep 300 && /to/smth" | crontab - |
Beta Was this translation helpful? Give feedback.
Answered by
moloch--
Mar 18, 2024
Replies: 1 comment 1 reply
-
You should be able to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cezamee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to use
--
e.g.,execute -- <anything>
note however depending on the situationexecute
may not invoke a shell, and thus shell operators may not function as you expect them to i.e., you may need to do something akin toexecute -- /bin/bash -c "foobar"