[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash scripting q



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/27/06 18:51, Hugo Vanwoerkom wrote:
> Hi,
> 
> On my way to elapsed time in a bash script, I created the do_chrono
> command. It pumps the elapsed time to stdout.
> 
> So if I do:
> 
> a=do_chrono
> 
> and then:
> 
> $a
> 
> I get: 0:3:19.
> 
> Problem: I can't use that $a anywhere, e.g. if I say:
> 
> echo $a
> 
> I would expect to see 0:3:19 again, but I don't, it says
> 
> do_chrono
> 
> 
> How do I use that $a in command parameters, like logger?

how about
  b=`$a`
  echo $b

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFGzHNS9HxQb37XmcRAqCmAKCkkUWs5cpymsUNFJQD66TqPmFhcgCeNsB1
Z1HAzJJ/M9T/rXAxgl0vOYQ=
=YPXa
-----END PGP SIGNATURE-----



Reply to: