Ah, thanks, that's it! Using nohup did the trick. Now my one-line solution to all things latexy is rubber -d main && (wmctrl -a main.pdf || nohup gnome-open main.pdf > /dev/null) which compiles the document and runs a viewer. Thanks! Antoine On 30 June 2010 23:51, Andreas Schwab wrote: > Antoine Levitt writes: > > > Yes, I understand that. What I don't understand is why this command does > > not work when using compile. > > It does work, but the command is immediately killed by SIGHUP because > the session is closed. > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." >