Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Micro Focus Exam 050-733 Topic 3 Question 77 Discussion

Actual exam question for Micro Focus's 050-733 exam
Question #: 77
Topic #: 3
[All 050-733 Questions]

You would like to run command2 only if command1 completed successfully.

Which command accomplishes this task?

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Buffy
3 months ago
If I wanted to run command2 regardless of command1's success, I'd just use 'command1 ; command2'. Easy peasy!
upvoted 0 times
...
Breana
3 months ago
Haha, option C is definitely wrong. Redirecting the output of command1 to command2 wouldn't achieve the desired result. I'm sticking with D.
upvoted 0 times
Kati
1 months ago
Definitely not C. D is the way to go for running command2 after command1.
upvoted 0 times
...
Elden
2 months ago
I'm with you guys, D is the way to go for running command2 after command1.
upvoted 0 times
...
Kip
2 months ago
Yeah, redirecting the output wouldn't work. D seems like the logical option.
upvoted 0 times
...
Ernie
2 months ago
I agree, option C doesn't make sense. I think D is the correct choice.
upvoted 0 times
...
...
Ellsworth
3 months ago
I was going to choose B, but then I realized that ';' is just for sequential execution, not conditional. D seems like the way to go.
upvoted 0 times
...
Jannette
3 months ago
Option A looks good, but I'm not sure if '||' is the right operator for this task. Hmm, let me think about this some more.
upvoted 0 times
Paola
2 months ago
D) command1 && command2
upvoted 0 times
...
Stevie
2 months ago
I think '||' means 'or', so it might not be the right choice here.
upvoted 0 times
...
Anjelica
2 months ago
A) command1 || command2
upvoted 0 times
...
...
Joesph
3 months ago
I think the correct answer is D. Using '&&' ensures that command2 only runs if command1 completes successfully.
upvoted 0 times
Geoffrey
2 months ago
I agree, using '&&' in between the commands ensures that command2 is executed only if command1 is successful.
upvoted 0 times
...
Jesus
3 months ago
Yes, you are right. Option D is the correct answer for running command2 only if command1 completes successfully.
upvoted 0 times
...
Quentin
3 months ago
I think the correct answer is D. Using '&&' ensures that command2 only runs if command1 completes successfully.
upvoted 0 times
...
...
Caitlin
4 months ago
I'm not sure, but I think D) makes sense. It's like saying 'run command2 only if command1 is successful'.
upvoted 0 times
...
Roselle
4 months ago
I agree with Amos. Using && means command2 will only run if command1 is successful.
upvoted 0 times
...
Amos
4 months ago
I think the answer is D) command1 && command2.
upvoted 0 times
...

Save Cancel