How to append hostname in a script
Hi all,
I am running a script that outputs result.html. How do I append the hostname to the script so that the output will be hostname_result.html Reason for doing this is I want to run this script on multiple serves. Thanks in advance |
What type of script is it? Perl, csh, bash...
|
It's a bash script running on suse linux...Thanks.
|
Hi anjaan:
in your script, try: HOSTNAME=`hostname` OUTPUTFILE=${HOSTNAME}_result.html bye. |
Quote:
It's harmless though, it just slows the script down a little. |
`hostname` seems to be working.
Thanks all |
All times are GMT -5. The time now is 11:16 PM. |