1 .\" $RCSfile: gcp.man,v $$Revision: 4.1 $$Date: 92/08/07 17:20:17 $
2 .TH GCP 1C "13 May 1988"
4 gcp \- global file copy
15 works just like rcp(1C) except that you may specify a set of hosts to copy files
17 The host sets are defined in the file /etc/ghosts.
18 (An individual host name can be used as a set containing one member.)
19 You can give a command like
23 to copy your /etc/motd file to /etc/motd on all the Suns.
24 If, on the other hand, you say
26 gcp /a/foo /b/bar sun:/tmp
28 then your files will be copied to /tmp on all the Suns.
29 The general rule is that if you don't specify the destination directory,
30 files go to the same directory they are in currently.
32 You may specify the union of two or more sets by using + as follows:
34 gcp /a/foo /b/bar 750+mc:
36 which will copy /a/foo to /a/foo on all 750's and Masscomps, and then copy
37 /b/bar to /b/bar on all 750's and Masscomps.
39 Commonly used sets should be defined in /etc/ghosts.
40 For example, you could add a line that says
44 Another way to do that would be to add the word "pep" after each of the host
53 Hosts and sets of host can also be excluded:
57 Any host so excluded will never be included, even if a subsequent set on the
66 You can define private host sets by creating .ghosts in your current directory
67 with entries just like /etc/ghosts.
68 Also, if there is a file .grem, it defines "rem" to be the remaining hosts
69 from the last gsh or gcp that didn't succeed everywhere.
71 Interrupting with a SIGINT will cause the rcp to the current host to be skipped
72 and execution resumed with the next host.
73 To stop completely, send a SIGQUIT.
77 All the bugs of rcp, since it calls rcp.