[R] Bash script that uses an R command

2009-03-02 Thread stephen sefick
I have wriiten (with the help of the internet) a bash scirpt for my debian ppc 5.0 laptop to display battery remaining in a panel on the xfce desktop environment. echo `hal-device | grep battery.remaining_time | awk '{print $3/3600}' `-battery and this nicely spits out 4.95 hours in the panel.

Re: [R] Bash script that uses an R command

2009-03-02 Thread Gabor Grothendieck
Make suitable changes for Linux (this was done in Windows Vista) but you should be able to do without R. In particular the double echo 4.95 | gawk {print int($1) : 60*($1-int($1))} On Mon, Mar 2, 2009 at 9:48 AM, stephen sefick ssef...@gmail.com wrote: I have wriiten (with the help of the

Re: [R] Bash script that uses an R command

2009-03-02 Thread Romain Francois
stephen sefick wrote: I have wriiten (with the help of the internet) a bash scirpt for my debian ppc 5.0 laptop to display battery remaining in a panel on the xfce desktop environment. echo `hal-device | grep battery.remaining_time | awk '{print $3/3600}' `-battery and this nicely spits out

Re: [R] Bash script that uses an R command

2009-03-02 Thread stephen sefick
echo 'hal-device | grep battery.remaining_time | awk '{print$3/3600}' | awk '{print int($1)}:int(60*($1-int($1)))'` here is the final shell script is anyone is interested - this is written and working in debian linux Stephen Sefick On Mon, Mar 2, 2009 at 10:13 AM, Romain Francois

Re: [R] Bash script that uses an R command

2009-03-02 Thread Wacek Kusnierczyk
stephen sefick wrote: echo 'hal-device | grep battery.remaining_time | awk '{print$3/3600}' | awk '{print int($1)}:int(60*($1-int($1)))'` here is the final shell script is anyone is interested - this is written and working in debian linux it can't work -- you have unmatched quotes here.