If I open a program, say evince, from the GNOME GUI, it is not attached to a terminal. If I send it a signal, it acts accordingly but nothing shows up in my terminal.
If I were to open it in a terminal to start with and allow it to run in the foreground, it would show what signals it had received.
Say I run evince as just evince from the terminal. And then in another, I run ps -e
, find its PID, and then do kill -11 [PID]
. It will print out "Segmentation fault (Core dumped)". For other signals, it may print "Received signal..." How can I start a terminal and have it shows signals that are sent to a program that was not started within a terminal but rather a GUI?
Is it possible to open a program in the GUI, and then attach a terminal to it so I can see the same behavior as if I had opened it from within the terminal?
gdb
so I can't see why it's not working. – Joseph R. Aug 04 '14 at 19:46evince
might show some errors and warnings (e.g. about corrupted fonts in PDFs) on its stderr (and you'd be able to see those in~/.xsession-errors
if it was GUI-launched because that's there the stderr of GUI-launched programs is usually directed to) but in the case that it receives signals like SIGTERM and SIGHUP, most likely it just dies without emitting any output. – Celada Aug 05 '14 at 01:09evince
from the terminal. And then in another, Ips -e
, find its PID, and then dokill -11 [PID]
It will print out "Segmentation fault (Core dumped)". For other signals, it may print "Received signal..."How can I start a terminal and have it shows signals that are sent to a program that was not started within a terminal but rather a GUI?
– user75027 Aug 05 '14 at 01:29