<?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: one script to be executed in cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4818439#M392875</link>
    <description>&lt;P&gt;hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;u were spot on ..thankss...very much...&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2011 09:25:50 GMT</pubDate>
    <dc:creator>zxcv</dc:creator>
    <dc:date>2011-07-08T09:25:50Z</dc:date>
    <item>
      <title>one script to be executed in cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817261#M392850</link>
      <description>&lt;P&gt;hi guys ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to execute a common script&amp;nbsp; which&amp;nbsp; should be executed by 2 diff users in cron ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;user1&amp;nbsp; to&amp;nbsp;execute script at&amp;nbsp; day time 06-22&lt;/P&gt;&lt;P&gt;user2 to excute same script at&amp;nbsp; 22-06&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problm&amp;nbsp;we call .profile in that script....so hw should i call the same..for 2 users.....???&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817261#M392850</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2011-07-07T13:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: one script to be executed in cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817285#M392851</link>
      <description>&lt;P&gt;Are you running the script for each user's crontab?&amp;nbsp;&amp;nbsp; I am assuming the issue is that each users profile is different.&amp;nbsp;&amp;nbsp; Why not just make this a variable and provide each user's profile as part of the command to execute the script.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817285#M392851</guid>
      <dc:creator>Larry Klasmier</dc:creator>
      <dc:date>2011-07-07T13:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: one script to be executed in cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817367#M392854</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not practice putting environmental variables in my login profiles.&amp;nbsp; Rather, I source (read, using the 'dot-space-filename' notation) any variable settings I need from an independent file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't offer whether these two users will be executed by the 'root' crontab or as crontab's belonging to each user.&amp;nbsp; If 'root' is the one executing, you could simply do :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;su - theuser -c script_to_run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'su -' causes the login profile of the user to be executed before the 'script_to_run'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If each user is going to execute the common script, the encapsulation of the necessary environmental variables into a standalone file which *both* the login profile and the script can source (read) is preferred in my opinion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817367#M392854</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-07-07T14:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: one script to be executed in cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817529#M392861</link>
      <description>&lt;P&gt;&amp;gt;the problem we call .profile in that script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want two different .profile files, you can use: ~/.profile&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 15:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4817529#M392861</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-07T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: one script to be executed in cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4818439#M392875</link>
      <description>&lt;P&gt;hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;u were spot on ..thankss...very much...&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2011 09:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-script-to-be-executed-in-cron/m-p/4818439#M392875</guid>
      <dc:creator>zxcv</dc:creator>
      <dc:date>2011-07-08T09:25:50Z</dc:date>
    </item>
  </channel>
</rss>

