<?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: crontab and gzip in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173860#M458575</link>
    <description>thanks it is woking now,... all rewarded with 10 points.</description>
    <pubDate>Thu, 07 May 2009 10:35:19 GMT</pubDate>
    <dc:creator>Ahmed_58</dc:creator>
    <dc:date>2009-05-07T10:35:19Z</dc:date>
    <item>
      <title>crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173853#M458568</link>
      <description>Hi,&lt;BR /&gt;I have a script where scp file and then gzip the file which is working OK, but when run it via root crontab the gzip step not work!? any idea way?&lt;BR /&gt;-----------my script ---------------&lt;BR /&gt;cd /usr3/live/BATELCO/NRT/NRT_src&lt;BR /&gt;ls *NR_BHRBT_* | read LINE&lt;BR /&gt; if [ $? = 0 ]&lt;BR /&gt;[ -f "$LINE" -a -z "$(fuser $LINE 2&amp;gt; /dev/null)" ]&lt;BR /&gt; then&lt;BR /&gt;        mv $LINE /usr3/live/BATELCO/NRT/NRT_backup&lt;BR /&gt;   date | read sdate&lt;BR /&gt;   echo Start copy $LINE $sdate... &amp;gt;&amp;gt;/usr3/live/BATELCO/NRT/NRT_daily_out.log&lt;BR /&gt;        cd /usr3/live/BATELCO/NRT/NRT_backup&lt;BR /&gt;        scp $LINE BHRBTF@bat-abc:/&lt;BR /&gt;   if [ $? -eq 0 ];then&lt;BR /&gt;        gzip $LINE&lt;BR /&gt;        date | read edate&lt;BR /&gt;        echo Finish copy $LINE $sdate &amp;gt;&amp;gt;/usr3/live/BATELCO/NRT/NRT_daily_out.log&lt;BR /&gt;   else&lt;BR /&gt;     cd /usr3/live/BATELCO/NRT/NRT_backup&lt;BR /&gt;     mv $LINE /usr3/live/BATELCO/NRT/NRT_src&lt;BR /&gt;   cd /usr3/live/BATELCO/NRT&lt;BR /&gt;   date | read edate&lt;BR /&gt;   echo Failed copy of $LINE "$edate" connection problem &amp;gt;/usr3/live/BATELCO/NRT/NRT_faild.log&lt;BR /&gt;     cat NRT_faild.log &amp;gt;&amp;gt; NRT_daily_out.log&lt;BR /&gt;      NRT_faild.log&lt;BR /&gt;        fi&lt;BR /&gt; else&lt;BR /&gt;cd /usr3/live/BATELCO/NRT&lt;BR /&gt;date | read edate&lt;BR /&gt;echo Failed $LINE "$edate"... BUSY or NO file &amp;gt;/usr3/live/BATELCO/NRT/NRT_faild.log&lt;BR /&gt;  fi&lt;BR /&gt;</description>
      <pubDate>Thu, 07 May 2009 09:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173853#M458568</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-05-07T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173854#M458569</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the first thought in my mind is to give the full path to gzip.&lt;BR /&gt;or add a PATH var in front of you script.&lt;BR /&gt;eg.&lt;BR /&gt;PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin&lt;BR /&gt;&lt;BR /&gt;could you send us any error log ?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Thu, 07 May 2009 09:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173854#M458569</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2009-05-07T09:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173855#M458570</link>
      <description>Hi Ahmed,&lt;BR /&gt;&lt;BR /&gt;Specify the full path of gzip executable instead of just specifying "gzip $LINE" when you schedule in crontab.&lt;BR /&gt;&lt;BR /&gt;Cron will not inherit any environment varialbles including $PATH</description>
      <pubDate>Thu, 07 May 2009 10:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173855#M458570</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-07T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173856#M458571</link>
      <description>It's always the same reason, because cron has a very "poor" environment, you either need to set the PATH variable or use full pathes to each command.</description>
      <pubDate>Thu, 07 May 2009 10:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173856#M458571</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-05-07T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173857#M458572</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Each of your command which you are using into this script needs full path then only cron can successfully executed.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 07 May 2009 10:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173857#M458572</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-07T10:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173858#M458573</link>
      <description>Hi,&lt;BR /&gt;Thanks for replay....&lt;BR /&gt;I add full patch, but still not worked....&lt;BR /&gt;&lt;BR /&gt;gzip /usr3/live/BATELCO/NRT/NRT_backup/$LINE&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Ahmed</description>
      <pubDate>Thu, 07 May 2009 10:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173858#M458573</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-05-07T10:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173859#M458574</link>
      <description>the full path to **gzip** and all other application, e.g.&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/bin/gzip&lt;BR /&gt;&lt;BR /&gt;instead of just&lt;BR /&gt;&lt;BR /&gt;gzip</description>
      <pubDate>Thu, 07 May 2009 10:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173859#M458574</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-05-07T10:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173860#M458575</link>
      <description>thanks it is woking now,... all rewarded with 10 points.</description>
      <pubDate>Thu, 07 May 2009 10:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173860#M458575</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2009-05-07T10:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: crontab and gzip</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173861#M458576</link>
      <description>"...all rewarded with 10 points..."&lt;BR /&gt;&lt;BR /&gt;You need to click "submit points".</description>
      <pubDate>Thu, 07 May 2009 10:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab-and-gzip/m-p/5173861#M458576</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-05-07T10:38:09Z</dc:date>
    </item>
  </channel>
</rss>

