News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Start something with command line command from linuxmce

Started by itsmeok, March 15, 2009, 05:14:44 PM

Previous topic - Next topic

itsmeok

Hi, I am still working on the option to start a process in the background while running Linuxmce. I quess there must different options. I have looked at starting Hellanzb as a daemon at boot. Have not been successful with this. Is there anyone that could point me to the right wikipage if there is one.

If no page available I am looking to create a wiki page on this. This process must be general to any programm you want to start in the background.

Two options I see are:

1) at boot time
2) through a scenario

Anyone that can help me further ?

Murdock

Forgive me if I'm over simplifying the question - though to start a child pid/program in unix you can run the & with the command name, this will start a new pid and allow processing outside the interactive shell.

tkmedia

You may want to look deeper and do it the LMCE way and possibly create a data type and be able to us the entries from the data grid.



Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

itsmeok

Quote from: tkmedia on March 15, 2009, 06:47:59 PM
You may want to look deeper and do it the LMCE way and possibly create a data type and be able to us the entries from the data grid.



Tim

Any thoughts on the linuxmce way ?

tkmedia

QuoteAny thoughts on the linuxmce way ?

There is a stub in the svn for a shout-cast plugin. That would probably be a good place to start.



Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

tschak909

You can use the App Server to spawn processes, and kill them when needed.

The App Server provides two commands to do this: Spawn Application, and Kill Application.

Go into the web admin, advanced > configuration > devices, select the App Server on the target machine (for example, the CORE/Hybrid), and select Send Command.

You'll see how to use MessageSend to trigger these things from outside the system. But really, you'll want to find a less duct taped way to do things.

-Thom

itsmeok

Thom thanks for your answer. You suggestion works. It is a start for me but as you say I would like to find a nice solution for this. The only thing I would like to run is the following command to start Hellanzb:

Hellanzb -D

Would the computing area be able to be used ?



tschak909

If you want to do that, create an init script and trigger it with upstart. Look at the ubuntu pages on creating upstart scripts to do this.

-Thom

If it proves useful, we may decide to roll it in as a package.