Mock Exam 2 - Ques 7 - Job

I wrote the command exactly as asked in question’s 1st line. But i got it wrong acc to autograder. What is wrong with my command?

Pretty sure this particular question is looking for the use of sh -c.

1 Like

Question doesn’t specify, so is there a way to tell it is looking for sh -c?

Unfortunately there is not.
You are perfectly correct in assuming that cowsay will run without sh -c - indeed it will.

I placed a ticket in the lab team backlog on this question some days ago, suggesting that this question should be marked on the content of the pod logs, which will contain the cowsay output however you invoke it as command.

2 Likes