<?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: Automated file creation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388527#M349864</link>
    <description>ls /&lt;DIR path=""&gt;/*.xmt  2&amp;gt;  /dev/null&lt;BR /&gt;if [ $? -ne 0 ];then&lt;BR /&gt;touch filename.xmt&lt;BR /&gt;fi&lt;/DIR&gt;</description>
    <pubDate>Thu, 26 Mar 2009 12:09:33 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-03-26T12:09:33Z</dc:date>
    <item>
      <title>Automated file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388524#M349861</link>
      <description>Can anyone help with my query?&lt;BR /&gt;&lt;BR /&gt;A host system is dependant on receiving an FTP of a file, but some days my system isn't used and therefore the file isn't created.  I'm told I need to have a blank file ready to FTP if the system isn't used that day.&lt;BR /&gt;&lt;BR /&gt;I need to do a find in a directory for files with .xmt extension and if the file doesn't exist i need to create a blank one.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest a script to use, i'll then add it to the cron to run automatically</description>
      <pubDate>Thu, 26 Mar 2009 11:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388524#M349861</guid>
      <dc:creator>pmcwill</dc:creator>
      <dc:date>2009-03-26T11:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automated file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388525#M349862</link>
      <description>just use touch /filename. If the file already exists it will just have it's modification time updated, if it doesn't exist it will be created</description>
      <pubDate>Thu, 26 Mar 2009 11:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388525#M349862</guid>
      <dc:creator>Richard Hepworth</dc:creator>
      <dc:date>2009-03-26T11:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automated file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388526#M349863</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Why not something as simple as:&lt;BR /&gt;&lt;BR /&gt;# FILE=/var/tmp/somefile;[ -f ${FILE} ] || touch ${FILE}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 26 Mar 2009 11:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388526#M349863</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-26T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automated file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388527#M349864</link>
      <description>ls /&lt;DIR path=""&gt;/*.xmt  2&amp;gt;  /dev/null&lt;BR /&gt;if [ $? -ne 0 ];then&lt;BR /&gt;touch filename.xmt&lt;BR /&gt;fi&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Mar 2009 12:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automated-file-creation/m-p/4388527#M349864</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-26T12:09:33Z</dc:date>
    </item>
  </channel>
</rss>

