-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Issue:
Generating multiple plots with stringed together bash commands (i.e.) [plot 1 generator] & [plot 2 generator] & [plot 3 generator] generates a separate process for each, thus hiding all but the last plot from being able to ctrl+c exited. Even if the data stream runs out or is turned off, and each plot window is closed, these processes remain behind, and the plot windows will reappear after the data stream starts again. The only method for truly closing these processes that I've found is to find the PID and kill it through the terminal.
Expected Behavior
Using the --stream and --exit parameters, I'd expect these background processes, including the feedgnuplot, gnuplot, and window process for each to die.
Background
feedgunplot v1.48
OS: Ubuntu 18.04.03
Windows Manager: Regolith based on i3wm
A minimal example of the code I am using to generate the plots is as follows:
{
adb logcat -c
while true; do
sleep 1;
adb logcat -v raw $logcatTag *:S;
done
} | feedgnuplot --lines --stream $updateTime --exit &
{
adb logcat -c
while true; do
sleep 1;
adb logcat -v raw $logcatTag2 *:S;
done
} | feedgnuplot --lines --stream $updateTime --exit
All the bash variables are standard strings that I set through a CLI.
Is there any standard way of generating multiple plot windows without having to search for their PID and manually kill them every time I use feedgunplot? Would you recommend some other approach? Is there an easy way to access the subplot functionality from gnuplot via a feedgnuplot feedthrough type command? I saw a hanging open issue here. Is there any progress on that? You mentioned some things being possible, but not exactly what the issue creator had in mind. Is there any documentation or examples of doing what is currently possible?