I got poor hope but does anyone know a way to use process substitution inside conky ?
I'm trying to use that:
paste <(netstat -utn | awk '{print $5}' | sed '1,2d' | sed '/127.0.0.1/d' | awk 'sub(/\:[0-9]+/,"")' | uniq) <(netstat -utn | awk '{print $5}' | sed '1,2d' | sed '/127.0.0.1/d' | awk 'sub(/\:[0-9]+/,"")' | uniq | xargs -n 1 geoiplookup 2>/dev/null | sed '/City Edition/d' | sed -r 's/GeoIP [a-zA-Z]+ Edition\: //g' | sed -r 's/, .+//g' | xargs -n 2 -d'\n')
which give me this kind of output:
54.200.235.80 US AS16509 Amazon.com
46.43.9.146 GB AS35425 Bytemark Limited
176.34.131.233 IE AS16509 Amazon.com
91.198.174.192 NL AS14907 Wikimedia Foundation
54.229.110.205 IE AS16509 Amazon.com
(1st column correspond to the first process substitution, 3 last to the 2nd one)
But inside conky:
Error: sh: -c: ligne 0: erreur de syntaxe près du symbole inattendu « ( »
Trad: sh: -c: line 0: syntax error near unexpected symbole « ( »
Tried to recompile conky with bash but:
bash: -c: ligne 0: fin de fichier (EOF) prématurée lors de la recherche du « ) » correspondant
bash: -c: ligne 1: erreur de syntaxe : fin de fichier prématurée