Forum Discussion
Mahi
Nov 14, 2019Cirrus
Setting $hostname variable
Hello, I want to setup the environment variable referring the hostname of the current device and use it in multiple commands such as tcpdump as follows. tcpdump -nni 0.0 -s0 -w /var/tmp/$hostn...
TimRiker
Nov 15, 2019Cirrocumulus
On bash, $HOSTNAME is already set to the current hostname.
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-Variables
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects