File: README

package info (click to toggle)
lunch 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 524 kB
  • ctags: 356
  • sloc: python: 2,471; makefile: 33; sh: 8
file content (53 lines) | stat: -rw-r--r-- 1,981 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
The Lunch distributed process launcher
======================================

Lunch is a distributed process launcher and manager for GNU/Linux.

With Lunch, one can launch software processes on several different computers
and make sure they keep running. This software was created to suit the needs
of new media artists for live performances and interactive installations.
It respawns the software that crash and provides a mean to manage
dependencies between running processes.

It provides the command-line lunch utility which can be invoked with a GTK+
user interface.

See http://svn.sat.qc.ca/trac/lunch for more information.


USING LUNCH
===========

Here is a quick how-to. Make sure lunch is installed first. (see INSTALL)
There should be a Lunch icon in the Application/Other Gnome menu.

Copy the "config-sample" example config file to the local ~/.lunchrc ::

 cp doc/examples/config-sample ~/.lunchrc

Edit the configuration file to suit your needs::

 edit ~/.lunchrc

Start the lunch master::

 lunch

A remote lunch-slave is started this way::

 lunch-slave -i "xlogo"
 lunch-slave "xdg-open"

Next, the lunch scripts controls the lunch-slave via its standard input and output. Type "help" in lunch-slave and press enter to see how the lunch-slave prompt is used by lunch. That prompt is not meant to be used directly by an operator, but rather only through lunch.

The .lunch/config file is written in the Python language and the only function needed to be called there is add_command. Here are some examples::

 add_command(command="xlogo", env={}, identifier="xlogo")
 add_command(command="mplayer /usr/share/example-content/Ubuntu_Free_Culture_Showcase/StopMotionUbuntu.ogv", env={}, identifier="mplayer")

Setting the user and host arguments make it be issued through SSH to a remote host::
 
 add_command(command="xlogo", env={"DISPLAY":":0.0"}, user=_user, host="example.org", identifier="remote_xlogo")

See the examples for more information about this.