You are not logged in.
Pages: 1
Just ran into a problem with a bash script running in conky.
Testing for another user that ran into this after a fresh BL RC install.
Changed the remind-cal.sh to use "mawk"
dates=$(remind -s /home/sector11/.reminders | mawk -F"[ /]+" '{if ( $3!=strftime( "%d" ) ) {DAYS=DAYS $3+0"|"}} END{sub("\\|$","",DAYS);printf DAYS}')
cal -h -B1A1 | mawk -v DAYS=${dates} '{and sure enough:
$ conky -c /media/5/Conky/S11_Rem_Cal.conky &
[3] 7353
[2] Exit 1 pkill -xf "conky -c /media/5/Conky/S11_Rem_Cal.conky"
21 May 16 @ 19:06:17 ~
$ Conky: forked to background, pid is 7362
Conky: desktop window (265) is root window
Conky: window type - normal
Conky: drawing to created window (0x2400002)
Conky: drawing to double buffer
mawk: line 2: function strftime never defined
mawk: line 24: function strftime never definedChanged it to use "gawk" - BINGO!:
dates=$(remind -s /home/sector11/.reminders | gawk -F"[ /]+" '{if ( $3!=strftime( "%d" ) ) {DAYS=DAYS $3+0"|"}} END{sub("\\|$","",DAYS);printf DAYS}')
cal -h -B1A1 | gawk -v DAYS=${dates} '{... and killed conky and fired it up again - the calendar comes back - no errors:
21 May 16 @ 19:14:15 ~
$ pkill -xf "conky -c /media/5/Conky/S11_Rem_Cal.conky" &
[1] 9028
Conky: received SIGINT or SIGTERM to terminate. bye!
[1]+ Done pkill -xf "conky -c /media/5/Conky/S11_Rem_Cal.conky"
21 May 16 @ 19:14:21 ~
$ conky -c /media/5/Conky/S11_Rem_Cal.conky &
[1] 9557
21 May 16 @ 19:18:58 ~
$ Conky: forked to background, pid is 9566
Conky: desktop window (265) is root window
Conky: window type - normal
Conky: drawing to created window (0x2400002)
Conky: drawing to double buffer ... try gawk after breakfast. ![]()
Debian 13 Beardog hosted by SoxDog
Still a Conky 1.9er at heart.
Offline
Mawk is the default version of awk in Debian because it's lighter and faster (so 'awk ...' will give you mawk). Most of the time it does the job OK...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky and Mastodon, there's also some GitStuff )
Offline
Key words: most of the time.
'mawk' messed up in a bash script creating a calendar that highlights reminders from the reminder app, but gawk works fine.
So if awk/mawk doesn't work - gawk it. ![]()
Debian 13 Beardog hosted by SoxDog
Still a Conky 1.9er at heart.
Offline
Key words: most of the time.
Indeed!
I remember having to install gawk for something too.
People who don't mind gawk's slight heaviness can edit their Debian alternative for awk to always point to gawk (or just uninstall mawk?).
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky and Mastodon, there's also some GitStuff )
Offline
Also: gawk is a dependency of inxi
Like you I installed gawk for something specific - not the conky thing though, that was a new one for me.
Debian 13 Beardog hosted by SoxDog
Still a Conky 1.9er at heart.
Offline
Pages: 1