Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Question concerning gsh - I could not find the information in the man page or on the developers page:

Is there a way to define a default list of hosts to connect to? I do not want to always use the command line parameter to supply a hosts file, nor list the hosts directly.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I don't know gsh, but you can use this, with a list of hosts in the file "myhosts":

gsh $(cat myhosts)

Put this in a shell script or shell alias...

share|improve this answer
    
Thanks, will try that as fall-back. If nothing better/more detailed arises, I'll accept that as answer. –  brandstaetter Oct 9 '09 at 6:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.