What is my background's path ? (Gnome)

Hello!

I'm in a very strange status. Cause if i run this command from terminal:

gconftool-2 --get /desktop/gnome/background/picture_filename

the answer is correct:

/usr/share/backgrounds/Green_by_Alan_Mattila.jpg

But the same command in a bash script

#!/bin/sh
 hattercime=0
hatterkiolvasasa='gconftool-2 --get /desktop/gnome/background/picture_filename'
$hatterkiolvasasa>$hattercime
cat $hattercime

The answer is that:

/home/kabir/wallpaper/wmark_watermark.jpg

I don't know why but it different and certainly not the right path.

Note: The wmark_watermark.jpg pic name is generated by the imagemagick but i don't know why this is not it's business.

I am not sure if this was a typo on your part or not but your bash script looks all wrong. What does the following script produce?

#!/bin/sh
hatterkiolvasasa=$(gconftool-2 --get /desktop/gnome/background/picture_filename)
echo $hatterkiolvasasa

thank you i will test this version.
It is do that:
hattercime=0 /create a variable with 0 value.
hatterkiolvasasa='gconftool-2 --get /desktop/gnome/background/picture_filename' / Value of the hatterkiolvasasa variable$hatterkiolvasasa>$hattercime / run the haterkiolvasasa and the output go to the hattercime.cat $hattercime / write the value of hattercime to terminal.

I was read in a book this version but i don't see ever something like yours (I'm a beginner in the Linux so be a little patience)

I want to create a script what will do the following:
It is read a textfile and write it's contents to the wallpaper.
So the files contects and the wallpaper will be a third picture what will be the new wallpaper.