Try this:

> eval date +$my_var

(Notice the '+').

Regards,
Sander


2008/10/26 leon_moreau <[EMAIL PROTECTED]>

>   Hi,
>
> I am a total newbie in Linux, and I am facing some difficulties.
>
> I tried to write a Bash script that could update the clock of the
> FoxBoard via Internet, when needed.
>
> > wget http://ze.bot.free.fr/time.php
> > my_var= cat 'time.php'
> > echo $my_var
> > eval date $my_var
>
> I tried several syntaxes for the last line, but the "date" command
> never take "my_var" in account. Please, can somebody help me to find
> the solution?
>
> Thank you.
>
> Leon.
> http://ze.bot.free.fr/
>
>  
>

Reply via email to