<?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: export .profile to crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329937#M188874</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In begin of script&lt;BR /&gt;&lt;BR /&gt;. .profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The . and space stops it forking and keeps details at this level&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Steve Steel</description>
    <pubDate>Tue, 13 Jul 2004 08:36:55 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2004-07-13T08:36:55Z</dc:date>
    <item>
      <title>export .profile to crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329936#M188873</link>
      <description>Hi, I'm looking for information about how I can export a users .profile to the crontabfile to get the right env. when running a cron job. Man pages says &lt;BR /&gt;"Users who desire to have their .profile executed must explicitly do so in the crontab entry or in a script called by the entry."&lt;BR /&gt;&lt;BR /&gt;But no example or syntax.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;/Mats A</description>
      <pubDate>Tue, 13 Jul 2004 08:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329936#M188873</guid>
      <dc:creator>Mats Andersson_2</dc:creator>
      <dc:date>2004-07-13T08:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: export .profile to crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329937#M188874</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In begin of script&lt;BR /&gt;&lt;BR /&gt;. .profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The . and space stops it forking and keeps details at this level&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Steve Steel</description>
      <pubDate>Tue, 13 Jul 2004 08:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329937#M188874</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-13T08:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: export .profile to crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329938#M188875</link>
      <description>You can either run all jobs in root's crontab, using "su - user -c job" to ensure sourcing of user's profile, or write scripts that source profile and run comands and then put this jobs in user's cron.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jul 2004 08:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329938#M188875</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-07-13T08:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: export .profile to crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329939#M188876</link>
      <description>It is usually better not to do this as users may edit the .profile themselves and fill it full of things that might break cron.  Generally, people create another file that sets all the environment variables and they source that in their crontab with the following syntax&lt;BR /&gt; &lt;BR /&gt;00 10 * * * . /home/myvariables &amp;amp;&amp;amp; runscript&lt;BR /&gt; &lt;BR /&gt;Notice the ".".  This executes the file in the current shell so you don't need to export things though you can do if you want.&lt;BR /&gt; &lt;BR /&gt;If you really want to source the .profile then  change the path "/home/myvariables" to "/home/user/.profile"</description>
      <pubDate>Tue, 13 Jul 2004 08:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329939#M188876</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-07-13T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: export .profile to crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329940#M188877</link>
      <description>Thank's everyboby for quick answers&lt;BR /&gt;&lt;BR /&gt;/Mats A</description>
      <pubDate>Wed, 14 Jul 2004 02:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-profile-to-crontab/m-p/3329940#M188877</guid>
      <dc:creator>Mats Andersson_2</dc:creator>
      <dc:date>2004-07-14T02:31:40Z</dc:date>
    </item>
  </channel>
</rss>

