start program immediately after boot

Does anyone know a way to have a program start running after the
beagleboard is finished booting (without having to run the program
from the terminal)?

I want a program on my laptop that will select a program to run on the
beagleboard. This requires a program to listen for commands that
should run immediately after the beagleboard is done booting
(wireless). Also, does anyone know how to call a program to run from a
program that is currently running on the BB?

Thanks a lot.

Short and easy answer: use ssh.
Long and more complex answer: Write your own program. The method of
starting it will depend on the distro you use, but in general there
are two major mechanisms you can use to automatically start your
program: through init and as a service.
Init is a "low level" method. Init is the first program the kernel
starts after it finishes booting and is responsible for bringing up
the rest of the system. You can try to add your program there (through
/etc/inittab), but it may turn out overly complicated and can have
unnecessary side effects.
Another (preferred) method of starting a program when the system boots
is a service. The technical details are very distro-dependent, but
there are two methods of starting a service, you will find in most of
unixish systems: runlevel service and inetd.
Runlevel services are started when the system enters a runlevel (there
are 6 runlevels. On most of the systems you will find a short
description in /etc/inittab. Most commonly used are 3 (interactive
with text terminal only) and 5 (running X)). The startup scripts for
services are usually located in /etc/init.d/* and /etc/rc*.
A runlevel service can perform any actions, but is started only when
the system enters service's assigned runlevel or manually and killed
when the system leaves service's runlevel or manually.
Programs providing network services can be started through inetd. Most
of modern linux systems use xinetd with config files in /etc/xinet.d.
The advantage of inetd is that a service can be started when a network
request comes and will be restarted when necessary.
Another, even more advanced way of accessing a service over the
network is RPC (Remote Procedure Call). Can be really convenient in
some situations, but requires much more work on the client and server
sides.

regards,
j.

Hi Gordon,

Try monit: http://mmonit.com/monit/

You can start/stop/restart programs (services) using web interface.

Cheers,
Max.

Hi Gordon,

Try monit:Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit

You can start/stop/restart programs (services) using web interface.

Cheers,
Max.

I will try this, thank you

Jacek,

Thanks a lot. SSH seems like the best way to go. The only problem is
when I do that right now I have to first setup the wireless connection
on the beagleboard:
ifconfig, iwconfig, dhclient.... is there a way to have that done upon
boot?

Thanks.

For Angstrom: http://www.linuxtogo.org/gowiki/AngstromManual#Communications.26Networking
go down to "Networking using wifi/802.11"

regards,
j.