<?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 Script issue!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161956#M456435</link>
    <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Server--RX 3600&lt;BR /&gt;&lt;BR /&gt;OS -HPUX 11.23&lt;BR /&gt;&lt;BR /&gt;Iam facing issue while executing the script through cron.But If iam manually executing the script its working fine...&lt;BR /&gt;&lt;BR /&gt;Script setails:--it will zip some trace files in source and will move these zip files to destination.&lt;BR /&gt;&lt;BR /&gt;If iam executing this script through cron its giving error "unable to zip, GZIP not found"&lt;BR /&gt;&lt;BR /&gt;but if iam manually do the zip in souce then iam try to run the script using cron its working fine.&lt;BR /&gt;&lt;BR /&gt;Crontab entry.&lt;BR /&gt;&lt;BR /&gt;30 18 * * * /pcard17/trace/movetrace&lt;BR /&gt;&lt;BR /&gt;can anybody help me in this case.&lt;BR /&gt;&lt;BR /&gt;Please find the attached script...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 07 Mar 2009 15:00:17 GMT</pubDate>
    <dc:creator>jeevarajkn</dc:creator>
    <dc:date>2009-03-07T15:00:17Z</dc:date>
    <item>
      <title>Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161956#M456435</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Server--RX 3600&lt;BR /&gt;&lt;BR /&gt;OS -HPUX 11.23&lt;BR /&gt;&lt;BR /&gt;Iam facing issue while executing the script through cron.But If iam manually executing the script its working fine...&lt;BR /&gt;&lt;BR /&gt;Script setails:--it will zip some trace files in source and will move these zip files to destination.&lt;BR /&gt;&lt;BR /&gt;If iam executing this script through cron its giving error "unable to zip, GZIP not found"&lt;BR /&gt;&lt;BR /&gt;but if iam manually do the zip in souce then iam try to run the script using cron its working fine.&lt;BR /&gt;&lt;BR /&gt;Crontab entry.&lt;BR /&gt;&lt;BR /&gt;30 18 * * * /pcard17/trace/movetrace&lt;BR /&gt;&lt;BR /&gt;can anybody help me in this case.&lt;BR /&gt;&lt;BR /&gt;Please find the attached script...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Mar 2009 15:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161956#M456435</guid>
      <dc:creator>jeevarajkn</dc:creator>
      <dc:date>2009-03-07T15:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161957#M456436</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; its giving error "unable to zip, GZIP not found"&lt;BR /&gt;&lt;BR /&gt;Yes, I would expect that.  Cron only provides a minimal environment.  In the case of the PATH,, it consists only of:&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/bin:/usr/sbin:.&lt;BR /&gt;&lt;BR /&gt;You need to use absolute paths for any commands not in the above or define you PATH list in your script.  Any other environmental varaibles that you have defined in your login profile need to be defined too.  The '.profile' sourced during normal logins is not handled for cron tasks.&lt;BR /&gt;&lt;BR /&gt;See the 'crontab' manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 07 Mar 2009 15:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161957#M456436</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-07T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161958#M456437</link>
      <description>Yes Jamous&lt;BR /&gt;&lt;BR /&gt;I have given the absolute path for gzip command its belogs to /usr/contrib/bin but same result.&lt;BR /&gt;&lt;BR /&gt;can u plesae tell me exactly what change wants to make in that script.&lt;BR /&gt;&lt;BR /&gt;thnaks in advance..</description>
      <pubDate>Sat, 07 Mar 2009 16:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161958#M456437</guid>
      <dc:creator>jeevarajkn</dc:creator>
      <dc:date>2009-03-07T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161959#M456438</link>
      <description>Hi Jeeva,&lt;BR /&gt;&lt;BR /&gt;Can you try calling script by creating file,&lt;BR /&gt;&lt;BR /&gt;Example:-&lt;BR /&gt;&lt;BR /&gt;vi movetrace.sh&lt;BR /&gt;/usr/contrib/bin/gzip &lt;FILE_NAME&gt;&lt;BR /&gt;mv /myhome/&lt;FILE_NAME.GZIP&gt;&lt;BR /&gt;/usr/contrib/bin/gunzip /myhome/&lt;FILE_NAME.GZ&gt;&lt;BR /&gt;&lt;BR /&gt;# Crontab -e&lt;BR /&gt;30 18 * * * /pcard17/trace/movetrace.sh&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE_NAME.GZ&gt;&lt;/FILE_NAME.GZIP&gt;&lt;/FILE_NAME&gt;</description>
      <pubDate>Sat, 07 Mar 2009 17:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161959#M456438</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-03-07T17:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161960#M456439</link>
      <description>&amp;gt;I have given the absolute path for gzip command&lt;BR /&gt;&lt;BR /&gt;That should fix it.&lt;BR /&gt;If you have other errors, add "set -x" to the script so you can see where it fails.&lt;BR /&gt;&lt;BR /&gt;You may also change your find -exec to use "+" for performance:&lt;BR /&gt;-exec ls -ltr  {} +&lt;BR /&gt;&lt;BR /&gt;As a stylistic point, instead of passing info to your move function through the variable "a", you may want to pass it explicitly as a parm:&lt;BR /&gt;move $a&lt;BR /&gt;And inside of move, use "file=$1" and then use $file throughout.&lt;BR /&gt;&lt;BR /&gt;Also, why use test instead of the shell builtin "[ ... ]"?&lt;BR /&gt;(And indentation helps.  ;-)</description>
      <pubDate>Sun, 08 Mar 2009 17:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161960#M456439</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-08T17:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script issue!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161961#M456440</link>
      <description>Thanks. Am closing the case.</description>
      <pubDate>Mon, 26 Oct 2009 07:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-issue/m-p/5161961#M456440</guid>
      <dc:creator>jeevarajkn</dc:creator>
      <dc:date>2009-10-26T07:04:42Z</dc:date>
    </item>
  </channel>
</rss>

