![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change hostname | madmat | Linux | 3 | 09-20-2007 07:23 AM |
| Solaris - unknown hostname - how can I change hostname? | XNOR | UNIX for Dummies Questions & Answers | 1 | 03-29-2007 07:52 PM |
| looking up hostname | dangral | IP Networking | 2 | 10-28-2003 12:56 PM |
| Printing Problems in unix ... ( Bar-cdoe - Ip Printing) | QuickSilver | UNIX for Advanced & Expert Users | 3 | 06-04-2002 07:48 AM |
| Hostname | bache_gowda | UNIX for Dummies Questions & Answers | 1 | 09-22-2001 01:25 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Printing hostname
Hi,
I am using hostname environment variable in my shell script to print the host name but it's printing nothing.Can you please help me on this. Please find the part of the code pasted here: llist= llist=$(ps -ef | grep -v grep | grep -c "$1") echo "Hostname is ${hostname}" |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
U can use the environment variable HOSTNAME or the command hostname <With options such as -a> |
|||
| Google UNIX.COM |