I ran make in the terminal for Kismet on my Pi and it's been outputting to the terminal every 10 to 15 seconds, regardless of it is being run in the background or not.
I tried using CTRL+Z and running bg command. Although the jobs command lists it as Running and lists the command as make & to indicate that it's in the background, the output is still coming to the terminal.
I also paused it again and then ran bg; %+ >1 /dev/null to try to send the STDOUT to /dev/null, but it is still outputting to the screen.
Is there a way to make a job run in the background and only get STDERR messages to the terminal?
Here is the output:
First Attempt:
[1]+  Stopped                 make
root@stormpi:/usr/local/kismet# jobs
[1]+  Stopped                 make
root@stormpi:/usr/local/kismet# bg
[1]+ make &
root@stormpi:/usr/local/kismet# jobs
[1]+  Running                 make &
root@stormpi:/usr/local/kismet# In file included from entrytracker.h:36,
                 from system_monitor.cc:33:
trackedelement.h: In member function ‘void tracker_element_core_vector<T, TT>::set(tracker_element_core_vector<T, TT>::const_iterator, tracker_element_core_vector<T, TT>::const_iterator) [with T = double; tracker_type TT = (tracker_type)22]’:
trackedelement.h:1553:18: note: parameter passing for argument of type ‘tracker_element_core_vector<double, (tracker_type)22>::const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const double*, std::vector<double> >’} changed in GCC 7.1
     virtual void set(const_iterator a, const_iterator b) {
                  ^~~
trackedelement.h:1553:18: note: parameter passing for argument of type ‘tracker_element_core_vector<double, (tracker_type)22>::const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const double*, std::vector<double> >’} changed in GCC 7.1
2nd Attempt:
jobs
[1]+  Running                 make &
root@stormpi:/usr/local/kismet# fg
make
^Z
[1]+  Stopped                 make
root@stormpi:/usr/local/kismet# jobs
[1]+  Stopped                 make
root@stormpi:/usr/local/kismet# bg; %+ >1 /dev/null
[1]+ make &
make
g++ -std=gnu++17 -MM -MP -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-format-truncation -Wno-unused-local-typedefs -Wno-unused-function -Wno-infinite-recursion -g -I. -fPIE -g -O2 -O3 -pthread -DKS_STR_ENCODING_NONE    -MT gpsgpsd_v3.cc.o gpsgpsd_v3.cc -MF gpsgpsd_v3.cc.d
g++ -std=gnu++17 -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-format-truncation -Wno-unused-local-typedefs -Wno-unused-function -Wno-infinite-recursion -g -I. -fPIE -g -O2 -O3 -pthread -DKS_STR_ENCODING_NONE    -c gpsgpsd_v3.cc -o gpsgpsd_v3.cc.o
 
     
    