Is it possible to run an fg or a bg or a jobs command in bash in a pipeline?
What possible inputs/outputs can those commands do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
help fgandhelp bgto answer these qestions.Briefly, no you can’t use them in a pipeline (and what would you expect this to do?)
They don’t have any output, to my knowledge.
I recommend you
man bashand read the JOB CONTROL section.