<?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: Running cron with wrong shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009175#M495707</link>
    <description>&lt;P&gt;As long as your script has #! on first line, you don't need to mention the shell in crontab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN&gt;&amp;nbsp;/usr/bin/sh which misses some of libraries,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What libraries are missing?&amp;nbsp; Do you get an error when you invoke /usr/bin/sh?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 17:31:25 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2018-06-18T17:31:25Z</dc:date>
    <item>
      <title>Running cron with wrong shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009146#M495706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have cron job which runs script, the problem is that by default shell is&amp;nbsp;&lt;SPAN&gt;/usr/bin/sh and not the&amp;nbsp;/sbin/sh or usr/local/bin/bash . I've already tried adding different shebang and cronjob as &lt;EM&gt;5, 10 * * * */usr/local/bin/bash /opt/scripts/script.sh.&amp;nbsp;&lt;/EM&gt;At the moment I cannot change /etc/passwd to use other shell for an user. Is there any other way to force run cron with other shell?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also receive&amp;nbsp;warning: commands will be executed using /usr/bin/sh message as I edit crontab..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Script perfectly runs on all shells exepct for&amp;nbsp;/usr/bin/sh which misses some of libraries, I guess.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009146#M495706</guid>
      <dc:creator>ŽSA</dc:creator>
      <dc:date>2018-06-18T13:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running cron with wrong shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009175#M495707</link>
      <description>&lt;P&gt;As long as your script has #! on first line, you don't need to mention the shell in crontab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN&gt;&amp;nbsp;/usr/bin/sh which misses some of libraries,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What libraries are missing?&amp;nbsp; Do you get an error when you invoke /usr/bin/sh?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 17:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009175#M495707</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-06-18T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running cron with wrong shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009177#M495708</link>
      <description>&lt;P&gt;I&amp;nbsp;thought so too, but if I try to run script with bash, - it works like charm and it does not work while on cron job or neither with &lt;EM&gt;/usr/bin/sh script.sh. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;#! has no effect at all.&lt;/P&gt;&lt;P&gt;About the libraries, I read somewhere on internet that /usr/bin/sh misses some of the libraries, not sure about that. Tomorrow I'll try to run it and check it for errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 17:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009177#M495708</guid>
      <dc:creator>ŽSA</dc:creator>
      <dc:date>2018-06-18T17:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running cron with wrong shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009763#M495709</link>
      <description>&lt;P&gt;&amp;gt; I read somewhere on internet that /usr/bin/sh misses some of the libraries,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not misses but uses extra shlibs.&amp;nbsp; If they are missing, your installation is broken.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 17:31:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cron-with-wrong-shell/m-p/7009763#M495709</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-06-25T17:31:02Z</dc:date>
    </item>
  </channel>
</rss>

