<?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: how to configure cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755532#M388670</link>
    <description>Hi Jose, Dennis and V&lt;BR /&gt;&lt;BR /&gt;Jose, for global PATH do i need add path in /home/my_user/.profile or in root's directory?&lt;BR /&gt;I have ORACLE_HOME and other path's in /home/my_user/.bash_profile and $echo $ORACLE_HOME returns me&lt;BR /&gt;$/u01/app/oracle/product/10.2.0/db_1   but i log in by root and got error: sh: ORACLE_HOME: Parameter not set.&lt;BR /&gt;&lt;BR /&gt;Yeah Dennis, thanks. Now mv and date work without full path. Last night rename script run correctly.&lt;BR /&gt;&amp;gt;&amp;gt;Yes. And you must export ORACLE_HOME since your ~/.profile isn't executed by cron.&lt;BR /&gt;&lt;BR /&gt;should i add under root or my_user catalog /home/user_name/ ?&lt;BR /&gt;&lt;BR /&gt;V,&lt;BR /&gt;can i add in my script these values?&lt;BR /&gt;&lt;BR /&gt;export NLS_LANG=AMERICAN_CIS.AL32UTF8&lt;BR /&gt;export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1&lt;BR /&gt;$ORACLE_HOME/bin/expdp system/password@SID FULL=y DUMPFILE=my_file%U.dmp DIRECTORY=my_dir FILESIZE=4G LOGFILE=my_file.log JOB_NAME=FULLexp&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;You can also use full path of your command.&lt;BR /&gt;I did this trip and got error. I wrote about it on my previous post.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;rustam</description>
    <pubDate>Thu, 24 Feb 2011 10:25:16 GMT</pubDate>
    <dc:creator>rustam_2</dc:creator>
    <dc:date>2011-02-24T10:25:16Z</dc:date>
    <item>
      <title>how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755499#M388637</link>
      <description>Hi all,&lt;BR /&gt;I need to configure cron task for running several patches by turn.&lt;BR /&gt;I read documentation and now need some practical advices. Planning these steps:&lt;BR /&gt;1. I checked, does this service run or doesnt&lt;BR /&gt;$ps -ef |grep cron&lt;BR /&gt;root 1633  1  0  Oct 29  ?  0:18 /usr/sbin/cron&lt;BR /&gt;my_user 5535 20242 0 11:28:56 console 0:00 grep cron&lt;BR /&gt;so here is ok.&lt;BR /&gt;2. I checked, does my_user exist in cron.allow tab.&lt;BR /&gt;$cd cd /var/adm/cron&lt;BR /&gt;$less cron.allow&lt;BR /&gt;root&lt;BR /&gt;adm&lt;BR /&gt;uucp&lt;BR /&gt;so my_user doesnt exit here, should i add my user? is it ok if i add with vi?&lt;BR /&gt;3. My file rename.sh is in /u02/scripts/ and i manually run this script like this $./rename.sh&lt;BR /&gt;&lt;BR /&gt;So how can i add command in crontab file using crontab -e? should i show my command so: /u02/scripts/./rename.sh? or it's wrong syntax? it is a bit complicated. So help me, please.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Mon, 21 Feb 2011 06:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755499#M388637</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T06:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755500#M388638</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, you must add your user "my_user" with vi editor. if you not be skilled with vi editor I suggest you make first a copy of cron.allow file.&lt;BR /&gt;#cp -p cron.allow cron.allow.bak&lt;BR /&gt;You also add an entry in your cron.allow with this:&lt;BR /&gt;#echo my_user &amp;gt;&amp;gt; cron.allow&lt;BR /&gt;For "crontab -e" command you must indicate de full path and filename, the file must be enough privileges for execution, in your case "/u02/scripts/rename.sh" is fine. The correct syntax of crontab command can be viewed:&lt;BR /&gt;#man crontab&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 21 Feb 2011 08:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755500#M388638</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T08:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755501#M388639</link>
      <description>The most important thing with crontab, you must be sure all commands in your script must have full path due to cron does not use your shell.</description>
      <pubDate>Mon, 21 Feb 2011 08:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755501#M388639</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-02-21T08:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755502#M388640</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Right! which indicates Hakki is important, the cron does not load the definition of environment that normally a user loads when login to the system (/etc/profile, /etc/PATH, homedir user's profile, etc). Other way could be set and export PATH variable as Global enviroment definition, and any others specific variables requested as particular environment definitions (ORACLE_HOME, ORACLE_SID, etc). With these definitions you have search/execute capabilities for commands.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 21 Feb 2011 10:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755502#M388640</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T10:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755503#M388641</link>
      <description>Thanks Jose and Hakki,&lt;BR /&gt;&lt;BR /&gt;I did following actions:&lt;BR /&gt;1.Add to cron.allow file my_user&lt;BR /&gt;#echo my_user &amp;gt;&amp;gt; cron.allow&lt;BR /&gt;2.Opened crontab file with command &lt;BR /&gt;$crontab â  e and add this line&lt;BR /&gt;50 14 * * * /u02/scripts/rename.sh&lt;BR /&gt;For running my script at 14:50 everyday&lt;BR /&gt;3.$crontab â  l shows me &lt;BR /&gt;50 14 * * * /u02/scripts/rename.sh&lt;BR /&gt;&lt;BR /&gt;But my script did not run. I checked log file /var/adm/cron/log and found nothing according my script.&lt;BR /&gt;What is problem? Does not my user have some privileges to /var/spool/cron/crontabs/my_user file? Or as Hakki said my script has problem? If script has problem log file must have error information. I guess cron doesnt know something about my job.&lt;BR /&gt;My script includes this line&lt;BR /&gt;mv my_file.log my_file_$(date +%m%d%Y).log&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;rustam</description>
      <pubDate>Mon, 21 Feb 2011 12:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755503#M388641</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755504#M388642</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you tested your script at the prompt before try with the cron?&lt;BR /&gt;Have your script enough execution privilegues, please post us this command output:&lt;BR /&gt;#ls -l /u02/scripts/rename.sh&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 21 Feb 2011 12:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755504#M388642</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755505#M388643</link>
      <description>Yeah Jose, i tested manually several times. It works perfect and does what i what. All users have privileges:&lt;BR /&gt;$ ls -l /u02/scripts/rename.sh&lt;BR /&gt;-rwxrwxrwx 1 root sys 40 Feb 21 15:34 /u02/scripts/rename.sh&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Feb 2011 13:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755505#M388643</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T13:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755506#M388644</link>
      <description>Could we see the contents of the script?</description>
      <pubDate>Mon, 21 Feb 2011 13:17:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755506#M388644</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755507#M388645</link>
      <description>Jose, yeah, you could.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Could we see the contents of the script?&lt;BR /&gt;&lt;BR /&gt;I gave at 12:40:42 GMT&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;My script includes this line&lt;BR /&gt;&amp;gt;&amp;gt;mv my_file.log my_file_$(date +%m%d%Y).log</description>
      <pubDate>Mon, 21 Feb 2011 15:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755507#M388645</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755508#M388646</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ooops, is too simply!!! :)&lt;BR /&gt;&lt;BR /&gt;Ok, I guess that directory where run this have enough privileges (execution/write).&lt;BR /&gt;&lt;BR /&gt;Well, this looks a search/execution command path issue. As we have indicate you should include the full path for used commands, or set PATH variable to locate them.&lt;BR /&gt;A way to know the full path of a command is:&lt;BR /&gt;#whence date&lt;BR /&gt;A full path assigned in Global PATH variable will be reported.&lt;BR /&gt;Then replace:&lt;BR /&gt;date +%m%d%Y&lt;BR /&gt;By:&lt;BR /&gt;/fullpath/date +%m%d%Y&lt;BR /&gt;&lt;BR /&gt;Please try this...</description>
      <pubDate>Mon, 21 Feb 2011 15:36:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755508#M388646</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T15:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755509#M388647</link>
      <description>Hi Jose,&lt;BR /&gt;&lt;BR /&gt;I changed my script value&lt;BR /&gt;$vi rename.sh&lt;BR /&gt;mv my_file.log my_file_$(/usr/bin/date +%m%d%Y).log&lt;BR /&gt;checked script by running manually and it renamed my file. Then changed running time of cron task&lt;BR /&gt;$crontab -e&lt;BR /&gt;50 22 * * * /u02/script/rename.sh&lt;BR /&gt;it had to run my script at 22:50 but didnt :(&lt;BR /&gt;&lt;BR /&gt;I noticed 1 line messages in log file about rename file:&lt;BR /&gt;&amp;gt;  CMD: /u02/dump/rename.sh&lt;BR /&gt;&lt;BR /&gt;there are some information which generates every 15 minutes during whole day last half year. dont know what is it. Dont you know what is it? Maybe this makes some barer?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; CMD: /opt/sfm/bin/restart_sfm.sh&lt;BR /&gt;&amp;gt; root 12270 c Mon Feb 21 22:05:00 WST 2011&lt;BR /&gt;&amp;gt; CMD: /etc/opt/resmon/lbin/mon_EMSHAProvider_state.sh&lt;BR /&gt;&amp;gt; root 12271 c Mon Feb 21 22:05:00 WST 2011&lt;BR /&gt;&amp;lt; root 12270 c Mon Feb 21 22:05:01 WST 2011&lt;BR /&gt;&amp;lt; root 12271 c Mon Feb 21 22:05:01 WST 2011&lt;BR /&gt;&amp;gt; CMD: /opt/sfm/bin/restart_sfm.sh</description>
      <pubDate>Mon, 21 Feb 2011 18:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755509#M388647</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T18:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755510#M388648</link>
      <description>Hi Jose,&lt;BR /&gt;&lt;BR /&gt;I changed my script value&lt;BR /&gt;$vi rename.sh&lt;BR /&gt;mv my_file.log my_file_$(/usr/bin/date +%m%d%Y).log&lt;BR /&gt;checked script by running manually and it renamed my file. Then changed running time of cron task&lt;BR /&gt;$crontab -e&lt;BR /&gt;50 22 * * * /u02/script/rename.sh&lt;BR /&gt;it had to run my script at 22:50 but didnt :(&lt;BR /&gt;&lt;BR /&gt;I noticed 1 line messages in log file about rename file:&lt;BR /&gt;&amp;gt;  CMD: /u02/dump/rename.sh&lt;BR /&gt;&lt;BR /&gt;there are some information which generates every 15 minutes during whole day last half year. dont know what is it. Dont you know what is it? Maybe this makes some barer?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; CMD: /opt/sfm/bin/restart_sfm.sh&lt;BR /&gt;&amp;gt; root 12270 c Mon Feb 21 22:05:00 WST 2011&lt;BR /&gt;&amp;gt; CMD: /etc/opt/resmon/lbin/mon_EMSHAProvider_state.sh&lt;BR /&gt;&amp;gt; root 12271 c Mon Feb 21 22:05:00 WST 2011&lt;BR /&gt;&amp;lt; root 12270 c Mon Feb 21 22:05:01 WST 2011&lt;BR /&gt;&amp;lt; root 12271 c Mon Feb 21 22:05:01 WST 2011&lt;BR /&gt;&amp;gt; CMD: /opt/sfm/bin/restart_sfm.sh &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;rustam</description>
      <pubDate>Mon, 21 Feb 2011 18:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755510#M388648</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-21T18:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755511#M388649</link>
      <description>&amp;gt;2. Opened crontab file with command&lt;BR /&gt;&lt;BR /&gt;(On Unix systems you edit/view files, not open.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;But my script did not run.&lt;BR /&gt;&lt;BR /&gt;Add "set -x" to your script to trace execution.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If script has problem logfile must have error information.&lt;BR /&gt;&lt;BR /&gt;No, the stdout/stderr gets mailed to that user.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;My script includes this line&lt;BR /&gt;mv my_file.log my_file_$(date +%m%d%Y).log&lt;BR /&gt;&lt;BR /&gt;That should work fine.  You may have problems trying to do this more than once a day.&lt;BR /&gt;&lt;BR /&gt;Also your script should start with:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;&amp;gt;All users have privileges:&lt;BR /&gt;$ ls -l /u02/scripts/rename.sh&lt;BR /&gt;-rwxrwxrwx root sys  /u02/scripts/rename.sh&lt;BR /&gt;&lt;BR /&gt;This is a security hole.  You shouldn't allow write access:&lt;BR /&gt;chmod go-w /u02/scripts/rename.sh&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Do you know what is it?&lt;BR /&gt;/opt/sfm/bin/restart_sfm.sh&lt;BR /&gt;&lt;BR /&gt;These are part of System Fault Management.  Leave it alone.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Jose: As we have indicate you should include the full path for used commands&lt;BR /&gt;&lt;BR /&gt;In this case mv and date are in the the default PATH.</description>
      <pubDate>Mon, 21 Feb 2011 19:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755511#M388649</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-21T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755512#M388650</link>
      <description>Hi Rustam,&lt;BR /&gt;&lt;BR /&gt;Please ensure that you are inside of a "my_user" session, and at the system prompt executes the command with this trace option: sh -x /u02/script/rename.sh&lt;BR /&gt;What happened?&lt;BR /&gt;&lt;BR /&gt;Now try to generate a cumulative trace file at the "crontab -e" session, then replace your current entry by:&lt;BR /&gt;50 22 * * * sh -x /u02/script/rename.sh|tee -a /tmp/rename.log&lt;BR /&gt;After run it please check te content of /tmp/rename.log file.&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Feb 2011 20:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755512#M388650</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T20:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755513#M388651</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Please ensure that actions above indicated always been done from a "my_user" session.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 21 Feb 2011 20:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755513#M388651</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-21T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755514#M388652</link>
      <description>&amp;gt;Jose: Now try to generate a cumulative trace file:&lt;BR /&gt;50 22 * * * sh -x /u02/script/rename.sh | tee -a /tmp/rename.log&lt;BR /&gt;&lt;BR /&gt;No need to use tee.  And you need to capture stderr:&lt;BR /&gt;50 22 * * * sh -x /u02/script/rename.sh &amp;gt;&amp;gt; /tmp/rename.log 2&amp;gt;&amp;amp;1</description>
      <pubDate>Mon, 21 Feb 2011 20:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755514#M388652</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-21T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755515#M388653</link>
      <description>Hi Dennis and Jose,&lt;BR /&gt;&lt;BR /&gt;I add trace in crontab file&lt;BR /&gt;crontab -l&lt;BR /&gt;11 11 * * * sh -x/u02/scripts/rename.sh &amp;gt;&amp;gt; /tmp/rename.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;script has this line:&lt;BR /&gt;mv my_file.log my_file_$(/usr/bin/date +%m%d%Y).log&lt;BR /&gt;&lt;BR /&gt;I got rename.log file in /tmp directory.&lt;BR /&gt;&lt;BR /&gt;The file includes this message:&lt;BR /&gt;-x/u02/scripts/rename.sh: A specified flag is not valid for this command.&lt;BR /&gt;&lt;BR /&gt;So what is wrong? I guess something wrong in my rename.sh.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;rustam</description>
      <pubDate>Tue, 22 Feb 2011 08:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755515#M388653</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-22T08:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755516#M388654</link>
      <description>&amp;gt;mv my_file.log my_file_$(date +%m%d%Y).log&lt;BR /&gt;&lt;BR /&gt;did you try it this way ;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mv my_file.log my_file_$(/usr/bin/date +%m%d%Y).log</description>
      <pubDate>Tue, 22 Feb 2011 09:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755516#M388654</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-02-22T09:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755517#M388655</link>
      <description>Hi Hakki,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;did you try it this way ;&lt;BR /&gt;&amp;gt;&amp;gt;/usr/bin/mv my_file.log my_file_$(/usr/bin/&amp;gt;&amp;gt;date +%m%d%Y).log&lt;BR /&gt;&lt;BR /&gt;I tried and still have message in my /tmp/rename.log file&lt;BR /&gt;&lt;BR /&gt;-x/u02/scripts/rename.sh: A specified flag is not valid for this command.&lt;BR /&gt;&lt;BR /&gt;All syntaxes work correctly manually.</description>
      <pubDate>Tue, 22 Feb 2011 09:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755517#M388655</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2011-02-22T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755518#M388656</link>
      <description>try 1:&lt;BR /&gt;11 11 * * * /usr/bin/sh -x/u02/scripts/rename.sh &amp;gt;&amp;gt; /tmp/rename.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;try 2:&lt;BR /&gt;chmod 755 /u02/scripts/rename.sh&lt;BR /&gt;11 11 * * * /u02/scripts/rename.sh &amp;gt;&amp;gt; /tmp/rename.log 2&amp;gt;&amp;amp;1</description>
      <pubDate>Tue, 22 Feb 2011 09:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-configure-cron/m-p/4755518#M388656</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-02-22T09:31:18Z</dc:date>
    </item>
  </channel>
</rss>

