get hostname in script

I'm trying to complete a script and I cannot manage to find how to assign the machine hostname to a variable. The google is not much help either. The script goes something like:
Code:
: ${node='uname -n'}
: ${app_log_file="/var/log/app/${node}.log"}
This does not work and host name is not being stored in the $node variable. How can I do this?
 
Ah, yes back ticks. I don't have any of those, I bathe regularly. My dog may have some though...
It worked - thanks.
 
Back
Top