<?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 Connect Direct Compatability in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858490#M70670</link>
    <description>L.S.&lt;BR /&gt;&lt;BR /&gt;Your crontab entry&lt;BR /&gt;&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME} ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;should be like:&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME}; export SVC_HOME; ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;This way SVC_HOME will be exported to the sub processes.&lt;BR /&gt;&lt;BR /&gt;A better way is to write a wrapper around your perl script, that sets all variables.&lt;BR /&gt;Maybe even better is to have 1 file containing all variable settings and sourcing this file from a shell script (. .../filename) or perl script (....).&lt;BR /&gt;&lt;BR /&gt;JP.&lt;BR /&gt;&lt;BR /&gt;Did you read &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Aug 2004 10:08:39 GMT</pubDate>
    <dc:creator>Jeroen Peereboom</dc:creator>
    <dc:date>2004-08-30T10:08:39Z</dc:date>
    <item>
      <title>Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858482#M70662</link>
      <description>I am trying to get the status of all the files uploaded through connect direct using &lt;BR /&gt;a shell script. &lt;BR /&gt;&lt;BR /&gt;the Connect direct utility for the same lies in /opt/cdunix/ndm/bin/ directory.&lt;BR /&gt;&lt;BR /&gt;When i try running the shell script from crontab i get the following error &lt;BR /&gt;"Failed to read configuration file, exiting".&lt;BR /&gt;&lt;BR /&gt;But i am able to run the same from from any other directory.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Aug 2004 07:07:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858482#M70662</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-27T07:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858483#M70663</link>
      <description>Hi,&lt;BR /&gt;I think you have the same problem, like I had.&lt;BR /&gt;When you run your script from command line, you have some enviroment (command env), but when you run from contab, there is not the same enviroment. Expecially you need PATH maybe other variables.&lt;BR /&gt;Try what you need, what you have in your profile, it is not used in environment during running in crontab.&lt;BR /&gt;&lt;BR /&gt;  PF</description>
      <pubDate>Fri, 27 Aug 2004 07:15:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858483#M70663</guid>
      <dc:creator>Josef Forman</dc:creator>
      <dc:date>2004-08-27T07:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858484#M70664</link>
      <description>Yeah.. the path, is not being read properly.&lt;BR /&gt;I have hardcoded the path in the script.&lt;BR /&gt;&lt;BR /&gt;But the problem is crontab works from /bin/ksh directory and connect direct from /opt/cdunix/ndm/bin/ directory.&lt;BR /&gt;&lt;BR /&gt;Is there any way i can run this script from crontab?</description>
      <pubDate>Fri, 27 Aug 2004 08:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858484#M70664</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-27T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858485#M70665</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;first - you can initiate variables by adding line to crontab &lt;BR /&gt;(example... &lt;BR /&gt;for my oracle crontab at the begining I add &lt;BR /&gt;PATH="/u01/app/oracle/product/10.1.0/db_1/bin")&lt;BR /&gt;&lt;BR /&gt;second - you can use in the script at first line !#/bin/ksh &lt;BR /&gt;&lt;BR /&gt;third - it looks like the script cannot find conf. file where it is placed?&lt;BR /&gt;&lt;BR /&gt;  PF</description>
      <pubDate>Fri, 27 Aug 2004 08:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858485#M70665</guid>
      <dc:creator>Josef Forman</dc:creator>
      <dc:date>2004-08-27T08:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858486#M70666</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My crontab entry is this:&lt;BR /&gt;&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME} ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;From within ConDirRep.pl i am calling a shell script which&lt;BR /&gt;gets me the Connect Direct status.&lt;BR /&gt;&lt;BR /&gt;Yes, i have included !#/bin/ksh in the shell script&lt;BR /&gt;and #!/usr/bin/perl in the perl script.&lt;BR /&gt;&lt;BR /&gt;Both the shell, as well as the perl scripts are in /app/sur/scripts directory.&lt;BR /&gt;&lt;BR /&gt;$HOME = /app/sur/&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Surekha&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Aug 2004 08:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858486#M70666</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-27T08:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858487#M70667</link>
      <description>Hi,&lt;BR /&gt;did you solve your problem?&lt;BR /&gt;Sorry, but on the Friday I had to go home.&lt;BR /&gt;&lt;BR /&gt;I think everything is OK, but the config ("Failed to read configuration file, exiting".) is on different place then you run your scripts. You should change your pwd to place, where you have your config file or in your script use absolute path to your config file.&lt;BR /&gt;&lt;BR /&gt; PF</description>
      <pubDate>Mon, 30 Aug 2004 03:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858487#M70667</guid>
      <dc:creator>Josef Forman</dc:creator>
      <dc:date>2004-08-30T03:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858488#M70668</link>
      <description>Can you able to execute the two scripts on command line? Check the permission of those 2 files so that it is having executable permission.&lt;BR /&gt;&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME} ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;If you want to set environment variable then, try it before configuration line as,&lt;BR /&gt;&lt;BR /&gt;SVC_HOME=${HOME}&lt;BR /&gt;45 00 * * * sur ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;where sur is your username.&lt;BR /&gt;&lt;BR /&gt;${HOME} , userinformations are being retrieved from /etc/passwd file. Are you trying from your user.?&lt;BR /&gt;&lt;BR /&gt;If you try it from other users or root then it will try it from their home directory.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu</description>
      <pubDate>Mon, 30 Aug 2004 05:01:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858488#M70668</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-30T05:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858489#M70669</link>
      <description>Yes, i can execute the script on command line.&lt;BR /&gt;Permissions are 755. &lt;BR /&gt;User also has permissions set. &lt;BR /&gt;&lt;BR /&gt;Can you tell me which all directories crontab has access?&lt;BR /&gt;&lt;BR /&gt;Because the directory i am trying to read from is &lt;BR /&gt;/opt/cdunix/ndm</description>
      <pubDate>Mon, 30 Aug 2004 07:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858489#M70669</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-30T07:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858490#M70670</link>
      <description>L.S.&lt;BR /&gt;&lt;BR /&gt;Your crontab entry&lt;BR /&gt;&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME} ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;should be like:&lt;BR /&gt;45 00 * * * SVC_HOME=${HOME}; export SVC_HOME; ${HOME}/scripts/ConDirRep.pl&lt;BR /&gt;&lt;BR /&gt;This way SVC_HOME will be exported to the sub processes.&lt;BR /&gt;&lt;BR /&gt;A better way is to write a wrapper around your perl script, that sets all variables.&lt;BR /&gt;Maybe even better is to have 1 file containing all variable settings and sourcing this file from a shell script (. .../filename) or perl script (....).&lt;BR /&gt;&lt;BR /&gt;JP.&lt;BR /&gt;&lt;BR /&gt;Did you read &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Aug 2004 10:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858490#M70670</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2004-08-30T10:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858491#M70671</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I wrote a wrapper as suggested... and It worked. I set all the required environment parameters out there. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot for you help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Surekha</description>
      <pubDate>Mon, 30 Aug 2004 21:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858491#M70671</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-30T21:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Crontab and Connect Direct Compatability</title>
      <link>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858492#M70672</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I wrote a wrapper as suggested... and It worked. I set all the required environment parameters out there. &lt;BR /&gt;&lt;BR /&gt;Thanks a lot for you help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Surekha</description>
      <pubDate>Mon, 30 Aug 2004 21:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/crontab-and-connect-direct-compatability/m-p/4858492#M70672</guid>
      <dc:creator>surekha_4</dc:creator>
      <dc:date>2004-08-30T21:39:10Z</dc:date>
    </item>
  </channel>
</rss>

