<?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 Environment variables2 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596180#M33399</link>
    <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;I need to pass two parameters: &lt;BR /&gt;a) The files stating with "X_" and &lt;BR /&gt;b) Retained time for deleting the renamed file (or)     Retained time for deleting the non-renamed file.  &lt;BR /&gt;    (ie.,Time based) &lt;BR /&gt;&lt;BR /&gt;Note: That means users will FTP from the remote server to the local server.So once the file is in the local server it will be renamed to "X_&lt;FILENAME&gt;". &lt;BR /&gt;&lt;BR /&gt;so If i pass the paramters like &lt;BR /&gt;variable1= X_ and time=1 (ie 1 hour) &lt;BR /&gt;&lt;BR /&gt;It has to check the two conditions and file has to be deleted.  I mean if i pass these above two parameters it has to satisfy the two conditions....&lt;BR /&gt;&lt;BR /&gt;Is it possible like that to develop a shell script like that.. &lt;BR /&gt;&lt;BR /&gt;I have attached the document which i recieved from FAQ&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Rajkumar&lt;BR /&gt;&lt;/FILENAME&gt;</description>
    <pubDate>Wed, 17 Oct 2001 05:33:10 GMT</pubDate>
    <dc:creator>Rajkumar_3</dc:creator>
    <dc:date>2001-10-17T05:33:10Z</dc:date>
    <item>
      <title>Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596180#M33399</link>
      <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;I need to pass two parameters: &lt;BR /&gt;a) The files stating with "X_" and &lt;BR /&gt;b) Retained time for deleting the renamed file (or)     Retained time for deleting the non-renamed file.  &lt;BR /&gt;    (ie.,Time based) &lt;BR /&gt;&lt;BR /&gt;Note: That means users will FTP from the remote server to the local server.So once the file is in the local server it will be renamed to "X_&lt;FILENAME&gt;". &lt;BR /&gt;&lt;BR /&gt;so If i pass the paramters like &lt;BR /&gt;variable1= X_ and time=1 (ie 1 hour) &lt;BR /&gt;&lt;BR /&gt;It has to check the two conditions and file has to be deleted.  I mean if i pass these above two parameters it has to satisfy the two conditions....&lt;BR /&gt;&lt;BR /&gt;Is it possible like that to develop a shell script like that.. &lt;BR /&gt;&lt;BR /&gt;I have attached the document which i recieved from FAQ&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Rajkumar&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Wed, 17 Oct 2001 05:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596180#M33399</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-17T05:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596181#M33400</link>
      <description>Hai All,&lt;BR /&gt;&lt;BR /&gt;I forgot to attach a document ..Please advise..&lt;BR /&gt;&lt;BR /&gt;Is it possible to read those above mentioned paramters from the CONFIG file or INI file ???&lt;BR /&gt;&lt;BR /&gt;Thanks for the advance inhelp..&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Wed, 17 Oct 2001 08:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596181#M33400</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-17T08:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596182#M33401</link>
      <description>hi,&lt;BR /&gt;just a little note:&lt;BR /&gt;the find command parameters atime, ctime, mtime work with multiples of 24 hours (days) not with single hours!&lt;BR /&gt;So if you want to delete files after one or a few hours one small find statement will not be sufficient :(&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 17 Oct 2001 08:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596182#M33401</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-10-17T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596183#M33402</link>
      <description>Hai All,&lt;BR /&gt;&lt;BR /&gt;I forgot to attach a document..&lt;BR /&gt;&lt;BR /&gt;Is it possible to collect the paramters from the CONFIG file or INI file and delete accordingly.&lt;BR /&gt;&lt;BR /&gt;Please provide me a script..&lt;BR /&gt;&lt;BR /&gt;I have attached a shell script that i recieved from the ROBIN....&lt;BR /&gt;&lt;BR /&gt;Thanks from the advance in help...&lt;BR /&gt;&lt;BR /&gt;Rajkumar</description>
      <pubDate>Wed, 17 Oct 2001 08:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596183#M33402</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-17T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596184#M33403</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply..&lt;BR /&gt;&lt;BR /&gt;Yes you are correct..It works with multiple hours..&lt;BR /&gt;&lt;BR /&gt;Is it possible to read the values (starting letter X or Y and hours) from the CONFIG file or INI file???&lt;BR /&gt;Because it was hardcoded in the config ir ini file..&lt;BR /&gt;Note: user may change the prefix X or Y.. and&lt;BR /&gt;         hours =3 or 5 etc... or If it is not possible in          hours it should be in seconds..&lt;BR /&gt;&lt;BR /&gt;If the script can able to read those values from the config or ini file so it will work...&lt;BR /&gt;&lt;BR /&gt;Can you provide me a script???&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Oct 2001 09:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596184#M33403</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-17T09:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596185#M33404</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, just create a script, say, ~/.config that says:&lt;BR /&gt;&lt;BR /&gt;DAYS=3&lt;BR /&gt;VAR="X_"&lt;BR /&gt;&lt;BR /&gt;In your main script, source this file:&lt;BR /&gt;&lt;BR /&gt;. ~/.config&lt;BR /&gt;&lt;BR /&gt;Then these variables will be set, so you could then say:&lt;BR /&gt;&lt;BR /&gt;find $DIR -name "${VAR}*" -mtime +$DAYS ...&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 17 Oct 2001 11:55:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596185#M33404</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-17T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Environment variables2</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596186#M33405</link>
      <description>Hello Rajkumar,&lt;BR /&gt;&lt;BR /&gt;if you want to get values from a CONFIG file into your script, there are many ways of doing this:&lt;BR /&gt;&lt;BR /&gt;VALUE="$(grep '^PARAMNAME=' /you/config/file | cut -d= -f2-)"&lt;BR /&gt;&lt;BR /&gt;seems to be a very simple and safe one.&lt;BR /&gt;Later in your script just refer to it as "$VALUE"...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Wed, 17 Oct 2001 14:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables2/m-p/2596186#M33405</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-10-17T14:37:15Z</dc:date>
    </item>
  </channel>
</rss>

