You are not logged in.

#1 2009-10-06 02:42:58

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Conky doesn't display bash-script variables (array)

I've been playing around with Conky and a bash script of mine. Unfortunately Conky displays only static text and not the array-variables in my script.

In my script:

...some code here...
echo "Static text: ${Variable[1]}"

In my conkyrc:

...some code here...
${exec ~/Test/test.sh}

The result is: "Static text: ". When running the script from the command line everything is fine. I've also tried with exec, execi, execp, texeci to no avail. Any ideas?

Edit: I had to be more specific.

Last edited by chilebiker (2009-10-06 03:30:20)


Don't panic!

Offline

#2 2009-10-06 05:05:57

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Conky doesn't display bash-script variables (array)

Try echo -n "Static text: ${Variable[1]}"


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#3 2009-10-06 13:16:13

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Re: Conky doesn't display bash-script variables (array)

@Lich: Doesn't work either!


Don't panic!

Offline

Board footer

Powered by FluxBB