<?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 problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651310#M46112</link>
    <description>Hi, Bill.  First off, if you just type in crontab, hitting a crtl-C will exit out.  Not that that helps you now.  If you have a tape backup, I would go grab the old version of /etc/crontab and restore it.  Check it to make sure that it is correct, and use crontab -e to edit.  As to the file changing, you could take a look at all the process' that are being called and make sure that none of these have been changed.  If you only have a few items in the crontab, you could also just delete the old one and re-create it.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
    <pubDate>Wed, 23 Jan 2002 20:16:48 GMT</pubDate>
    <dc:creator>Mark Vollmers</dc:creator>
    <dc:date>2002-01-23T20:16:48Z</dc:date>
    <item>
      <title>cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651308#M46110</link>
      <description>Last night, the rights of many files was changed.  I suspect a bad cron process and I need help tracking it down.&lt;BR /&gt;&lt;BR /&gt;First I did a crontab -l to list the crons.  I did not see anything obvious.&lt;BR /&gt;&lt;BR /&gt;Then I made the mistake of just running 'crontab' by itself.  It came back with a blank line.  I hit &lt;ENTER&gt; twice and then did not know how to get out of it.&lt;BR /&gt;&lt;BR /&gt;I closed the terminal emulator session [IBM's Dynamic Connect] by simply closing the Windows window via &lt;X&gt; in the upper right corner.&lt;BR /&gt;&lt;BR /&gt;Now when I try a crontab -l, I get a message indicating "crontab: crontab can't open your crontab file".&lt;BR /&gt;&lt;BR /&gt;Help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Bill &lt;BR /&gt;&lt;BR /&gt;&lt;/X&gt;&lt;/ENTER&gt;</description>
      <pubDate>Wed, 23 Jan 2002 20:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651308#M46110</guid>
      <dc:creator>Bill Brutzman</dc:creator>
      <dc:date>2002-01-23T20:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651309#M46111</link>
      <description>Hi Bill:&lt;BR /&gt;&lt;BR /&gt;Oops, you created an empty crontab file!&lt;BR /&gt;&lt;BR /&gt;I assume you have a backup, so, restore '/var/spool/cron/crontabs/&lt;USER&gt;' appropriately.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/USER&gt;</description>
      <pubDate>Wed, 23 Jan 2002 20:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651309#M46111</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-23T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651310#M46112</link>
      <description>Hi, Bill.  First off, if you just type in crontab, hitting a crtl-C will exit out.  Not that that helps you now.  If you have a tape backup, I would go grab the old version of /etc/crontab and restore it.  Check it to make sure that it is correct, and use crontab -e to edit.  As to the file changing, you could take a look at all the process' that are being called and make sure that none of these have been changed.  If you only have a few items in the crontab, you could also just delete the old one and re-create it.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 23 Jan 2002 20:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651310#M46112</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2002-01-23T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651311#M46113</link>
      <description>Hey Mr. James ..&lt;BR /&gt;just wondering what created the empty cron file? Hitting &lt;ENTER&gt; twice and exiting with the x? &lt;BR /&gt;&lt;BR /&gt;Richard&lt;/ENTER&gt;</description>
      <pubDate>Wed, 23 Jan 2002 20:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651311#M46113</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-01-23T20:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651312#M46114</link>
      <description>When you used crontab without a filename it created a blank file.  Checkout the manpage on crontab and you will see this explained.  &lt;BR /&gt;So basically, what James said above is exactly what happened.  You ran the crontab command without a file and in effect overwrote your existing file and cron'd it with a blank file.&lt;BR /&gt;You can restore from a backup tape...and what I do as a real quick fix is make a backup (root.bak) of the file in /var/spool/crontabs  &lt;BR /&gt;Because I always do things like this when I'm doing a quick fix and heading out the door.  So I want to restore fast....&lt;BR /&gt;&lt;BR /&gt;Just a thought,&lt;BR /&gt;Rit</description>
      <pubDate>Wed, 23 Jan 2002 20:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651312#M46114</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-01-23T20:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651313#M46115</link>
      <description>Hi Bill and Richard:&lt;BR /&gt;&lt;BR /&gt;Richard, I can reproduce Bill's problem.  Actually the crontab file isn't emptied but removed.&lt;BR /&gt;&lt;BR /&gt;Note what the man pages for 'crontab' say:&lt;BR /&gt;&lt;BR /&gt;/begin_quote/&lt;BR /&gt;&lt;BR /&gt;crontab [file]    Create or replace your crontab file by copying the specified file, or standard input if file is omitted or - is specified as file, into the crontab directory, /var/spool/cron/crontabs.&lt;BR /&gt;&lt;BR /&gt;/end_quote/&lt;BR /&gt;&lt;BR /&gt;# crontab -l&lt;BR /&gt;&lt;BR /&gt;...will echo nothing if a truly empty file exists. whereas a missing file returns:&lt;BR /&gt;&lt;BR /&gt;"crontab: can't open your crontab file."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 23 Jan 2002 20:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651313#M46115</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-23T20:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651314#M46116</link>
      <description>I was able to reproduce that =) &lt;BR /&gt;First I made a root.bk and a root.bk1&lt;BR /&gt;then i cleared everything oout of root.bk1.&lt;BR /&gt;I ran the command&lt;BR /&gt;crontab root.bk1&lt;BR /&gt;checked crontab and guess what? It was empty,&lt;BR /&gt;crontab -l &lt;BR /&gt;returns nothing&lt;BR /&gt;crontab -e lets me edit the file. &lt;BR /&gt;Delete root ..&lt;BR /&gt;crontab -l&lt;BR /&gt;crontab: can't open your crontab file.&lt;BR /&gt;why .. because there is no file to open!&lt;BR /&gt;crontab root.bk&lt;BR /&gt;restores theback up file like rita mentioned. &lt;BR /&gt;The only thing I couldnt do was remove the crontab file by just doing &lt;BR /&gt;#crontab&lt;BR /&gt;other wise ..I did learn a little about crontab .. =)&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 23 Jan 2002 22:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651314#M46116</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-01-23T22:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651315#M46117</link>
      <description>Because crontab is a bit unforgiving, most sysadmins will NEVER use crontab -e, but instead will make a local copy of the crontab file in root's $HOME.  All changes are made to that file, then crontab file_name is run to install the new file.&lt;BR /&gt;&lt;BR /&gt;Now, if a mistake is made, the crontab entries are restored by simply running crontab file_name again.</description>
      <pubDate>Thu, 24 Jan 2002 00:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651315#M46117</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-24T00:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: cron problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651316#M46118</link>
      <description>The last time I saw something like this&lt;BR /&gt;occur was with a Junior, who was already told&lt;BR /&gt;never ever use 'crontab -e' &lt;BR /&gt;I *ALWAYS* use the habit of &lt;BR /&gt;# crontab -l &amp;gt; /tmp/wrk&lt;BR /&gt;# vi /tmp/wrk&lt;BR /&gt;make my changes&lt;BR /&gt;# crontab /tmp/wrk (to submit)&lt;BR /&gt;&lt;BR /&gt;Guess what the Junior was instructed to &lt;BR /&gt;find the backup tape(s) after looking as&lt;BR /&gt;red as a tomato!&lt;BR /&gt;&lt;BR /&gt;-Michael</description>
      <pubDate>Thu, 24 Jan 2002 00:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-problem/m-p/2651316#M46118</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-01-24T00:44:24Z</dc:date>
    </item>
  </channel>
</rss>

