I have stopped a job by pressing Ctrl-z
. Can I resume the job with bg
, yet have the output redirected to a log file instead of stdout? Doing the following:
bg > log.txt
Only writes the initial printed line (e.g. [1]+ <<job_name>> &
) to the log file.