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

bash scripting q



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?

Thanks!

H



Reply to: