I’m just trying to make a simple script which involves the command “jobs”, but it doesnt seem to work, it doesn’t even get recogniced by “man”… No idea what’s going on :S.
Share
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.
jobswill only report on background and/or suspended processes that were spawned by the instance of the shell in whichjobsis being run. So using it in a script will be of limited usefulness (but should be fine for just reporting what’s going on to the script user), as only things that were spawned earlier in the script and either backgrounded or suspended in some other way will be known to the shell instance running the script.