<?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 Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823120#M270489</link>
    <description>You shouldn't be using crontab -e; as you have discovered it's a potentially dangerous shortcut. You should do it like this:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; myfile&lt;BR /&gt;vi myfile&lt;BR /&gt;crontab &amp;lt; myfile&lt;BR /&gt;&lt;BR /&gt;You then always have a backup file. However, the crontab command is always porentially dangerous because if you do this:&lt;BR /&gt;crontab&lt;BR /&gt;then crontab is waiting for stdin and will overwrite your existing entry with a null entry.&lt;BR /&gt;&lt;BR /&gt;I suspect what is really happening is that you have users that are simply typing "crontab" without either a -e or -l argument. &lt;BR /&gt;&lt;BR /&gt;In any event, I still suggest that you not use -e.&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Jul 2006 10:03:56 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-07-13T10:03:56Z</dc:date>
    <item>
      <title>Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823117#M270486</link>
      <description>While updating crontab with crontab -e and then saving them with :wq ... the entries vanish after I disconnect for the shell ... this is happening for a regular non root user.&lt;BR /&gt;Have you guys faced this before...&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 13 Jul 2006 09:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823117#M270486</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2006-07-13T09:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823118#M270487</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Yes,&lt;BR /&gt;&lt;BR /&gt;I've seen this happen when the users didn't have rights to his/her own file in /var/spool/cron&lt;BR /&gt;&lt;BR /&gt;I've seen in when some other process overwrites all the cron files, perhaps a root cron job.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 13 Jul 2006 10:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823118#M270487</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-13T10:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823119#M270488</link>
      <description>Hunki,&lt;BR /&gt;&lt;BR /&gt;Please check to see if you have a /var/adm/cron/cron.allow and cron.deny,&lt;BR /&gt;check the permissions to see if the user has the rights to use cron.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;jaime.</description>
      <pubDate>Thu, 13 Jul 2006 10:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823119#M270488</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-13T10:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823120#M270489</link>
      <description>You shouldn't be using crontab -e; as you have discovered it's a potentially dangerous shortcut. You should do it like this:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; myfile&lt;BR /&gt;vi myfile&lt;BR /&gt;crontab &amp;lt; myfile&lt;BR /&gt;&lt;BR /&gt;You then always have a backup file. However, the crontab command is always porentially dangerous because if you do this:&lt;BR /&gt;crontab&lt;BR /&gt;then crontab is waiting for stdin and will overwrite your existing entry with a null entry.&lt;BR /&gt;&lt;BR /&gt;I suspect what is really happening is that you have users that are simply typing "crontab" without either a -e or -l argument. &lt;BR /&gt;&lt;BR /&gt;In any event, I still suggest that you not use -e.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Jul 2006 10:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823120#M270489</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-13T10:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823121#M270490</link>
      <description>Clay is giving you good advice, as e (edit) and r (remove) are next to each other on the keyboard.&lt;BR /&gt;&lt;BR /&gt;My solution to this problem is to run a cron job that backs up the crontab file every Sunday. That way I can use crontab -e without worrying.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 13 Jul 2006 10:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823121#M270490</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-07-13T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cron Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823122#M270491</link>
      <description>&lt;QUOTE&gt;&lt;BR /&gt;You shouldn't be using crontab -e; as you have discovered it's a potentially dangerous shortcut. You should do it like this:&lt;BR /&gt;&lt;BR /&gt;crontab -l &amp;gt; myfile&lt;BR /&gt;vi myfile&lt;BR /&gt;crontab &amp;lt; myfile&lt;BR /&gt;&lt;ENQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;That's the *only* way I edit them!&lt;BR /&gt;&lt;BR /&gt;&lt;/ENQUOTE&gt;&lt;/QUOTE&gt;</description>
      <pubDate>Thu, 13 Jul 2006 10:34:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-question/m-p/3823122#M270491</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-07-13T10:34:10Z</dc:date>
    </item>
  </channel>
</rss>

