Hi all,

the solution is to execute the loop in a separate subshell like this:

,----
| #!/bin/fish
| 
| set -l STATUS ""
| 
| cpubar > ~/.cpubar.log &
| 
| fish -c 'while true;
|   sleep 1
| 
|   # dnamicLog stuff
|   set STATUS (tail -n 1 ~/.xmonad.log)
|   # cpubar
|   set STATUS $STATUS "|" (tail -n 1 ~/.cpubar.log)
|   # notifications
|   set STATUS $STATUS "|" (status-show)
|   # date
|   set STATUS $STATUS "|" (date "+%a %T %F")
| 
|   # now print it...
|   echo $STATUS
| end' | dzen2 -p -ta r
| 
| killall cpubar
`----

Bye,
Tassilo


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to