<?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: Script Query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204501#M463897</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;scp -rp * remotehost:/copy_to_dir (* secure copy *)&lt;BR /&gt;&lt;BR /&gt;find /dir -depth -name "back*" -type f -print | xargs tar -cvf back.tar&lt;BR /&gt;&lt;BR /&gt;tar cf - /source_fs | remsh server "tar xvf -"&lt;BR /&gt;&lt;BR /&gt;a) I use find . -depth -exec tar -cvf /tmp/file.tar {} \;&lt;BR /&gt;&lt;BR /&gt;Then verify the contents with&lt;BR /&gt;tar -tvf /tmp/file.tar&lt;BR /&gt;&lt;BR /&gt;Then ftp the tarball over and extract.&lt;BR /&gt;&lt;BR /&gt;cd /dir/dir&lt;BR /&gt;tar -xvf file.tar&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Oct 2009 15:18:18 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2009-10-15T15:18:18Z</dc:date>
    <item>
      <title>Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204499#M463895</link>
      <description>Hi,&lt;BR /&gt;I want to write a script that will move all files that are older than 3 days within a number of sub directories to another server location. &lt;BR /&gt;&lt;BR /&gt;My thinking was that taking one dir at a time I will gather all files older than 3 days and put them into individual batch files i.e.&lt;BR /&gt;find . -type f -mtime +3 &amp;gt; batch.out&lt;BR /&gt;But how can I get the actual files listed in these batch files to copy onto another dir (even locally)? Anyone any ideas on the best way of doing this?&lt;BR /&gt;Regards,&lt;BR /&gt;D.</description>
      <pubDate>Thu, 15 Oct 2009 15:09:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204499#M463895</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-10-15T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204500#M463896</link>
      <description>for FILE in `find /dir_one /dir_two /dir_three -mtime +d`&lt;BR /&gt;do&lt;BR /&gt;  cp $FILE /arc_dir&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 15 Oct 2009 15:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204500#M463896</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-10-15T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204501#M463897</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;scp -rp * remotehost:/copy_to_dir (* secure copy *)&lt;BR /&gt;&lt;BR /&gt;find /dir -depth -name "back*" -type f -print | xargs tar -cvf back.tar&lt;BR /&gt;&lt;BR /&gt;tar cf - /source_fs | remsh server "tar xvf -"&lt;BR /&gt;&lt;BR /&gt;a) I use find . -depth -exec tar -cvf /tmp/file.tar {} \;&lt;BR /&gt;&lt;BR /&gt;Then verify the contents with&lt;BR /&gt;tar -tvf /tmp/file.tar&lt;BR /&gt;&lt;BR /&gt;Then ftp the tarball over and extract.&lt;BR /&gt;&lt;BR /&gt;cd /dir/dir&lt;BR /&gt;tar -xvf file.tar&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Oct 2009 15:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204501#M463897</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2009-10-15T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204502#M463898</link>
      <description>Hi Duffs:&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 15 Oct 2009 15:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204502#M463898</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-15T15:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204503#M463899</link>
      <description>Thanks for all the suggestions and help on this, I definately now have enough info to take my pick of solutions for this one.&lt;BR /&gt;Regards,&lt;BR /&gt;Duffs</description>
      <pubDate>Fri, 16 Oct 2009 09:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-query/m-p/5204503#M463899</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-10-16T09:11:27Z</dc:date>
    </item>
  </channel>
</rss>

