nv-l
[Top] [All Lists]

[nv-l] loadhosts CLI

To: nv-l@lists.us.ibm.com
Subject: [nv-l] loadhosts CLI
From: "Christopher J Petrina" <cjp8@meadwestvaco.com>
Date: Wed, 11 Feb 2004 12:19:16 -0500
Delivery-date: Wed, 11 Feb 2004 17:25:29 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

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
>EOF

this 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>

Archive operated by Skills 1st Ltd

See also: The NetView Web