I have a command
foo that (for reasons we need not go into) needs to have a pty allocated, i.e.
foo succeeds but
nohup foo fails.
What is the easiest way to allocate a pty when there is not one?
screen -D -m foo seems like overkill, an does not return an exit code (which I need). Save for the exit code, it works.