<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621772#M925892</link>
    <description>Hi,&lt;BR /&gt;The best way to do that is login as your user "abc" and do the same way how you have done it for root. Remember you may need to have the proper file permissions for that user as well.&lt;BR /&gt;&lt;BR /&gt;Thats it.&lt;BR /&gt;Cheers !!!&lt;BR /&gt;Mathew&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Nov 2001 03:14:41 GMT</pubDate>
    <dc:creator>Varghese Mathew</dc:creator>
    <dc:date>2001-11-29T03:14:41Z</dc:date>
    <item>
      <title>cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621765#M925885</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have some questions:&lt;BR /&gt;&lt;BR /&gt;1. Who is the best guy to stop/start cron process. root or anyone?&lt;BR /&gt;&lt;BR /&gt;2. the owner of all cron job files must be root? and the right should be 400?&lt;BR /&gt;&lt;BR /&gt;3. When I modified a cron job, what is the&lt;BR /&gt;best way to let it refresh? just do crontab file? sometimes it seems doesn't work.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 29 Nov 2001 02:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621765#M925885</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2001-11-29T02:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621766#M925886</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;generally cron is "owned" by root. That is the cron process:&lt;BR /&gt;&lt;BR /&gt;   root  1406     1  0  Nov  7  ?         0:00 /usr/sbin/cron&lt;BR /&gt;&lt;BR /&gt;This just makes sure that things get run.&lt;BR /&gt;&lt;BR /&gt;To start and stop on an HPUX system the easiest way is:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;&lt;BR /&gt;Leave it running all the time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To refresh cron, you need only edit the crontab.&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;this will take you into a vi editor mode (by default unless your VISUAL variable is set to something else). I'm lazy, so hitting &lt;SHIFT&gt; and &lt;ZZ&gt; quits this.&lt;BR /&gt;&lt;BR /&gt;Generally anyone can use cron.&lt;BR /&gt;&lt;BR /&gt;You may however have two files called cron.allow and cron.deny OR at.allow and at.deny.&lt;BR /&gt;&lt;BR /&gt;These (if imnplemented) can allow and deny specific users from using cron. It's generally a good idea unless you want your users to be putting in huge cron jobs all the time.&lt;BR /&gt;&lt;BR /&gt;man cron should be a start as well.&lt;BR /&gt;&lt;BR /&gt;&lt;/ZZ&gt;&lt;/SHIFT&gt;</description>
      <pubDate>Thu, 29 Nov 2001 02:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621766#M925886</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-29T02:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621767#M925887</link>
      <description>Hello Michael,&lt;BR /&gt;&lt;BR /&gt;Cron normally runs as root, meaning that only root can stop/start the cron daemon.&lt;BR /&gt;&lt;BR /&gt;Normally, you should not mess directly with cron's spool files. If you want to submit a job to cron, use:&lt;BR /&gt;&lt;BR /&gt;crontab -e&lt;BR /&gt;&lt;BR /&gt;This will open an editor window with the current contents of your crontab.&lt;BR /&gt;&lt;BR /&gt;To see what's on your crontab:&lt;BR /&gt;&lt;BR /&gt;crontab -l&lt;BR /&gt;&lt;BR /&gt;Individual users can have individual crontabs. Cron will run each user's cron jobs as that user's uid.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paga&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 02:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621767#M925887</guid>
      <dc:creator>Marco Paganini</dc:creator>
      <dc:date>2001-11-29T02:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621768#M925888</link>
      <description>Thanks for the reply, so you mean I can just&lt;BR /&gt;vi the file and no need to stop/start cron?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 03:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621768#M925888</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2001-11-29T03:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621769#M925889</link>
      <description>No&lt;BR /&gt;&lt;BR /&gt;Don't just vi the file.&lt;BR /&gt;&lt;BR /&gt;Switch to root - or whoever and use crontab -e&lt;BR /&gt;&lt;BR /&gt;This is the correct way update cron.&lt;BR /&gt;&lt;BR /&gt;What happens when you do this is that cron will automagically schedule a re-read of the file if it is changed.&lt;BR /&gt;&lt;BR /&gt;This is how cron will know that new stuff is there.&lt;BR /&gt;&lt;BR /&gt;If you edit the file directly, then cron may get confused.</description>
      <pubDate>Thu, 29 Nov 2001 03:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621769#M925889</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-29T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621770#M925890</link>
      <description>thanks, as you said I login as root, and&lt;BR /&gt;do crontab -e, it will only change the &lt;BR /&gt;root's cron file, if I want to moify&lt;BR /&gt;other users, such as abc, how can I&lt;BR /&gt;do that? when I login as abc, and do&lt;BR /&gt;a crontab -e, it will go into /var/tmp/????&lt;BR /&gt;not the right file, btw abc already have &lt;BR /&gt;a cron file.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 03:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621770#M925890</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2001-11-29T03:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621771#M925891</link>
      <description>Any user who is 'allowed' to use cron can submit/edit his jobs to cron using crontab -e.&lt;BR /&gt;So yes, you can just su to the user's id and do a crontab -e; it will work.&lt;BR /&gt;You can verify by doing a crontab -l after making the changes.</description>
      <pubDate>Thu, 29 Nov 2001 03:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621771#M925891</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-29T03:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621772#M925892</link>
      <description>Hi,&lt;BR /&gt;The best way to do that is login as your user "abc" and do the same way how you have done it for root. Remember you may need to have the proper file permissions for that user as well.&lt;BR /&gt;&lt;BR /&gt;Thats it.&lt;BR /&gt;Cheers !!!&lt;BR /&gt;Mathew&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 03:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621772#M925892</guid>
      <dc:creator>Varghese Mathew</dc:creator>
      <dc:date>2001-11-29T03:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621773#M925893</link>
      <description>you just su to user abc&lt;BR /&gt;&lt;BR /&gt;then do a crontab -e from there&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 03:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621773#M925893</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-29T03:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621774#M925894</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To change a different users crontab &lt;BR /&gt;you need to do this.&lt;BR /&gt;&lt;BR /&gt;# su - abc&lt;BR /&gt;$ crontab -l &amp;gt;/tmp/wrkfile&lt;BR /&gt;$ vi wrkfile&lt;BR /&gt;(make changes and save)&lt;BR /&gt;$ crontab /tmp/wrkfile&lt;BR /&gt;$ exit&lt;BR /&gt;#&lt;BR /&gt;It is not a good idea to directly edit&lt;BR /&gt;the crontab file. It is better to edit&lt;BR /&gt;a copy and re-submit it.&lt;BR /&gt;&lt;BR /&gt;-Michael&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2001 03:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621774#M925894</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-29T03:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621775#M925895</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;As others have said, you should not directly edit files in /var/spool/cron/crontabs.  You can use either "crontab -e" or "crontab -l &amp;gt;file;edit file;crontab file".  Either way, you must "su -" to the account for which you want to modify the crontab.&lt;BR /&gt;&lt;BR /&gt;I suggest you make a backup of the account's crontab file before you change it (but don't make that backup in /var/spool/cron/crontabs).  I like to make a directory specifically for crontab backups so I do:&lt;BR /&gt;cd /var/spool/cron&lt;BR /&gt;mkdir crontabs.bak&lt;BR /&gt;cp -p crontabs/* crontabs.bak&lt;BR /&gt;&lt;BR /&gt;That way I have a backup of all the crontabs.  Of course, non-superuser accounts would have to make their copy somewhere else but I'm assuming you are talking about the ones you (the superuser) change.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 29 Nov 2001 04:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/2621775#M925895</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-29T04:24:24Z</dc:date>
    </item>
  </channel>
</rss>

