<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fortuitous</id>
	<title>ElphelWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fortuitous"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/wiki/Special:Contributions/Fortuitous"/>
	<updated>2026-09-28T14:57:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8371</id>
		<title>Adding crond</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8371"/>
		<updated>2010-11-30T18:55:10Z</updated>

		<summary type="html">&lt;p&gt;Fortuitous: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Adding the Cron Scheduler Daemon into 8.X=&lt;br /&gt;
By: Philip Carinhas http://fortuitous.com&lt;br /&gt;
&lt;br /&gt;
== Synopsis: This covers the Installation of Cron Daemon into the Elphel353 using the 8.X firmware ==&lt;br /&gt;
&lt;br /&gt;
I. Introduction&lt;br /&gt;
&lt;br /&gt;
Crond and crontab are part of busybox in the Axis embedded distro.&amp;lt;br&amp;gt;&lt;br /&gt;
Activating these is easy, but you need to add a few extra ingredients&amp;lt;br&amp;gt;&lt;br /&gt;
to complete the process.&lt;br /&gt;
* Much of this was adapted from http://foxlx.acmesystems.it/?id=58&lt;br /&gt;
&lt;br /&gt;
II. Installation:&lt;br /&gt;
&lt;br /&gt;
0. Set some environment vars:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;: AXIS_TOP_DIR=/path/to/your/elphel-dev-kit-base&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
&lt;br /&gt;
1. Go into the busybox area (which is where crond is integrated)&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd packages/apps/busybox&lt;br /&gt;
&lt;br /&gt;
2. configure crond and crontab in busybox:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make menuconfig&lt;br /&gt;
    ==&amp;gt; Miscellaneous Utilities&lt;br /&gt;
     --&amp;gt; Select Crond&lt;br /&gt;
     --&amp;gt; Select Crontab&lt;br /&gt;
     --&amp;gt; exit, exit, save when asked&lt;br /&gt;
&lt;br /&gt;
3. This config isn&#039;t the real one, you must copy it into busyboxconfig to make it stick:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  diff .config busyboxconfig&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cp .config busyboxconfig&lt;br /&gt;
&lt;br /&gt;
4a. Now add the init script in the SDK to create the right directory inside the FOX fimage end the script to start and stop the crond daemon.&amp;lt;br&amp;gt;&lt;br /&gt;
Go in the  packages/initscripts folder and create a folder named crond:&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR/packages/initscripts&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  mkdir crond&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd crond&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4b. Now copy inside it these files: rc, conf, Makefile as follows: &lt;br /&gt;
* Please Note: we&#039;ve added an extra line in Makefile to touch the config files which differs from the&amp;lt;br&amp;gt;example in http://foxlx.acmesystems.it/?id=58 &lt;br /&gt;
&amp;lt;br&amp;gt;First we&#039;ll make these files with cat:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; rc&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
. /etc/init.d/functions.sh&lt;br /&gt;
. /etc/conf.d/crond&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        start)&lt;br /&gt;
                begin &amp;quot;Starting crond&amp;quot;&lt;br /&gt;
                crond $CROND_OPTIONS&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        stop)&lt;br /&gt;
                begin &amp;quot;Stopping crond&amp;quot;&lt;br /&gt;
                killall crond&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        *)      &lt;br /&gt;
        error &amp;quot;Usage: $0 start|stop&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
ENDOFI&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; conf&lt;br /&gt;
CROND_OPTIONS=&amp;quot;&amp;quot; &lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Note: On this next one: Make sure that the following has TABS in the indented lines or &amp;quot;make&amp;quot; will fail!&amp;lt;br&amp;gt;I&#039;ve tried to cut-and-paste these linesto check for consistency, but its not 100% accurate. Depends on your editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; Makefile&lt;br /&gt;
include \$(AXIS_TOP_DIR)/tools/build/Rules.axis&lt;br /&gt;
&lt;br /&gt;
OWN = -o root -g root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
install:&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0755 rc &amp;quot;\$(prefix)&amp;quot;/etc/init.d/crond&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0644 conf &amp;quot;\$(prefix)&amp;quot;/etc/conf.d/crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc0.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc1.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc2.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc3.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc4.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc5.d/K15crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc6.d/K15crond&lt;br /&gt;
        &lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool/cron&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs&lt;br /&gt;
	touch &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs/root&lt;br /&gt;
        &lt;br /&gt;
	\$(LN) -sf /mnt/flash/crontabs &amp;quot;\$(prefix)&amp;quot;/var/spool/cron/crontabs&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Go back to the SDK root folder and edit the main Makefile.&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  vi Makefile&lt;br /&gt;
    -&amp;gt; Search for SUBDIRS list:&lt;br /&gt;
    -&amp;gt; Add &amp;quot;packages/initscripts/crond&amp;quot; to end of list&lt;br /&gt;
    -&amp;gt; You will have to add a continuation backslash to the prior line&lt;br /&gt;
&lt;br /&gt;
6. Make the image as usual:&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make (or use Kdevelop)&lt;br /&gt;
&lt;br /&gt;
7. FBI WARNING: since there is no Mail services on elphel, all stderr and stdout must be handled in your crontab. &amp;lt;br&amp;gt;Otherwise crond can fail, certainly your scripts will fail.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; ~/root.cron&lt;br /&gt;
# Sample crontab file&lt;br /&gt;
*/2 * * * * /bin/echo &amp;quot;cron is good&amp;quot; &amp;gt;&amp;gt; /mnt/flash/root/cron_check.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Now test:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab root.cron&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab -l&lt;/div&gt;</summary>
		<author><name>Fortuitous</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8370</id>
		<title>Adding crond</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8370"/>
		<updated>2010-11-30T18:49:41Z</updated>

		<summary type="html">&lt;p&gt;Fortuitous: /* Adding Cron Daemon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Adding the Cron Scheduler Daemon into 8.X=&lt;br /&gt;
&lt;br /&gt;
== Synopsis: This covers the Installation of Cron Daemon into the Elphel353 using the 8.X firmware ==&lt;br /&gt;
&lt;br /&gt;
I. Introduction&lt;br /&gt;
&lt;br /&gt;
Crond and crontab are part of busybox in the Axis embedded distro.&amp;lt;br&amp;gt;&lt;br /&gt;
Activating these is easy, but you need to add a few extra ingredients&amp;lt;br&amp;gt;&lt;br /&gt;
to complete the process.&lt;br /&gt;
* Much of this was adapted from http://foxlx.acmesystems.it/?id=58&lt;br /&gt;
&lt;br /&gt;
II. Installation:&lt;br /&gt;
&lt;br /&gt;
0. Set some environment vars:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;: AXIS_TOP_DIR=/path/to/your/elphel-dev-kit-base&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
&lt;br /&gt;
1. Go into the busybox area (which is where crond is integrated)&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd packages/apps/busybox&lt;br /&gt;
&lt;br /&gt;
2. configure crond and crontab in busybox:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make menuconfig&lt;br /&gt;
    ==&amp;gt; Miscellaneous Utilities&lt;br /&gt;
     --&amp;gt; Select Crond&lt;br /&gt;
     --&amp;gt; Select Crontab&lt;br /&gt;
     --&amp;gt; exit, exit, save when asked&lt;br /&gt;
&lt;br /&gt;
3. This config isn&#039;t the real one, you must copy it into busyboxconfig to make it stick:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  diff .config busyboxconfig&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cp .config busyboxconfig&lt;br /&gt;
&lt;br /&gt;
4a. Now add the init script in the SDK to create the right directory inside the FOX fimage end the script to start and stop the crond daemon.&amp;lt;br&amp;gt;&lt;br /&gt;
Go in the  packages/initscripts folder and create a folder named crond:&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR/packages/initscripts&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  mkdir crond&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd crond&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4b. Now copy inside it these files: rc, conf, Makefile as follows: &lt;br /&gt;
* Please Note: we&#039;ve added an extra line in Makefile to touch the config files which differs from the&amp;lt;br&amp;gt;example in http://foxlx.acmesystems.it/?id=58 &lt;br /&gt;
&amp;lt;br&amp;gt;First we&#039;ll make these files with cat:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; rc&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
. /etc/init.d/functions.sh&lt;br /&gt;
. /etc/conf.d/crond&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        start)&lt;br /&gt;
                begin &amp;quot;Starting crond&amp;quot;&lt;br /&gt;
                crond $CROND_OPTIONS&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        stop)&lt;br /&gt;
                begin &amp;quot;Stopping crond&amp;quot;&lt;br /&gt;
                killall crond&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        *)      &lt;br /&gt;
        error &amp;quot;Usage: $0 start|stop&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
ENDOFI&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; conf&lt;br /&gt;
CROND_OPTIONS=&amp;quot;&amp;quot; &lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Note: On this next one: Make sure that the following has TABS in the indented lines or &amp;quot;make&amp;quot; will fail!&amp;lt;br&amp;gt;I&#039;ve tried to cut-and-paste these linesto check for consistency, but its not 100% accurate. Depends on your editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; Makefile&lt;br /&gt;
include \$(AXIS_TOP_DIR)/tools/build/Rules.axis&lt;br /&gt;
&lt;br /&gt;
OWN = -o root -g root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
install:&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0755 rc &amp;quot;\$(prefix)&amp;quot;/etc/init.d/crond&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0644 conf &amp;quot;\$(prefix)&amp;quot;/etc/conf.d/crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc0.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc1.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc2.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc3.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc4.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc5.d/K15crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc6.d/K15crond&lt;br /&gt;
        &lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool/cron&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs&lt;br /&gt;
	touch &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs/root&lt;br /&gt;
        &lt;br /&gt;
	\$(LN) -sf /mnt/flash/crontabs &amp;quot;\$(prefix)&amp;quot;/var/spool/cron/crontabs&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Go back to the SDK root folder and edit the main Makefile.&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  vi Makefile&lt;br /&gt;
    -&amp;gt; Search for SUBDIRS list:&lt;br /&gt;
    -&amp;gt; Add &amp;quot;packages/initscripts/crond&amp;quot; to end of list&lt;br /&gt;
    -&amp;gt; You will have to add a continuation backslash to the prior line&lt;br /&gt;
&lt;br /&gt;
6. Make the image as usual:&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make (or use Kdevelop)&lt;br /&gt;
&lt;br /&gt;
7. FBI WARNING: since there is no Mail services on elphel, all stderr and stdout must be handled in your crontab. &amp;lt;br&amp;gt;Otherwise crond can fail, certainly your scripts will fail.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; ~/root.cron&lt;br /&gt;
# Sample crontab file&lt;br /&gt;
*/2 * * * * /bin/echo &amp;quot;cron is good&amp;quot; &amp;gt;&amp;gt; /mnt/flash/root/cron_check.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Now test:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab root.cron&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab -l&lt;/div&gt;</summary>
		<author><name>Fortuitous</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8369</id>
		<title>Adding crond</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Adding_crond&amp;diff=8369"/>
		<updated>2010-11-30T17:07:22Z</updated>

		<summary type="html">&lt;p&gt;Fortuitous: Created page with &amp;quot;=Adding Cron Daemon= Installation of Cron Daemon into the Elphel353  Philip Carinhas&amp;lt;br&amp;gt; Fortuitous Technologies Inc&amp;lt;br&amp;gt; http://fortuitous.com&amp;lt;br&amp;gt;  I. Introduction  Crond and cro...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Adding Cron Daemon=&lt;br /&gt;
Installation of Cron Daemon into the Elphel353&lt;br /&gt;
&lt;br /&gt;
Philip Carinhas&amp;lt;br&amp;gt;&lt;br /&gt;
Fortuitous Technologies Inc&amp;lt;br&amp;gt;&lt;br /&gt;
http://fortuitous.com&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I. Introduction&lt;br /&gt;
&lt;br /&gt;
Crond and crontab are part of busybox in the Axis embedded distro.&amp;lt;br&amp;gt;&lt;br /&gt;
Activating these is easy, but you need to add a few extra ingredients&amp;lt;br&amp;gt;&lt;br /&gt;
to complete the process.&lt;br /&gt;
* Much of this was adapted from http://foxlx.acmesystems.it/?id=58&lt;br /&gt;
&lt;br /&gt;
II. Installation:&lt;br /&gt;
&lt;br /&gt;
0. Set some environment vars:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;: AXIS_TOP_DIR=/path/to/your/elphel-dev-kit-base&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
&lt;br /&gt;
1. Go into the busybox area (which is where crond is integrated)&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd packages/apps/busybox&lt;br /&gt;
&lt;br /&gt;
2. configure crond and crontab in busybox:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make menuconfig&lt;br /&gt;
    ==&amp;gt; Miscellaneous Utilities&lt;br /&gt;
     --&amp;gt; Select Crond&lt;br /&gt;
     --&amp;gt; Select Crontab&lt;br /&gt;
     --&amp;gt; exit, exit, save when asked&lt;br /&gt;
&lt;br /&gt;
3. This config isn&#039;t the real one, you must copy it into busyboxconfig to make it stick:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  diff .config busyboxconfig&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cp .config busyboxconfig&lt;br /&gt;
&lt;br /&gt;
4a. Now add the init script in the SDK to create the right directory inside the FOX fimage end the script to start and stop the crond daemon.&amp;lt;br&amp;gt;&lt;br /&gt;
Go in the  packages/initscripts folder and create a folder named crond:&lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR/packages/initscripts&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  mkdir crond&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  cd crond&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4b. Now copy inside it these files: rc, conf, Makefile as follows: &lt;br /&gt;
* Please Note: we&#039;ve added an extra line in Makefile to touch the config files which differs from the&amp;lt;br&amp;gt;example in http://foxlx.acmesystems.it/?id=58 &lt;br /&gt;
&amp;lt;br&amp;gt;First we&#039;ll make these files with cat:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; rc&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
. /etc/init.d/functions.sh&lt;br /&gt;
. /etc/conf.d/crond&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        start)&lt;br /&gt;
                begin &amp;quot;Starting crond&amp;quot;&lt;br /&gt;
                crond $CROND_OPTIONS&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        stop)&lt;br /&gt;
                begin &amp;quot;Stopping crond&amp;quot;&lt;br /&gt;
                killall crond&lt;br /&gt;
                end $?&lt;br /&gt;
                ;;&lt;br /&gt;
        *)      &lt;br /&gt;
        error &amp;quot;Usage: $0 start|stop&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
ENDOFI&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; conf&lt;br /&gt;
CROND_OPTIONS=&amp;quot;&amp;quot; &lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Note: On this next one: Make sure that the following has TABS in the indented lines or &amp;quot;make&amp;quot; will fail!&amp;lt;br&amp;gt;I&#039;ve tried to cut-and-paste these linesto check for consistency, but its not 100% accurate. Depends on your editor.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;:  cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; Makefile&lt;br /&gt;
include \$(AXIS_TOP_DIR)/tools/build/Rules.axis&lt;br /&gt;
&lt;br /&gt;
OWN = -o root -g root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
install:&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0755 rc &amp;quot;\$(prefix)&amp;quot;/etc/init.d/crond&lt;br /&gt;
	\$(INSTALL) \$(OWN) -m 0644 conf &amp;quot;\$(prefix)&amp;quot;/etc/conf.d/crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc0.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc1.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc2.d/K90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc3.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc4.d/S90crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc5.d/K15crond&lt;br /&gt;
	\$(LN) -sf ../init.d/crond &amp;quot;\$(prefix)&amp;quot;/etc/rc6.d/K15crond&lt;br /&gt;
        &lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/var/spool/cron&lt;br /&gt;
	mkdir &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs&lt;br /&gt;
	touch &amp;quot;\$(prefix)&amp;quot;/mnt/flash/crontabs/root&lt;br /&gt;
        &lt;br /&gt;
	\$(LN) -sf /mnt/flash/crontabs &amp;quot;\$(prefix)&amp;quot;/var/spool/cron/crontabs&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Go back to the SDK root folder and edit the main Makefile.&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  cd $AXIS_TOP_DIR&lt;br /&gt;
  &amp;lt;root@cam&amp;gt;:  vi Makefile&lt;br /&gt;
    -&amp;gt; Search for SUBDIRS list:&lt;br /&gt;
    -&amp;gt; Add &amp;quot;packages/initscripts/crond&amp;quot; to end of list&lt;br /&gt;
    -&amp;gt; You will have to add a continuation backslash to the prior line&lt;br /&gt;
&lt;br /&gt;
6. Make the image as usual:&lt;br /&gt;
   &amp;lt;root@cam&amp;gt;:  make (or use Kdevelop)&lt;br /&gt;
&lt;br /&gt;
7. FBI WARNING: since there is no Mail services on elphel, all stderr and stdout must be handled in your crontab. &amp;lt;br&amp;gt;Otherwise crond can fail, certainly your scripts will fail.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;root@cam&amp;gt;: cat &amp;lt;&amp;lt; ENDOFIT &amp;gt; ~/root.cron&lt;br /&gt;
# Sample crontab file&lt;br /&gt;
*/2 * * * * /bin/echo &amp;quot;cron is good&amp;quot; &amp;gt;&amp;gt; /mnt/flash/root/cron_check.out 2&amp;gt;&amp;amp;1&lt;br /&gt;
ENDOFIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
8. Now test:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab root.cron&lt;br /&gt;
 &amp;lt;root@cam&amp;gt;: crontab -l&lt;/div&gt;</summary>
		<author><name>Fortuitous</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Tutorials&amp;diff=4950</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Tutorials&amp;diff=4950"/>
		<updated>2010-11-30T16:14:13Z</updated>

		<summary type="html">&lt;p&gt;Fortuitous: /* Camera Development Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Camera Development Tutorials==&lt;br /&gt;
&#039;&#039;&#039;[[Arduino | Arduino and Elphel Camera Tutorial]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Use the Arduino and an infrared motion sensor to record video to camera internal storage if motion has been detected. &lt;br /&gt;
* Use the Arduino to build a still camera  by triggering a full snapshot with a single button pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Elphel_on_SourceForge| CVS on Sourceforge]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Guide on how to contribute to the elphel sourcecode CVS tree hosted by sourceforge.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[PHP_Examples| PHP Example Code]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Look at a few examples on how to use the camera specific PHP functions and data structures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Socket_Tutorial | Socket Communication Tutorial]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The simplest way to exchange data between an Elphel camera and a host computer is with a simple C Programm sending and listing to socket communications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[understanding_camvc | How to: Add a new color mode to camvc in 7.X firmware (outdated)]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This Tutorial describes the file structure and the way camvc works by adding a new feature to enable jp4 encoding mode required for &amp;quot;on client pixel demosaicing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[adding_crond | How to: Add Crond to 8.X firmware ]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This Tutorial describes how to add the cron scheduling daemon to 8.X fireware&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Fortuitous</name></author>
	</entry>
</feed>