<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Issues Setting Up Cron in Onion Omega [Resolved]]]></title><description><![CDATA[<p dir="auto">Trying to figure out the reason(s) a script is not running properly.</p>
<p dir="auto">Set a shell to call a *.py file every minute with the following:</p>
<h1>Start</h1>
<p dir="auto">*/1 * * * * /root/job.sh</p>
<h1>End</h1>
<p dir="auto">The <a href="http://job.sh" rel="nofollow">job.sh</a> runs a *.py file which checks an I2C temperature module and sends the results to Ubidots. It works fine manually.  Tried restarting Cron and a few other variations such as adding sh to it.</p>
<p dir="auto">The file has the following properties (also tried chmod a+x, u+x, 755, 666 and others):</p>
<p dir="auto">-rwx------    1 root     root            62 Jul 21 15:07 <a href="http://job.sh" rel="nofollow">job.sh</a></p>
<p dir="auto">Checking logread indicates that cron it running:</p>
<p dir="auto">Fri Jul 21 15:38:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3491 cmd /root/job.sh<br />
Fri Jul 21 15:39:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3493 cmd /root/job.sh<br />
Fri Jul 21 15:40:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3495 cmd /root/job.sh<br />
Fri Jul 21 15:41:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3497 cmd /root/job.sh<br />
Fri Jul 21 15:42:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3499 cmd /root/job.sh<br />
Fri Jul 21 15:43:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3502 cmd /root/job.sh</p>
<p dir="auto">Cron works fine on another Omega2+, so confused as to why it's not working or in this case generating any output.</p>
<p dir="auto">Message in Test.log file:</p>
<p dir="auto">-ash: crontab.txt: not found</p>
<p dir="auto">The crontab.txt is listed in /etc/crontabs as root (file).</p>
<p dir="auto">Any ideas on what to try next? Just don't won't to have a script running in an infinite loop after startup.</p>
]]></description><link>http://community.onion.io/topic/2228/issues-setting-up-cron-in-onion-omega-resolved</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 16:04:43 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2228.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jul 2017 20:51:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issues Setting Up Cron in Onion Omega [Resolved] on Tue, 25 Jul 2017 03:30:40 GMT]]></title><description><![CDATA[<p dir="auto">Trying to figure out the reason(s) a script is not running properly.</p>
<p dir="auto">Set a shell to call a *.py file every minute with the following:</p>
<h1>Start</h1>
<p dir="auto">*/1 * * * * /root/job.sh</p>
<h1>End</h1>
<p dir="auto">The <a href="http://job.sh" rel="nofollow">job.sh</a> runs a *.py file which checks an I2C temperature module and sends the results to Ubidots. It works fine manually.  Tried restarting Cron and a few other variations such as adding sh to it.</p>
<p dir="auto">The file has the following properties (also tried chmod a+x, u+x, 755, 666 and others):</p>
<p dir="auto">-rwx------    1 root     root            62 Jul 21 15:07 <a href="http://job.sh" rel="nofollow">job.sh</a></p>
<p dir="auto">Checking logread indicates that cron it running:</p>
<p dir="auto">Fri Jul 21 15:38:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3491 cmd /root/job.sh<br />
Fri Jul 21 15:39:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3493 cmd /root/job.sh<br />
Fri Jul 21 15:40:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3495 cmd /root/job.sh<br />
Fri Jul 21 15:41:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3497 cmd /root/job.sh<br />
Fri Jul 21 15:42:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3499 cmd /root/job.sh<br />
Fri Jul 21 15:43:00 2017 <a href="http://cron.info" rel="nofollow">cron.info</a> crond[3464]: USER root pid 3502 cmd /root/job.sh</p>
<p dir="auto">Cron works fine on another Omega2+, so confused as to why it's not working or in this case generating any output.</p>
<p dir="auto">Message in Test.log file:</p>
<p dir="auto">-ash: crontab.txt: not found</p>
<p dir="auto">The crontab.txt is listed in /etc/crontabs as root (file).</p>
<p dir="auto">Any ideas on what to try next? Just don't won't to have a script running in an infinite loop after startup.</p>
]]></description><link>http://community.onion.io/post/13841</link><guid isPermaLink="true">http://community.onion.io/post/13841</guid><dc:creator><![CDATA[CoffeeCat]]></dc:creator><pubDate>Tue, 25 Jul 2017 03:30:40 GMT</pubDate></item><item><title><![CDATA[Reply to Issues Setting Up Cron in Onion Omega [Resolved] on Tue, 25 Jul 2017 03:30:17 GMT]]></title><description><![CDATA[<p dir="auto">Used <code>crontab -e</code> to edit crontab and removed the <code>^M</code> which were preventing it from running successfully. Think they were either inserting through a copy&amp;past or through the console.</p>
<p dir="auto">Now, it's time to get some rest.</p>
]]></description><link>http://community.onion.io/post/13878</link><guid isPermaLink="true">http://community.onion.io/post/13878</guid><dc:creator><![CDATA[CoffeeCat]]></dc:creator><pubDate>Tue, 25 Jul 2017 03:30:17 GMT</pubDate></item></channel></rss>