I can start a background process like this:
>user@host ~ $ sleep 2m &
>[1] 123456
The job number and pid [1] 123456
are displayed immediately after starting the background job.
After starting the job, I can check its status using jobs -l
.
>user@host ~ $ jobs -l
>[1] 123456 Running sleep 2m &
I would like to see the full output of jobs -l
when I start my background process like this:
>user@host ~ $ sleep 2m &
>[1] 123456 Running sleep 2m &
I would also be happy with just the command, like this:
>user@host ~ $ sleep 2m &
>[1] 123456 sleep 2m &
I have looked in man pages for some environment variable that controls what is displayed but haven't found it yet. Is this possible and if so, how can it be done?