<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: rcp missing hidden files. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884317#M935322</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'd never heared about such a problem. Please check with 'ncheck' if there are realy hidden files.&lt;BR /&gt;&lt;BR /&gt;Regards ...&lt;BR /&gt;Armin</description>
    <pubDate>Fri, 17 Jan 2003 10:40:24 GMT</pubDate>
    <dc:creator>Armin Feller</dc:creator>
    <dc:date>2003-01-17T10:40:24Z</dc:date>
    <item>
      <title>rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884316#M935321</link>
      <description>I'm issuing a rcp command to copy files/directories between machines. The problem is the resulting directory is missing any hidden files/directories.&lt;BR /&gt;&lt;BR /&gt;Is there a flag I can set to make sure the hidden files go across.&lt;BR /&gt;&lt;BR /&gt;I'm using rcp -rp hosts:/file /file2</description>
      <pubDate>Fri, 17 Jan 2003 09:54:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884316#M935321</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2003-01-17T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884317#M935322</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'd never heared about such a problem. Please check with 'ncheck' if there are realy hidden files.&lt;BR /&gt;&lt;BR /&gt;Regards ...&lt;BR /&gt;Armin</description>
      <pubDate>Fri, 17 Jan 2003 10:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884317#M935322</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-01-17T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884318#M935323</link>
      <description>Hello Russ,&lt;BR /&gt;&lt;BR /&gt;Can't find an option for rcp to include hidden file, but you can use find in combination with cpio.&lt;BR /&gt;&lt;BR /&gt;# cd /home/user&lt;BR /&gt;# find . | cpio -ov | remsh server " cd /home/user ; cpio -idvum "&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 17 Jan 2003 10:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884318#M935323</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-01-17T10:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884319#M935324</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm not aware of any flags fro rcp for hidden files.  I've just used rcp to copy a users home directory &amp;amp; all of the hidden files have come across OK.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hilary</description>
      <pubDate>Fri, 17 Jan 2003 12:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884319#M935324</guid>
      <dc:creator>BFA6</dc:creator>
      <dc:date>2003-01-17T12:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884320#M935325</link>
      <description>Hi-&lt;BR /&gt;&lt;BR /&gt;When rcp -r is copying a directory (rcp -rp host:/remotedir /localdir), it should always include all files it can read, hidden or otherwise.  If it doesn't then it's broken.&lt;BR /&gt;&lt;BR /&gt;When you use "rcp -rp hosts:/file /file2" (explicitly naming the files), rcp will copy those filenames it is given by the shell (after wildcard expansion).  If that includes hidden files, they should be copied.&lt;BR /&gt;&lt;BR /&gt;Is there a chance you're doing something like "rcp -rp hosts:/* /localdir"?  That would ignore hidden files because the * wildcard won't match them.&lt;BR /&gt;&lt;BR /&gt;-Scott-&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2003 12:41:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884320#M935325</guid>
      <dc:creator>Scott Corzine</dc:creator>
      <dc:date>2003-01-17T12:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884321#M935326</link>
      <description>rcp handles hidden files just fine. The problem is that you are not specifying them in the command line. A hidden file (files that start with .) are 'hidden' from standard filename generation by the shell. If you type echo *, you won't see any . files, so rcp * produces the same result. Like ls, rcp and echo don't know anything about filename expansion--the * is just a character. Turn off the shell's special handling with the \ character and type the echo command as in: echo \* and you'll see just * not filenames.&lt;BR /&gt;&lt;BR /&gt;So to get hidden files, DO NOT TYPE rcp .*!!!!! To see what you will get, always use echo first as in echo .* ...if you are in a subdirectory, you will be very surprised to see directories and files one level up in the listing! That's because .* matches the hidden directory called: .. which is a real directory, and not what you want.&lt;BR /&gt;&lt;BR /&gt;The easiest solution is to use rcp's ability to copy an entire directory with -r as in:&lt;BR /&gt;&lt;BR /&gt;rcp -r /some_directory_path ...&lt;BR /&gt;&lt;BR /&gt;or if you need just the files in a specific directory, use a regular expression that finds the hidden files but not the .. directory as in:&lt;BR /&gt;&lt;BR /&gt;echo * .[!.]*&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;rcp * .[!.]*&lt;BR /&gt;&lt;BR /&gt;The regular expression .[!']* says: match all normal files and directories (*) and then match all files that start with . but not files that have a . in the second character. This will miss files that start with .. but they can be handled with .??* which matches all files starting with . followed by any 2 characters or more.</description>
      <pubDate>Fri, 17 Jan 2003 12:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884321#M935326</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-01-17T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: rcp missing hidden files.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884322#M935327</link>
      <description>If you are copying an entire directory rcp -r should work. As Bill pointed out, if you are copying files instead of directories, rcp * will not pick up dot files. I use .??* whenever I want to include dot files. This will include any dot file that is 3 characters or more (not . or ..). Be careful there can also be dot directories which could choke if you are not using the -r option.&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 17 Jan 2003 16:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-missing-hidden-files/m-p/2884322#M935327</guid>
      <dc:creator>Steve Labar</dc:creator>
      <dc:date>2003-01-17T16:42:36Z</dc:date>
    </item>
  </channel>
</rss>

