Bob has written a Shell program to calculate the salary of ABC
Organization and mail the calculated salary to the employees. Bob assured
that there will be no human intervention required to run the shell program.
Manager of Bob, decided to run this shell program on the last working day of
every month and he wants to view the run time errors after the execution of
this shell script. Suggest him the solution

sh filename.sh 1> errorLog.txt
sh filename.sh 1>> errorLog.txt
sh filename.sh 2>> errorLog.txt
sh filename.sh 0> errorLog.txt
Verified Answer
Correct Option - c

To get all Infosys Certified L2 Junior Open Source Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram