Hi all,

I'm trying to pipe the output of a loop to a program like this.

,----
| #!/bin/fish
| 
| set -l STATUS ""
| 
| cpubar > ~/.cpubar.log &
| 
| 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 -fn fixed -fg '#FFFFFF' -bg '#3F4C6B' -e 
'button3=exec:urxvt.sh;entertitle=uncollapse,unhide;'
| 
| killall dzen2
| killall cpubar
`----

Something like this works with bash, but not with fish. The application
(dzen2 in that case) does not receive anything on stdin...

What am I doing wrong?

Much thanks in advance,
Tassilo
-- 
The glass is neither half-full nor half-empty: it's twice as big as it
needs to be.


-------------------------------------------------------------------------
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