<?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 and UTL problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943936#M814925</link>
    <description>Hello to everybody, I'm happy because I arranged my problem this week.&lt;BR /&gt;During two or three weeks I didn't work in my normal work, I was doing others things &lt;BR /&gt;but the last week I try to arrange y problem and I did it.&lt;BR /&gt;The problem it's so stupid like near all in computers, you have to remember that my&lt;BR /&gt;shell call a pl-sql after a pro-cobol and after another pl-sql, in the shell the ouput from&lt;BR /&gt;the pro-cobol generates a file ( pro-cobol &amp;gt; filename ), this file is opened by the second&lt;BR /&gt;pl-sql for writing and it's here where it fails, I change the name of the output in the pro-cobol &lt;BR /&gt;and all works ok, it's strange because it's unnecessary in a normal session&lt;BR /&gt;but in the cron it's necessary.&lt;BR /&gt;&lt;BR /&gt;I hope it helps to any person.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 05 May 2003 11:46:59 GMT</pubDate>
    <dc:creator>David_335</dc:creator>
    <dc:date>2003-05-05T11:46:59Z</dc:date>
    <item>
      <title>Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943926#M814915</link>
      <description>Hello, thanks and sorry for my english:&lt;BR /&gt;&lt;BR /&gt;I have a very huge problem I try to explain correctly:&lt;BR /&gt;&lt;BR /&gt;I have a shell that calls a pl-sql program, after a pro-cobol program and after another pl-sql program. This shell works correctly and do every thing that I want. The problem is when I put into the cron, the first pl-sql programs works ok, the procobol too and the last pl-sql exists for the exception SYS.UTL_FILE.INVALID_OPERATION. This pl-sql opens one file for reading and four for writing, and when is trying to open the third file exists for the mentioned exception.&lt;BR /&gt;&lt;BR /&gt;I like to be clear about this shell works correctly when I execute in a normal unix sesion and its when I put in the cron when fails.&lt;BR /&gt;&lt;BR /&gt;Do you know if there is any tipe of limit obout files when a pl-sql program runs in the cron, its the only idea that I have.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Fri, 04 Apr 2003 11:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943926#M814915</guid>
      <dc:creator>David_335</dc:creator>
      <dc:date>2003-04-04T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943927#M814916</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;When you run scripts from cron, you don't have the full user profile executed so you don't have all your normal environmental variables set.  Probably the last pl-sql program needs something in one of your variables that gets set in the .profile, such as the PATH, or maybe another variable that sets a path for the third file to be opened?  &lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Apr 2003 11:52:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943927#M814916</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-04T11:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943928#M814917</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;I have no idea if this is related or not, but the usual limitation with cron that trips people up is cron's minimal environment setup.  There's no PATH to speak of, probably very few of you DB environment variables, etc.  The thing to do with cron is always use full path names for commands and make sure that whatever environment variables you need are being set in the script.  I'm wondering if maybe you're missing one of your DB env vars&lt;BR /&gt;when the second sql program runs.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 04 Apr 2003 11:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943928#M814917</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-04T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943929#M814918</link>
      <description>Hi David,&lt;BR /&gt;the last pl-sql is perhaps depending on an environment variable not set when executed from cron. Do you execute it as the same user from cron? Try comparing the two environments by inserting these two lines in your script:&lt;BR /&gt;env  | sort &amp;gt;/tmp/cron.env&lt;BR /&gt;exit&lt;BR /&gt;and execute it from cron.&lt;BR /&gt;Then, as the user where it works:&lt;BR /&gt;# env  | sort &amp;gt;/tmp/user.env&lt;BR /&gt;And look for the difference:&lt;BR /&gt;# diff /tmp/user.env /tmp/cron.env &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Apr 2003 12:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943929#M814918</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-04-04T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943930#M814919</link>
      <description>Hello, everybody says me that problably i have lost the environment but I make an "env" in a normal session and one in the cron and the results are the same and its a little extrange that two of the files were opened but the third exits for the exception, I'm trying to flush the buffer of the files but I think it isn't the matter, I'm becoming mad, I need a solution, ahhhhhh</description>
      <pubDate>Fri, 04 Apr 2003 12:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943930#M814919</guid>
      <dc:creator>David_335</dc:creator>
      <dc:date>2003-04-04T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943931#M814920</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;difficult to understand your problem. Can you please post your code from the problem script and cron?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Fri, 04 Apr 2003 12:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943931#M814920</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-04T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943932#M814921</link>
      <description>Having the same environment in cron as you do in a normal login is not normal at all. If you look at the man page for cron you'll see a VERY small PATH and minimal environment variables setup. Perhaps your job uses su - &lt;USER_NAME&gt;? If so, then there will be a batch job login, but this is not quite the same as an interactive login because there is no controlling terminal and some of the profile code will fail.&lt;BR /&gt;&lt;BR /&gt;All failures in cron (versus an interactive login) are due to missing components in the working environment and lack of a controlling terminal. Add to the test for env a test for ulimit (ulimit -a). This assumes you are using the standard POSIX shell for your scripting. You'll have a LOT of problems trying to make csh (or other non-standard shell) work in a cron environment. Note that *ALL* cron shell scripts must have the courtesy loader directive (ie, #!/usr/bin/sh) as line numer 1. Actually, all shell scripts should have this line but cron is crucially dependent on being told which shell to use.&lt;/USER_NAME&gt;</description>
      <pubDate>Fri, 04 Apr 2003 12:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943932#M814921</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-04-04T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943933#M814922</link>
      <description>I'm thinking that we are in the correct way, you are rigth, this shell is execute in the cron with "su" and I don't put "#!/usr/bin/sh" in any of my shells, I'm very worried because I said thath all of my env var are the same but one is diferent and problably affect, the shell in a normal sesion is "SHELL=/usr/bin/ksh" and in the cron is "SHELL=/sbin/sh", sorry.&lt;BR /&gt;&lt;BR /&gt;I haven't acces to the cron and i can't see how they put my shell in the cron, all are problems for every thing.&lt;BR /&gt;&lt;BR /&gt;The ulimit -a doesn't work but ulimit alone yes, it's 4194303 (in a normal session) and in the cron the ulimit -a works and its output is time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         1048576&lt;BR /&gt;stack(kbytes)        131072&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 2048&lt;BR /&gt;&lt;BR /&gt;A lot of thanks</description>
      <pubDate>Fri, 04 Apr 2003 13:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943933#M814922</guid>
      <dc:creator>David_335</dc:creator>
      <dc:date>2003-04-04T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943934#M814923</link>
      <description>Hi again,&lt;BR /&gt;as already stated, you should insert &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;at the beginning of all your scripts.&lt;BR /&gt;I think that the root shell, /sbin/sh, does not support the functionality of some of your variables,  e.g.  NLS_LANG.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Apr 2003 13:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943934#M814923</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-04-04T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943935#M814924</link>
      <description>The reason that ulimit -a does not work in your shell is that your shell is ksh and ksh does not allow for any options. That's one of the many reasons to use the POSIX shell rather than ksh. Your ksh script should run without a problem under /usr/bin/sh. Unfortunately, your application is making the problem very difficult to find because of the useless error message. It should be returning the standard Unix errno value as well as the name of the file.</description>
      <pubDate>Fri, 04 Apr 2003 18:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943935#M814924</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-04-04T18:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943936#M814925</link>
      <description>Hello to everybody, I'm happy because I arranged my problem this week.&lt;BR /&gt;During two or three weeks I didn't work in my normal work, I was doing others things &lt;BR /&gt;but the last week I try to arrange y problem and I did it.&lt;BR /&gt;The problem it's so stupid like near all in computers, you have to remember that my&lt;BR /&gt;shell call a pl-sql after a pro-cobol and after another pl-sql, in the shell the ouput from&lt;BR /&gt;the pro-cobol generates a file ( pro-cobol &amp;gt; filename ), this file is opened by the second&lt;BR /&gt;pl-sql for writing and it's here where it fails, I change the name of the output in the pro-cobol &lt;BR /&gt;and all works ok, it's strange because it's unnecessary in a normal session&lt;BR /&gt;but in the cron it's necessary.&lt;BR /&gt;&lt;BR /&gt;I hope it helps to any person.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 May 2003 11:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943936#M814925</guid>
      <dc:creator>David_335</dc:creator>
      <dc:date>2003-05-05T11:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cron and UTL problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943937#M814926</link>
      <description>First put in the cron patch.  If you are running this out of cron, are you running it as root?&lt;BR /&gt;&lt;BR /&gt;I saw exps have similar problems.  The cron patch fixed it on an 11.0 system...&lt;BR /&gt;&lt;BR /&gt;TJS</description>
      <pubDate>Mon, 05 May 2003 14:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-and-utl-problem/m-p/2943937#M814926</guid>
      <dc:creator>Tim Sanko</dc:creator>
      <dc:date>2003-05-05T14:25:36Z</dc:date>
    </item>
  </channel>
</rss>

