If I run a Bash script via the setsid command, its controlling terminal will not be attached to any device (it will show up as "?").
Is there a way to re-attach the controlling terminal to some free pts device from a shell script.
Will I be able to use stdin and stdout inside the script run via setsid, after its controlling terminal gets detached?