📄 gsh.man
字号:
.\" $Header: gsh.man,v 4.0 91/03/20 01:10:46 lwall Locked $.TH GSH 8 "13 May 1988".SH NAMEgsh \- global shell.SH SYNOPSIS.B gsh[options].I host[options] .I command.SH DESCRIPTION.I gshworks just like rsh(1C) except that you may specify a set of hosts to executethe command on.The host sets are defined in the file /etc/ghosts.(An individual host name can be used as a set containing one member.)You can give a command like gsh sun /etc/mungmotdto run /etc/mungmotd on all your Suns..PYou may specify the union of two or more sets by using + as follows: gsh 750+mc /etc/mungmotdwhich will run mungmotd on all 750's and Masscomps..PCommonly used sets should be defined in /etc/ghosts.For example, you could add a line that says pep=manny+moe+jackAnother way to do that would be to add the word "pep" after each of the hostentries: manny sun3 pep.br moe sun3 pep.br jack sun3 pepHosts and sets of host can also be excluded: foo=sun-sun2Any host so excluded will never be included, even if a subsequent set on theline includes it: foo=abc+def bar=xyz-abc+foocomes out to xyz+def.You can define private host sets by creating .ghosts in your current directorywith entries just like /etc/ghosts.Also, if there is a file .grem, it defines "rem" to be the remaining hostsfrom the last gsh or gcp that didn't succeed everywhere.Options include all those defined by rsh, as well as.IP "\-d" 8Causes gsh to collect input till end of file, and then distribute that inputto each invokation of rsh..IP "\-h" 8Rather than print out the command followed by the output, merely prepends thehost name to each line of output..IP "\-s" 8Do work silently..PPInterrupting with a SIGINT will cause the rsh to the current host to be skippedand execution resumed with the next host.To stop completely, send a SIGQUIT..SH SEE ALSOrsh(1C).SH BUGSAll the bugs of rsh, since it calls rsh.Also, will not properly return data from the remote execution that containsnull characters.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -