<?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: Comments in Crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713114#M947166</link>
    <description>Yes, for sure.&lt;BR /&gt;</description>
    <pubDate>Mon, 29 Apr 2002 14:34:57 GMT</pubDate>
    <dc:creator>Victor_5</dc:creator>
    <dc:date>2002-04-29T14:34:57Z</dc:date>
    <item>
      <title>Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713108#M947160</link>
      <description>I have some cron jobs that we sometimes need to stop running for a few days.  I can't find any docs on whether using a # will comment out the line or not, so I've been deleting the line altogether and then replacing it when we want the job again.  Does a # in crontab comment out the line like in other unix scripts?</description>
      <pubDate>Mon, 29 Apr 2002 14:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713108#M947160</guid>
      <dc:creator>Kim Doty</dc:creator>
      <dc:date>2002-04-29T14:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713109#M947161</link>
      <description>One word,&lt;BR /&gt;&lt;BR /&gt;YES&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2002 14:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713109#M947161</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-29T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713110#M947162</link>
      <description>Hi Kim&lt;BR /&gt;&lt;BR /&gt;# will comment the command . It will read it as a comment line and not a command line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 29 Apr 2002 14:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713110#M947162</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-29T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713111#M947163</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;HP do not support comments in the crontab file.&lt;BR /&gt;&lt;BR /&gt;make a copy of the file then edit the original to remove the non required entries.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Mon, 29 Apr 2002 14:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713111#M947163</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-29T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713112#M947164</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;and when you want to put the lines back simply copy the backed up file over the crontab file being used.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Mon, 29 Apr 2002 14:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713112#M947164</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-29T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713113#M947165</link>
      <description>Ok, now I'm confused, 2 yeses and a no.  I am running HP-UX 11.0 if that makes a difference.</description>
      <pubDate>Mon, 29 Apr 2002 14:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713113#M947165</guid>
      <dc:creator>Kim Doty</dc:creator>
      <dc:date>2002-04-29T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713114#M947166</link>
      <description>Yes, for sure.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2002 14:34:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713114#M947166</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2002-04-29T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713115#M947167</link>
      <description>Kim,&lt;BR /&gt;&lt;BR /&gt;YES!&lt;BR /&gt;&lt;BR /&gt;I have been doing it for years.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2002 14:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713115#M947167</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-29T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713116#M947168</link>
      <description>Hi Kim,&lt;BR /&gt;&lt;BR /&gt;man crontab says:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;BEGIN quote=""&gt;&amp;gt;&lt;BR /&gt;Blank lines and those whose first non-blank character is # will be ignored.&lt;BR /&gt;&amp;lt;&lt;END quote=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;It works fine to use comments in your crontab.  Blank lines also.&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;/END&gt;&lt;/BEGIN&gt;</description>
      <pubDate>Mon, 29 Apr 2002 14:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713116#M947168</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-04-29T14:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713117#M947169</link>
      <description>Hi Kim&lt;BR /&gt;&lt;BR /&gt;Please donot be confused , all of us run this stuff . and it works , it is a standard ASCII file and if you see a  template which looks like this &lt;BR /&gt;&lt;BR /&gt;#ident "@(#)root 1.14 97/03/31 SMI" /* SVr4.0 1.1.3.1 */&lt;BR /&gt;#&lt;BR /&gt;# The root crontab should be used to perform accounting data collection.&lt;BR /&gt;#&lt;BR /&gt;# The rtc command is run to adjust the real time clock if and when&lt;BR /&gt;# daylight savings time changes.&lt;BR /&gt;#&lt;BR /&gt;10 3 * * 0,4 /etc/cron.d/logchecker&lt;BR /&gt;10 3 * * 0   /usr/lib/newsyslog&lt;BR /&gt;15 3 * * 0 /usr/lib/fs/nfs/nfsfind&lt;BR /&gt;1 2 * * * [ -x /usr/sbin/rtc ] &amp;amp;&amp;amp; /usr/sbin/rtc -c &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;01 0 * * 4 /root/backups/arbdat01_backup.sh&lt;BR /&gt;20 4 * * * . /etc/env.BDDM; /opt/BDDM/bin/traceCleanup &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 #BDDM&lt;BR /&gt;05 3 * * * . /etc/env.BDDM; /opt/BDDM/bin/DMbackup &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 #BDDM&lt;BR /&gt;35 0,12 * * * . /etc/env.BDDM; /opt/BDDM/bin/logchecker &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 #BDDM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;at the start you will see lines which are commented , that doesnot mena that the same are ecuted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 29 Apr 2002 14:44:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713117#M947169</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-29T14:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713118#M947170</link>
      <description>Hi Kim sorry to have confused you &lt;BR /&gt;&lt;BR /&gt;I should have said YES because it does work but I have been led to believe by HP that the supported method to do as you wish is using several crontab files rather than comments to stop jobs running.&lt;BR /&gt;&lt;BR /&gt;so YES it does work and its not supported &lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Apr 2002 14:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713118#M947170</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-04-29T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713119#M947171</link>
      <description>Hi Kim,&lt;BR /&gt;&lt;BR /&gt; One thing to keep in mind is that the crontab file(s) are only read when cron starts up.&lt;BR /&gt;&lt;BR /&gt;So you should edit with the crontab -e command, crontab ~/your_cron_file  OR  edit the file manually and kill -HUP the cron PID. All methods will "force" a reread of the crontab files.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 29 Apr 2002 14:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713119#M947171</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-29T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713120#M947172</link>
      <description>Jeff Schussele,&lt;BR /&gt;&lt;BR /&gt;SIGHUP cron? I have never had to do that in the past. &lt;BR /&gt;&lt;BR /&gt;just crontab -e&lt;BR /&gt;&lt;BR /&gt;Works for me everytime.&lt;BR /&gt;&lt;BR /&gt;-Yates</description>
      <pubDate>Mon, 29 Apr 2002 14:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713120#M947172</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-29T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713121#M947173</link>
      <description>Hi Yates,&lt;BR /&gt;&lt;BR /&gt; If one *manually* edits w/o using crontab -e , for example using vi, then one would have to kill -HUP the cron PID. &lt;BR /&gt;I agree that crontab -e is the easiest....but you also run the risk of saving a corrupt/typo'd file inadvertently. &lt;BR /&gt;The recommended method is to create the file in one's home dir &amp;amp; use the crontab ~/my_cron_file command to let it place it &amp;amp; restart the cron daemon. This also gives one the opportunity to have *several* cron files - precisely what this user is looking for.&lt;BR /&gt;But I also use crontab -e frequently.......&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 29 Apr 2002 15:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713121#M947173</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-29T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713122#M947174</link>
      <description>Jeff Schussele,&lt;BR /&gt;&lt;BR /&gt;You are correct, for the method you stated.&lt;BR /&gt;&lt;BR /&gt;I hope I didn't sound to defensive.&lt;BR /&gt;&lt;BR /&gt;Peace,</description>
      <pubDate>Mon, 29 Apr 2002 15:15:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713122#M947174</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-29T15:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713123#M947175</link>
      <description>Hi Yates,&lt;BR /&gt;&lt;BR /&gt; No...not at all.&lt;BR /&gt;No offense taken, nor proffered&lt;BR /&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 29 Apr 2002 15:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713123#M947175</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-29T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713124#M947176</link>
      <description>Hi Kim,&lt;BR /&gt;Don't know if you are convinced yet, but everytime that we have a holiday I suspend my backups using crontab -e and comment out the backup command with a # sign. I then remove the # sign with crontab -e when I want the backup to be reactivated. &lt;BR /&gt;I have never had a problem.&lt;BR /&gt;RD</description>
      <pubDate>Tue, 30 Apr 2002 11:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713124#M947176</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2002-04-30T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713125#M947177</link>
      <description>&lt;BR /&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cronfile Example&lt;BR /&gt;&lt;BR /&gt;####&lt;BR /&gt;0 8 * * 1,2,4,5 /lnULOGGLOBO.sh 2&amp;gt;&amp;amp;1&lt;BR /&gt;0 10 * * 0,3,6 /lnULOGGLOBO.sh 2&amp;gt;&amp;amp;1&lt;BR /&gt;#15 * * * * /moncpu.sh &amp;gt; /moncpu.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;####&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Apr 2002 18:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713125#M947177</guid>
      <dc:creator>Emanuel Sardenberg</dc:creator>
      <dc:date>2002-04-30T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713126#M947178</link>
      <description>Hi there,&lt;BR /&gt;  Here's a little something an&lt;BR /&gt;admin should kep in mind, esp if you are changing crontabs for users other than root. If you edit the crontab directly, vi /usr/spool/cron/crontabs/&amp;lt;&amp;gt; then you must recycle the cron daemon for it to "see" the modified crontab. Most systems /etc/inittab launch cron with the "respawn" option, so it is OK to kill the cron pid.</description>
      <pubDate>Tue, 30 Apr 2002 20:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713126#M947178</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2002-04-30T20:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comments in Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713127#M947179</link>
      <description>Just to clarify: HP supports the behavior described in the man page, that is, a comment is defined is a blank line or where the first non-blank character is #, just like a shell. Sorry that someone from HP said it wasn't 'supported'. Perhaps they meant 'recommended', but even then, I would disagree.&lt;BR /&gt;&lt;BR /&gt;cron simply doesn't care what you put in your crontab file as comments. As far as managing crontab files, there are as many methids as there are sysadmins. My method is to always keep root's 'official' crontab file in root's $HOME, specifically in the .cronfiles directory. That way, if a newbie sysadmin blows away the crontab entry, it can easily be restored.  You make the changes to the $HOME/.cronfiles/crontab.root file, then simply replace the current crontab entry with:&lt;BR /&gt;&lt;BR /&gt;crontab $HOME/.cronfiles/crontab.root&lt;BR /&gt;&lt;BR /&gt;No restart of cron, no crontab -e, etc. I find that with multiple root admins, this works the best. And the .cronfiles directory keeps the crontab reference a bit hidden.</description>
      <pubDate>Tue, 30 Apr 2002 22:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/comments-in-crontab/m-p/2713127#M947179</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-04-30T22:20:48Z</dc:date>
    </item>
  </channel>
</rss>

