Dhawan Shringi:
In case of a pod command
, I thought we always need /bin/sh -c
or something of the sorts for the command execution, are there any cases where we don’t add that?
Fernando Jimenez:
/bin/sh
-c
only when you need the shell to interpret something. If it is an executable you do not need it.
Fernando Jimenez:
Instead of this
command: ["/bin/sh", "-c", "sleep 3600"]
Since sleep
is an executable, then
command: ["sleep", "3600"]
Dhawan Shringi:
Thanks Fernando!