Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.0 KiB

  1. .\" $RCSfile: gcp.man,v $$Revision: 4.1 $$Date: 92/08/07 17:20:17 $
  2. .TH GCP 1C "13 May 1988"
  3. .SH NAME
  4. gcp \- global file copy
  5. .SH SYNOPSIS
  6. .B gcp
  7. file1 file2
  8. .br
  9. .B gcp
  10. [
  11. .B \-r
  12. ] file ... directory
  13. .SH DESCRIPTION
  14. .I gcp
  15. works just like rcp(1C) except that you may specify a set of hosts to copy files
  16. from or to.
  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
  20. gcp /etc/motd sun:
  21. to copy your /etc/motd file to /etc/motd on all the Suns.
  22. If, on the other hand, you say
  23. gcp /a/foo /b/bar sun:/tmp
  24. then your files will be copied to /tmp on all the Suns.
  25. The general rule is that if you don't specify the destination directory,
  26. files go to the same directory they are in currently.
  27. .P
  28. You may specify the union of two or more sets by using + as follows:
  29. gcp /a/foo /b/bar 750+mc:
  30. which will copy /a/foo to /a/foo on all 750's and Masscomps, and then copy
  31. /b/bar to /b/bar on all 750's and Masscomps.
  32. .P
  33. Commonly used sets should be defined in /etc/ghosts.
  34. For example, you could add a line that says
  35. pep=manny+moe+jack
  36. Another way to do that would be to add the word "pep" after each of the host
  37. entries:
  38. manny sun3 pep
  39. .br
  40. moe sun3 pep
  41. .br
  42. jack sun3 pep
  43. Hosts and sets of host can also be excluded:
  44. foo=sun-sun2
  45. Any host so excluded will never be included, even if a subsequent set on the
  46. line includes it:
  47. foo=abc+def
  48. .br
  49. bar=xyz-abc+foo
  50. comes out to xyz+def.
  51. You can define private host sets by creating .ghosts in your current directory
  52. with entries just like /etc/ghosts.
  53. Also, if there is a file .grem, it defines "rem" to be the remaining hosts
  54. from the last gsh or gcp that didn't succeed everywhere.
  55. .PP
  56. Interrupting with a SIGINT will cause the rcp to the current host to be skipped
  57. and execution resumed with the next host.
  58. To stop completely, send a SIGQUIT.
  59. .SH SEE ALSO
  60. rcp(1C)
  61. .SH BUGS
  62. All the bugs of rcp, since it calls rcp.