The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what is wrong with this script? rs1969 UNIX for Dummies Questions & Answers 2 11-15-2007 07:16 AM
What's wrong with this script amitg1980 Shell Programming and Scripting 3 11-12-2007 07:00 PM
wats the problem in this script ????? pingme8705 Shell Programming and Scripting 0 08-05-2005 02:41 AM
what is wrong with this script? circleW Shell Programming and Scripting 2 09-28-2004 09:27 PM
What is wrong with this script? borncrazy Shell Programming and Scripting 5 07-20-2004 11:51 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-05-2005
pingme8705's Avatar
pingme8705 pingme8705 is offline
Registered User
  
 

Join Date: Jul 2005
Location: india
Posts: 3
wats wrong in the script ?

hi !

i have generated a RSA key successfully.

But wen i execute the script the " df -k;hostname" is displayed
only for the first device in the ip.txt.

i have several devices in the ip.txt 1 ip a line . . . i wanna ssh each ip
in the ip.txt n execute "df -k;hostname"


wast the problem in this script ?????

#!/bin/ksh
while read line_by_line
do
echo ${line_by_line}
ssh ${line_by_line} “df –k;hostname”
done < ip.txt
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0