<?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 Cronjob's file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992619#M95908</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Cron jobs store crontab's config entry &lt;BR /&gt;temporarily in a file /tmp/xxxxx and do not store the cron scheduled jobs &lt;BR /&gt;in a regular file system.&lt;BR /&gt;&lt;BR /&gt;I have seen some system where cron jobs entries are stored in a text files. &lt;BR /&gt;Eg. /opt/somedir/somefile and then "/opt/somedir/somefile" file which contains the cronjobs to be scheduled are invoked by executing the command "crontab  /opt/somedir/somefile"&lt;BR /&gt;&lt;BR /&gt;Can someone suggest what should be best and safest practice ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
    <pubDate>Wed, 02 May 2007 13:11:09 GMT</pubDate>
    <dc:creator>Shivkumar</dc:creator>
    <dc:date>2007-05-02T13:11:09Z</dc:date>
    <item>
      <title>Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992619#M95908</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Cron jobs store crontab's config entry &lt;BR /&gt;temporarily in a file /tmp/xxxxx and do not store the cron scheduled jobs &lt;BR /&gt;in a regular file system.&lt;BR /&gt;&lt;BR /&gt;I have seen some system where cron jobs entries are stored in a text files. &lt;BR /&gt;Eg. /opt/somedir/somefile and then "/opt/somedir/somefile" file which contains the cronjobs to be scheduled are invoked by executing the command "crontab  /opt/somedir/somefile"&lt;BR /&gt;&lt;BR /&gt;Can someone suggest what should be best and safest practice ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Wed, 02 May 2007 13:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992619#M95908</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2007-05-02T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992620#M95909</link>
      <description>Well, the main directory for that is the /usr/lib/cron, but actually you could have your cron's in another locations and invoke them using the contab command, it is not about safetly or not, it depends of you, and how you want to manage your cron jobs.&lt;BR /&gt;&lt;BR /&gt;look more about crontab at. :&lt;BR /&gt;&lt;A href="http://www.informatik.uni-frankfurt.de/doc/man/hpux/crontab.1.html" target="_blank"&gt;http://www.informatik.uni-frankfurt.de/doc/man/hpux/crontab.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Marc0</description>
      <pubDate>Wed, 02 May 2007 13:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992620#M95909</guid>
      <dc:creator>Marco A.</dc:creator>
      <dc:date>2007-05-02T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992621#M95910</link>
      <description>I keep the cron job in the user's home directory:  for root it's /root/cron.root, for a regular user it's /home/user/cron.user (though I rarely, if ever, allow users access to cron).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 02 May 2007 13:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992621#M95910</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-05-02T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992622#M95911</link>
      <description>ALL cron jobs are stored, in HP-UX, in /var/spool/cron/crontabs and each user that has set up cron jobs, via the crontab command, has a file in that directory.&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by "Cron jobs store crontab's config entry temporarily in a file /tmp/xxxxx and do not store the cron scheduled jobs in a regular file system."  Perhaps you are talking about while you are editing a crontab file?&lt;BR /&gt;&lt;BR /&gt;For information on cron, crontab, and at do:&lt;BR /&gt;&lt;BR /&gt;# man cron&lt;BR /&gt;# man crontab&lt;BR /&gt;# man at</description>
      <pubDate>Wed, 02 May 2007 13:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992622#M95911</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-05-02T13:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992623#M95912</link>
      <description>My preference is to let the system store them as extract them as needed:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; /var/tmp/mycrontab&lt;BR /&gt;vi /var/tmp/mycrontab and make any changes necessary&lt;BR /&gt;crontab &amp;lt; /var/tmp/mrcrontab # to read in the updated crontab file and signal the cron daemon that a change has occurred.&lt;BR /&gt;&lt;BR /&gt;WARNING: DON'T DO THIS:&lt;BR /&gt;crontab&lt;BR /&gt;&lt;BR /&gt;The command is waiting for input and when you hiyt Ctrl-C or Ctrl-D you just created an empty crontab and lost your original.</description>
      <pubDate>Wed, 02 May 2007 13:19:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992623#M95912</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-05-02T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992624#M95913</link>
      <description>Yes Patrick, You are right. I meant while editing a crontab file it stores in /tmp/xxxxx.&lt;BR /&gt;&lt;BR /&gt;Why it does so instead of reading and editing from /var/spool/cron/crontabs ??&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shiv&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 13:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992624#M95913</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2007-05-02T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992625#M95914</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Those look like at job entries for Linux to me.&lt;BR /&gt;&lt;BR /&gt;HP-UX stores cron files in /var/spool/cron&lt;BR /&gt;&lt;BR /&gt;The name of the file is the user name. It looks just like what you'd get by invoking the command &lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;Any other way of storing jobs is not cron and results from either system alteration or some third party software that is not cron.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 02 May 2007 13:40:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992625#M95914</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-02T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cronjob's file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992626#M95915</link>
      <description>HI SHiv:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I meant while editing a crontab file it stores in /tmp/xxxxx.  Why it does so instead of reading and editing from /var/spool/cron/crontabs ??&lt;BR /&gt;&lt;BR /&gt;If you do 'crontab -e' the a temporary file is created automatically for the purposes of the edit session.  The name of this tempoary file is generated by the system by 'mktemp()' and represents a unique string ending in the process id of the 'crontab'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 13:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cronjob-s-file/m-p/3992626#M95915</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-02T13:56:40Z</dc:date>
    </item>
  </channel>
</rss>

