nv-l

[nv-l] loadhosts CLI

2004-02-11 12:25:29
Subject: [nv-l] loadhosts CLI
From: "Christopher J Petrina" <cjp8 AT meadwestvaco DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Wed, 11 Feb 2004 12:19:16 -0500

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>