| To: | nv-l@lists.us.ibm.com | 
|---|---|
| Subject: | Re: [nv-l] loadhosts CLI | 
| From: | Paul <pstroud@bellsouth.net> | 
| Date: | Wed, 11 Feb 2004 12:50:38 -0500 | 
| Delivery-date: | Wed, 11 Feb 2004 17:56:55 +0000 | 
| Envelope-to: | nv-l-archive@lists.skills-1st.co.uk | 
| In-reply-to: | <OF8E18FB07.DC19CD2A-ON85256E37.005ED751-85256E37.005F2607@mead.com> | 
| References: | <OF8E18FB07.DC19CD2A-ON85256E37.005ED751-85256E37.005F2607@mead.com> | 
| Reply-to: | nv-l@lists.us.ibm.com | 
| Sender: | owner-nv-l@lists.us.ibm.com | 
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 | 
Chris, Create a file like this: ip hostname etc then use something like this while read line do loadhosts -m xxx.xxx.xxx.xxx $line done < file_you_created Paul Christopher J Petrina wrote: hello all,attempting to use loadhosts inside a script on UNIX. generally when I want to do a loadhosts it looks something like this.loadhosts -m subnet <<EOF >ip hostname >ip hostname >ip hostname >EOFthis works at the command line jsut fine. My issue however is how can I put all that onto one line so that I can put it inside a script? if you look atl the line it has line feed (^J) characters in it but adding them in the script does not seem to work. any suggestions?Thanks Chris Petrina  | 
| <Prev in Thread] | Current Thread | [Next in Thread> | 
|---|---|---|
  | ||
| Previous by Date: | [nv-l] loadhosts CLI, Christopher J Petrina | 
|---|---|
| Next by Date: | Re: [nv-l] loadhosts CLI, Christopher J Petrina | 
| Previous by Thread: | [nv-l] loadhosts CLI, Christopher J Petrina | 
| Next by Thread: | Re: [nv-l] loadhosts CLI, Christopher J Petrina | 
| Indexes: | [Date] [Thread] [Top] [All Lists] | 
Archive operated by Skills 1st Ltd
See also: The NetView Web