Use redirection like
yourprogram arg1 arg2 > yourprog.out
or probably even (to redirect both stderr & stdout and run in the background)
yourprogram arg1 arg2 > yourprog.out 2>&1 &
In a different terminal, do
tail -f yourprog.out
With the -f
option, the tail
command will notice when the file is growing and will display its newest lines
But I can't see portable way to redirect after. Maybe screen
, batch
, at
, cron
might help you. Or opening the /proc/1234/fd/1
...
BTW, I am surprised you don't have enough temporary disk space for your output...
And I do like running M-x shell
under emacs, and running my programm there.