¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Conky + BPQ


 

I'm trying to find out where conky looks for an apps current status. I want BPQ to show up in conky and display current status just like direwolf and all the other apps. I have already added a line to the conky-large file and it shows BPQ OFF in red just like it would if it weren't running but it is. This is the line:

${alignr}${if_running linbpq}${color green}BPQ ACTIVE${else}${color red}BPQ OFF$endif?

I've also tried if_running bpq and had the same effect

Thanks,
K4SPB


 

¿ªÔÆÌåÓý

I would try 'whereis BPQ¡¯ , no space between where and is.

73
WA2NBL

On Feb 20, 2024, at 1:48?PM, Adam K4SPB <k4spblife@...> wrote:

?I'm trying to find out where conky looks for an apps current status. I want BPQ to show up in conky and display current status just like direwolf and all the other apps. I have already added a line to the conky-large file and it shows BPQ OFF in red just like it would if it weren't running but it is. This is the line:

${alignr}${if_running linbpq}${color green}BPQ ACTIVE${else}${color red}BPQ OFF$endif?

I've also tried if_running bpq and had the same effect

Thanks,
K4SPB


 

I¡¯m not sure whereis will help, but if you are sure BPQ (an app I¡¯m not familiar with) is running you can run:

ps | grep BPQ?

(check case, may need bpq)

and confirm the exact full process name. Use that exact name in the conky if_running command. If the ps command doesn¡¯t find any such process running then conky¡¯s if_running won¡¯t either.?
--
---
Steve Johnson
K0OIL


 

Remember, if you are unsure of the case, ignore it with -i


ps ax | grep -i bpq

Michael WA7SKG



Steve Johnson wrote on 2/21/24 12:39 PM:

I¡¯m not sure whereis will help, but if you are sure BPQ (an app I¡¯m not
familiar with) is running you can run:

ps | grep BPQ

(check case, may need bpq)

and confirm the exact full process name. Use that exact name in the
conky if_running command. If the ps command doesn¡¯t find any such
process running then conky¡¯s if_running won¡¯t either.
--
---
Steve Johnson
K0OIL


 

grep -i Bpq will ignore case
tom
n2tcp


On Wed, Feb 21, 2024, 3:39?PM Steve Johnson <cascadianroot@...> wrote:
I¡¯m not sure whereis will help, but if you are sure BPQ (an app I¡¯m not familiar with) is running you can run:

ps | grep BPQ?

(check case, may need bpq)

and confirm the exact full process name. Use that exact name in the conky if_running command. If the ps command doesn¡¯t find any such process running then conky¡¯s if_running won¡¯t either.?
--
---
Steve Johnson
K0OIL


 

little feedback for each of you on your linux-fu:?

spooby@K4SPB-DRAWS:~ $ sudo systemctl status bpq
¡ñ bpq.service - BPQ
? ? ?Loaded: loaded (/lib/systemd/system/bpq.service; enabled; vendor prese>
? ? ?Active: active (running) since Sat 2024-02-24 23:40:24 CST; 3h 29min a>
? ?Main PID: 14038 (pilinbpq)
? ? ? Tasks: 7 (limit: 4915)
? ? ? ? CPU: 41.786s
? ? ?CGroup: /system.slice/bpq.service
? ? ? ? ? ? ?©¸©¤14038 /home/spooby/linbpq/pilinbpq
?
Feb 25 03:02:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:03:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:04:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:05:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:05:53 K4SPB-DRAWS LINBPQ[14038]: Sending APRS Beacon to APRS-IS
Feb 25 03:05:53 K4SPB-DRAWS LINBPQ[14038]: >K4SPB-0>APBPQ1,TCPIP*:!3509.14N>
Feb 25 03:06:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:07:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:08:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
Feb 25 03:09:24 K4SPB-DRAWS LINBPQ[14038]: BPQ32 Heartbeat Buffers 999 APRS>
spooby@K4SPB-DRAWS:~ $ which bpq
spooby@K4SPB-DRAWS:~ $ which BPQ
spooby@K4SPB-DRAWS:~ $ whereis BPQ
BPQ:
spooby@K4SPB-DRAWS:~ $ whereis bpq
bpq:
spooby@K4SPB-DRAWS:~ $ ps | grep BPQ
spooby@K4SPB-DRAWS:~ $ ps ax | grep -i bpq
14038 ?? ? ? ? Ssl? ? 0:42 /home/spooby/linbpq/pilinbpq
30674 pts/3? ? S+? ? ?0:00 grep --color=auto -i bpq
spooby@K4SPB-DRAWS:~ $ grep -i Bpq
^C
spooby@K4SPB-DRAWS:~ $

take from that what you will

Michael, your suggestion was the only one to provide a result. Steve, your suggestion to add the full string was insightful but unfortunately didn't work.?
Still looking for an answer to the original question:??where does conky look for an apps current status?


 

from the man page?

if_running (process)if PROCESS is running, display everything $if_running and the matching $endif. This uses the ''pidof'' command, so the -x switch is also supported.k


 

Doh! Should have MAN'd up. if_running pilinbpq works excellently. Thanks, Kelly.