<?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: Scripting Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164583#M902995</link>
    <description>Use find to locate your files (with the -mtime argument).  Write them into a temporary file:&lt;BR /&gt;find DIR -mtime DATE -type f&amp;gt;&amp;gt;/tmp/filenames&lt;BR /&gt;&lt;BR /&gt;Then use tar to copy them into a tarball:&lt;BR /&gt;tar cvf /tmp/tarball 'cat /tmp/filenames'&lt;BR /&gt;&lt;BR /&gt;This tarball can be copied off to tape directly; transferred to another machine with ftp, rcp, or scp; or compressed with gzip and left there as an archive. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Chris</description>
    <pubDate>Wed, 14 Jan 2004 14:49:56 GMT</pubDate>
    <dc:creator>Chris Vail</dc:creator>
    <dc:date>2004-01-14T14:49:56Z</dc:date>
    <item>
      <title>Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164578#M902990</link>
      <description>I am trying to copy files from one server to another.  My problem is that a) My scripting skills leave a lot to be desired. b) I only want to copy files created since yesterday.  I would run the script just after midnight and only pull yesterday's files.  I am having problems pulling out the date info.  Has anyone ever done anything like this?  I know also there used to be a thread of helpful admin tools out there as well and I can't find it either.</description>
      <pubDate>Wed, 14 Jan 2004 13:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164578#M902990</guid>
      <dc:creator>Amiel Tutolo</dc:creator>
      <dc:date>2004-01-14T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164579#M902991</link>
      <description>Use find:&lt;BR /&gt;&lt;BR /&gt;find /directory_name -type f -mtime +1 -exec your_copy_command {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 14 Jan 2004 13:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164579#M902991</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-01-14T13:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164580#M902992</link>
      <description>The famous threads :&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x026250011d20d6118ff40090279cd0f9%2C00.html&amp;amp;admit=716493758+1074105787215+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x026250011d20d6118ff40090279cd0f9%2C00.html&amp;amp;admit=716493758+1074105787215+28353475&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x836cc1c4ceddd61190050090279cd0f9%2C00.html&amp;amp;admit=716493758+1074105884502+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x836cc1c4ceddd61190050090279cd0f9%2C00.html&amp;amp;admit=716493758+1074105884502+28353475&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy the reading !&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 14 Jan 2004 13:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164580#M902992</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-01-14T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164581#M902993</link>
      <description>Use find to locate all the files that have changed:&lt;BR /&gt;&lt;BR /&gt;find /directory_name -type f -mtime +1 &lt;BR /&gt;&lt;BR /&gt;I would save them to a file and then use that file in your copy script:&lt;BR /&gt;&lt;BR /&gt;find /directory_name -type f -mtime +1 &amp;gt; /tmp/changed_files&lt;BR /&gt;&lt;BR /&gt;then reference /tmp/changed_files in your copy script to rcp or ftp them to a new server.&lt;BR /&gt;&lt;BR /&gt;If you had space you could even tar them into a tarball and then just ftp the tarball to the other server.</description>
      <pubDate>Wed, 14 Jan 2004 13:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164581#M902993</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2004-01-14T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164582#M902994</link>
      <description>I left one thing out.  There will be files in the from directory that go back more than yesterday.  My plan was to do a backup and restore of all files and then starting with files say, created on January 14, I would run the script after midnight and only pull files with the January 14th date.  I hope this clarifies my question.  Thanks</description>
      <pubDate>Wed, 14 Jan 2004 14:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164582#M902994</guid>
      <dc:creator>Amiel Tutolo</dc:creator>
      <dc:date>2004-01-14T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164583#M902995</link>
      <description>Use find to locate your files (with the -mtime argument).  Write them into a temporary file:&lt;BR /&gt;find DIR -mtime DATE -type f&amp;gt;&amp;gt;/tmp/filenames&lt;BR /&gt;&lt;BR /&gt;Then use tar to copy them into a tarball:&lt;BR /&gt;tar cvf /tmp/tarball 'cat /tmp/filenames'&lt;BR /&gt;&lt;BR /&gt;This tarball can be copied off to tape directly; transferred to another machine with ftp, rcp, or scp; or compressed with gzip and left there as an archive. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 14 Jan 2004 14:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164583#M902995</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2004-01-14T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164584#M902996</link>
      <description>I am trying to use the tar that Chris shows but I get an error stating - &lt;BR /&gt;&lt;BR /&gt;# tar -cvf utldir.tar 'cat /tmp/utldir.log'&lt;BR /&gt;tar: cannot open cat /tmp/utldir.log&lt;BR /&gt;&lt;BR /&gt;The file /tmp/utldir.log does exsist.  I can do a more on it.&lt;BR /&gt;&lt;BR /&gt;Any suggestions. I have never used tar with a file before.</description>
      <pubDate>Wed, 14 Jan 2004 15:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164584#M902996</guid>
      <dc:creator>Amiel Tutolo</dc:creator>
      <dc:date>2004-01-14T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164585#M902997</link>
      <description>I got it.  Thanks everyone.  It is all in which `tick' you use.  Points have been assigned.</description>
      <pubDate>Wed, 14 Jan 2004 16:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-help/m-p/3164585#M902997</guid>
      <dc:creator>Amiel Tutolo</dc:creator>
      <dc:date>2004-01-14T16:19:31Z</dc:date>
    </item>
  </channel>
</rss>

