Starting a shell from scripts using su results in "no job control in this shell"
This document (7009640) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11 Service Pack 1
Situation
linux:~ # su - test -c "echo 1; echo 2; bash" 1 2 bash: no job control in this shell test@linux:~>
resulting in not being able to use bash's job control and put processes into the background with "CTRL+z bg".
Resolution
instead of
Example:
1
2
test@linux:~>
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7009640
- Creation Date: 26-Oct-2011
- Modified Date:19-Aug-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com