I have a conky object, and I want to pass it as parameter of a bash
/ lua
script. How do I do it?
Example:
conky object: ${tcp_portmon 1 61000 lport 0}
i.e the port of the first tcp
connection
script: $ lsof -i :<PORT> | sed -n 2p | awk '{print $1}'
i.e finds the process with that port
What I tried (unsuccessfully):
${exec lsof -i :${tcp_portmon 1 61000 lport 0} | sed -n 2p | awk '{print $1}'}
${exec echo $(lsof -i :${tcp_portmon 1 61000 lport 0} | sed -n 2p | awk '{print $1}')}
${lua conky_proc_port ${tcp_portmon 1 61000 lport 0}}
, whereconky_proc_port
simply outputs the parameter
How do I do it?
PS: for reference, here is the link to the Github issue