<?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: Cron Job Issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589059#M374703</link>
    <description>can you post the script /home/eppadm/scripts/epp-sync-j2ee-daily.sh</description>
    <pubDate>Tue, 23 Feb 2010 12:22:23 GMT</pubDate>
    <dc:creator>johnsonpk</dc:creator>
    <dc:date>2010-02-23T12:22:23Z</dc:date>
    <item>
      <title>Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589052#M374696</link>
      <description>Dear,&lt;BR /&gt;&lt;BR /&gt;We have created one script to collect recent files(when this script executed, it will check less than one hour time stamp files) and zip that files and transfer to other server.&lt;BR /&gt;&lt;BR /&gt;When i run the script manually, it is working properly.&lt;BR /&gt;&lt;BR /&gt;I tried with cron job. But it is not taking any files &amp;amp; zip file is created with 0 bytes and transferred to other server.&lt;BR /&gt;&lt;BR /&gt;I am confusing why it is not executing with  correct output only in cron job. &lt;BR /&gt;&lt;BR /&gt;Kindly clarify on this.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Shameem</description>
      <pubDate>Tue, 23 Feb 2010 12:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589052#M374696</guid>
      <dc:creator>shameemsoft</dc:creator>
      <dc:date>2010-02-23T12:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589053#M374697</link>
      <description>&amp;gt;&amp;gt;I am confusing why it is not executing with correct output only in cron job. &amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;check on the "cron logs" to send some light on your problem&lt;BR /&gt;&lt;BR /&gt;/var/adm/cron/log ? and also it could better if you can post "entry of your crontab"  and location of the script which you are calling</description>
      <pubDate>Tue, 23 Feb 2010 12:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589053#M374697</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-23T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589054#M374698</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try to set up in your srcipt the shell you are using and set the PATH variable (copy the value from profile)&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 23 Feb 2010 12:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589054#M374698</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-23T12:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589055#M374699</link>
      <description>Thanks a lot your quick response.&lt;BR /&gt;&lt;BR /&gt;Find cron entry. i changed the time now for testing. &lt;BR /&gt;&lt;BR /&gt;50 14 * * * /home/eppadm/scripts/epp-sync-j2ee-daily.sh&lt;BR /&gt;&lt;BR /&gt;Log file information below.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  root 6826 c Tue Feb 23 14:50:00 WAT 2010&lt;BR /&gt;&amp;gt;  CMD: /home/eppadm/scripts/epp-sync-j2ee-daily.sh&lt;BR /&gt;&amp;gt;  root 6827 c Tue Feb 23 14:50:00 WAT 2010&lt;BR /&gt;&amp;lt;  root 6825 c Tue Feb 23 14:50:00 WAT 2010&lt;BR /&gt;&amp;lt;  root 6826 c Tue Feb 23 14:50:01 WAT 2010&lt;BR /&gt;&amp;lt;  root 6827 c Tue Feb 23 14:51:18 WAT 2010&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh shell information updated in the script. &lt;BR /&gt;&lt;BR /&gt;Which PATH variable need to set?&lt;BR /&gt;&lt;BR /&gt;Kindly check and provide your feedback.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Shameem</description>
      <pubDate>Tue, 23 Feb 2010 12:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589055#M374699</guid>
      <dc:creator>shameemsoft</dc:creator>
      <dc:date>2010-02-23T12:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589056#M374700</link>
      <description>Hi Shameem,&lt;BR /&gt;&lt;BR /&gt;Looks like environment and PATH for the commands in your script is not defined.&lt;BR /&gt;&lt;BR /&gt;Define it PATH variable in your script or replace each command with its absolute path.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Johnson</description>
      <pubDate>Tue, 23 Feb 2010 12:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589056#M374700</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2010-02-23T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589057#M374701</link>
      <description>Edit your script &lt;BR /&gt;&lt;BR /&gt;/home/eppadm/scripts/epp-sync-j2ee-daily.sh&lt;BR /&gt;&lt;BR /&gt;And define the PATH in there (get it from profile)&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 23 Feb 2010 12:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589057#M374701</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-23T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589058#M374702</link>
      <description>As johnson said check the cronlogs whether is script is executing or not.&lt;BR /&gt;&lt;BR /&gt;Also check for the absolute path of the script in your crontab.&lt;BR /&gt;&lt;BR /&gt;Check for the permission of the script/file &amp;amp; the directory structure.should have execute permission for the script file for the owner of the sript/file.&lt;BR /&gt;&lt;BR /&gt;Rgds.,&lt;BR /&gt;Sachin Kumbla.</description>
      <pubDate>Tue, 23 Feb 2010 12:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589058#M374702</guid>
      <dc:creator>Sachin Kumbla</dc:creator>
      <dc:date>2010-02-23T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589059#M374703</link>
      <description>can you post the script /home/eppadm/scripts/epp-sync-j2ee-daily.sh</description>
      <pubDate>Tue, 23 Feb 2010 12:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589059#M374703</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2010-02-23T12:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589060#M374704</link>
      <description>#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:.....&lt;BR /&gt;&lt;BR /&gt;Copy the value from your user's profile.&lt;BR /&gt;&lt;BR /&gt;Horia</description>
      <pubDate>Tue, 23 Feb 2010 12:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589060#M374704</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-23T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589061#M374705</link>
      <description>Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;I updated PATH. i have taken path details from /etc/profile.&lt;BR /&gt;&lt;BR /&gt;Still it is not working... Again i am telling this script is working properly when i execute manually :).&lt;BR /&gt;&lt;BR /&gt;I have attached script in the attachment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:58:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589061#M374705</guid>
      <dc:creator>shameemsoft</dc:creator>
      <dc:date>2010-02-23T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589062#M374706</link>
      <description>PATH=/usr/sbin:$PATH:/sbin:/home/root:/usr/local/bin:$JAVA_HOME&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Not good enough...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As the user you are running "manually" the script and it is working, do&lt;BR /&gt;&lt;BR /&gt;set&lt;BR /&gt;&lt;BR /&gt;and copy PATH line&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then open your script and past the line there (delete this line)&lt;BR /&gt;&lt;BR /&gt;I believe the only problem is with gzip but just to be sure, add the correct PATH variable as above.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 23 Feb 2010 13:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589062#M374706</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-23T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589063#M374707</link>
      <description>"ipaddress " &lt;BR /&gt;&lt;BR /&gt;I assume it is an IP address, not some variable?&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Tue, 23 Feb 2010 13:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589063#M374707</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-23T13:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589064#M374708</link>
      <description>you can set the path by using set command as follows&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set pathname&lt;BR /&gt;&lt;BR /&gt;and than try &lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Tue, 23 Feb 2010 13:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589064#M374708</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-02-23T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589065#M374709</link>
      <description>also it would be better if you can / direct the output for your script by crontab to "some logs" like &amp;gt;&amp;gt; /tmp/daily.log -&amp;gt; it can capture of the execution and we narrow down the problem&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;IP address&amp;lt;&amp;lt; as per IP attachment have exculded, becoz its confidential ..?</description>
      <pubDate>Tue, 23 Feb 2010 13:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589065#M374709</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-23T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589066#M374710</link>
      <description>Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;I removed IP &amp;amp; server name from the script and uploaded to ITRC :)&lt;BR /&gt;&lt;BR /&gt;If I set a path using set command, will it update the existing path configuration? It is production host. Thats why i would like to reconfirm with you guys.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Shameem&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Feb 2010 04:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589066#M374710</guid>
      <dc:creator>shameemsoft</dc:creator>
      <dc:date>2010-02-24T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589067#M374711</link>
      <description>if you run manually the script run as per your earlier post,&lt;BR /&gt;&lt;BR /&gt;can we redirect to a log file to capture the output of your script while execution in crontab.&lt;BR /&gt;so that we will all know what causing the actual problem. Guess we are all shooting in the dark room.</description>
      <pubDate>Wed, 24 Feb 2010 05:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589067#M374711</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-24T05:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589068#M374712</link>
      <description>Thanks Johnson.&lt;BR /&gt;&lt;BR /&gt;I tried with that option...find the log output&lt;BR /&gt;&lt;BR /&gt;#cat /tmp/log.out&lt;BR /&gt; Waiting until tar is complete ...&lt;BR /&gt; Tar completed successfully&lt;BR /&gt; Waiting until gzip is complete ...&lt;BR /&gt; Gzip completed successfully&lt;BR /&gt;&lt;BR /&gt;tar &amp;amp; zip is completed with 0 bytes.. if i run manually at same time, some files exists in zip.&lt;BR /&gt;&lt;BR /&gt;Kindly clarify on this&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Shameem</description>
      <pubDate>Wed, 24 Feb 2010 05:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589068#M374712</guid>
      <dc:creator>shameemsoft</dc:creator>
      <dc:date>2010-02-24T05:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589069#M374713</link>
      <description>Create to different script one for data collection and another for zip and transfer.  And add two different entry in cron with sufficient time between them.</description>
      <pubDate>Wed, 24 Feb 2010 05:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589069#M374713</guid>
      <dc:creator>Yallappa</dc:creator>
      <dc:date>2010-02-24T05:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589070#M374714</link>
      <description>Have you set the PATH variable like this:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;As the user you are running "manually" the script and it is working, do&lt;BR /&gt;&lt;BR /&gt;set&lt;BR /&gt;&lt;BR /&gt;and copy PATH line into your SCRIPT.&lt;BR /&gt;&lt;BR /&gt;Please re-attach the modified script here.&lt;BR /&gt;&lt;BR /&gt;Horia</description>
      <pubDate>Wed, 24 Feb 2010 06:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589070#M374714</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-02-24T06:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Job Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589071#M374715</link>
      <description>&amp;gt;&amp;gt;&amp;gt;#cat /tmp/log.out&lt;BR /&gt;Waiting until tar is complete ...&lt;BR /&gt;Tar completed successfully&lt;BR /&gt;Waiting until gzip is complete ...&lt;BR /&gt;Gzip completed successfully&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;as long as i see from above. time taken "tar" is too short. and between you can "use " sleep command optins&lt;BR /&gt;&lt;BR /&gt;man sleep&lt;BR /&gt;&lt;BR /&gt; "sleep - suspend execution for an interval"&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Feb 2010 06:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job-issue/m-p/4589071#M374715</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-24T06:05:47Z</dc:date>
    </item>
  </channel>
</rss>

