Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Error with script for ssh

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 4 Days Ago
sam_bd sam_bd is offline
Registered User
Join Date: May 2011
Last Activity: 13 August 2017, 10:38 PM EDT
Posts: 71
Thanks: 19
Thanked 1 Time in 1 Post
Thank you vbe, MadeInGermany for your responses.
vbe: yes i'll keep that in mind not to use keywords.
MadeInGermany: i did
type ssh

and got
ssh is /usr/bin/ssh

. I ran the script without using the one suggested by you. What i'm seeing is 4 banners of HP UX and then the error message as i've posted above. So looks like it's logging into all the 4 servers mentioned in the

but unable to get command output. However i'll try with your suggested script. But i need to understand it. Linux

---------- Post updated at 08:08 AM ---------- Previous update was at 07:59 AM ----------

Hi MadeInGermany: just tried with your suggested script. I'm getting 4 HP-UX banners (because i've mentioned only 4 servers in the server list) but not seeing the error as mentioned above. Also not seeing the hostname and home directory in the output.
Sponsored Links
Old Unix and Linux 3 Days Ago
MadeInGermany MadeInGermany is offline Forum Staff  
Join Date: May 2012
Last Activity: 17 August 2017, 9:29 PM EDT
Location: Simplicity
Posts: 3,676
Thanks: 298
Thanked 1,229 Times in 1,110 Posts
The output is redirected to $OUTPUTLIST i.e. the file output.txt

cat output.txt

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling shell script within awk script throws error Sudhakar333 Shell Programming and Scripting 10 05-01-2013 12:04 PM
Re: Script Error [syntax error at line] anudeepkumar123 UNIX for Dummies Questions & Answers 3 08-15-2011 03:54 PM
How to grep sql error in shell script and exit the script? allinshell99 Shell Programming and Scripting 2 05-27-2010 09:06 PM
Error opening script file - location error starcraftbud Windows & DOS: Issues & Discussions 9 02-17-2010 04:56 PM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM

All times are GMT -4. The time now is 01:04 AM.