Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Running Terminal and/or X-Windows in Mac OS X Post 25080 by liquidcross on Wednesday 24th of July 2002 10:59:15 AM
Old 07-24-2002
Cool...I'll try it on my lunch break. Thanks! I'm just learning UNIX, so I'm still clueless on most commands... Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mac OS X/UNIX/Terminal Question

Hey everyone I'm new to UNIX due to the new Mac OS X operating system and would like some help. I'm trying to send an email via the UNIX-Shell-Terminal i Mac OS X, (it's called darwin) How do I do that? When I enter the Command mail I can send messages to root and with the command -forward... (4 Replies)
Discussion started by: onkel
4 Replies

2. UNIX for Dummies Questions & Answers

Problems installing a program through Terminal in Mac OS X

Hey all.. I have a problem with the BitTorrent client called Deluge. (Deluge BitTorrent Client). Followed the guide on their homepage, but can't get it to work. First of all I have installed Xcode Tools 3.0 and MacPorts. I did the "sudo port install deluge" command, and all packages seemed to... (1 Reply)
Discussion started by: Sixmax
1 Replies

3. OS X (Apple)

New to Mac OS X Terminal

Hi everyone. I'm new to using the Terminal and was just wondering if anyone had a link to perhaps a list of commands. And tips on some useful websites to visit or books to read. Oh and is there a way to delete just part of the Terminal's history? If so what is the command? Thanks :) (2 Replies)
Discussion started by: xsemperidem5
2 Replies

4. UNIX for Dummies Questions & Answers

How to create new users on my mac from the terminal

I finally got how to su - in my mac from the terminal. Now I would like to be able to add new users. useradd -m -d ..... doesn't seem to work. (1 Reply)
Discussion started by: bigmac18
1 Replies

5. Linux

What's better for running Windows software in Linux, Wine or Windows VMware?

What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies

6. Shell Programming and Scripting

How to checkout from SVN using Terminal in Mac OS X?

Hi, I am new for SVN. Earlier I have been using CVS. When I checkout the code from SVN using Eclipse, the size of the source code checked out is 612MB. But when I try to checkout from terminal, from my 5.8 branch , the checked out source code's size is only 312.1 MB. Can anyone tell me... (0 Replies)
Discussion started by: Afreen
0 Replies

7. UNIX for Advanced & Expert Users

close a mac terminal

Is there a trick to closing a mac terminal with a command? I would think you could just type exit into your terminal but that doesn't work. I also tried quit and close just for the hell of it and that didn't work either. Does anyone know what the command is? (1 Reply)
Discussion started by: cokedude
1 Replies

8. Shell Programming and Scripting

Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows)

I have cygwin installed on windows server and when I do echo $SHELL the output is /bin/bash I have created a ssh tunnel from this windows server through cygwin to ibm -i series which is running Q-shell. I am trying to invoke a utility wsadmin (used for scripting) on ibm-i from the... (12 Replies)
Discussion started by: gaurav99
12 Replies

9. OS X (Apple)

The Terminal on Mac: Coding

So found this C code online and need to compile it in Terminal on Mac. Here is the code: #include <stdio.h> #include <math.h> int option; char q; int number; int currentsum; int value; void calc() { printf("\t\t\t\t\tBegin\n"); // says begin in top middle of screen ... (3 Replies)
Discussion started by: 1negroup
3 Replies

10. Open Source

The Terminal on Mac OS X

Does anyone know the differences in commands when it come to Linux and Mac OS X? I'm wanting to know if I use "this" command in Linux and It doesn't work in Mac then what command is equivalent to the one in Linux. Example Ctrl+Alt+f2 switches to (tty2) so what equivalent switches to ttys2 on Mac? (13 Replies)
Discussion started by: 1negroup
13 Replies
LUNCH(1)							   User Commands							  LUNCH(1)

NAME
lunch - Distributed process launcher SYNOPSIS
lunch [config file] [options] DESCRIPTION
Lunch is a distributed process launcher for GNU/Linux. The Lunch master launches lunch-slave processes through an encrypted SSH session if on a remote host. Those slave processes can in turn launch the desired commands on-demand. OPTIONS
--version show program's version number and exit -h, --help show this help message and exit -f CONFIG_FILE, --config-file=CONFIG_FILE Specifies the python config file. You can also simply specify the config file as the first argument. -l LOGGING_DIRECTORY, --logging-directory=LOGGING_DIRECTORY Specifies the logging and pidfile directory for the master. Default is /var/tmp/lunch -q, --log-to-file Enables logging master infos to file and disables logging to standard output. -g, --graphical Enables the graphical user interface. -v, --verbose Makes the logging output verbose. -d, --debug Makes the logging output very verbose. -k, --kill Kills another lunch master that uses the same config file and logging directory. Exits once it's done. EXAMPLES
See the examples directory for examples. On a Debian or Ubuntu system, they should located in the /usr/share/doc/lunch/examples/ directory. Here is the simplest example possible for the contents of a ~/.lunchrc file. It tells Lunch to call only one command, called "xeyes". add_command("xeyes") If you add more calls to add_command in this file, it will add more processes to be launched by Lunch. The add_command is the Python func- tion you need to call from your Lunch configuration file in order to add commands to be called by Lunch. If you add more than one command, they will be called in the order you add them in the file. Here is a more complex example of a configuration file. It creates three processes, with dependencies between processes. add_command("xeyes", identifier="xeyes") add_command("xlogo", depends=["xeyes"]) add_command("xclock", depends=["xeyes", "xlogo"]) The configuration file above will first start xeyes, and next xlogo, and finally xclock. If xeyes quits, all three processes will be stopped and restarted. If the xlogo process quits, the xclock will be stopped and restarted again when the xlogo is running. The "depends" keyword argument of the "add_command" function needs a list of strings as argument. Those string must match the "identifier" keyword argu- ment of an already added command. In the next example, we use SSH to launch processes on a remote host. Note that the lunch-slave script must be installed on each of the hosts on which to launch child processes. add_command("xeyes") add_command("xeyes", user="johndoe", host="example.org") It will create a process tree such as this one : lunch_______________lunch-slave____xeyes |____ssh____lunch-slave____xeyes The next one is a command that is run only once. add_command("ls -l", identifier="listing...", respawn=False) If, for some reason, it is easier for you to specify the host name for every command you add, even for the local host, you can call "add_local_address" with the master's IP as an argument. add_local_address("192.168.1.2") # We will not use SSH for this one, # since we just added its host using the # "add_local_address" function. add_command("xeyes", identifier="local_xeyes", user="johndoe", host="192.168.0.2") # We will use SSH for the next one, # since its host is not set as being the local host. add_command("xeyes -geometry 300x400", identifier="remote_xeyes", user="johndoe", host="example.org") OPERATION
The lunch executable is called the lunch master. The lunch-slave executable is called the lunch slave. If run as a master, it launches slaves. The slaves are responsible for launching child processes. The master launches slaves (via SSH or not) which, in turn, launch child processes. The Lunch configuration file can be provided as a first argument to the lunch executable. If not given, the Lunch master will look for the ~/.lunchrc file. If not found, lunch will print an error and exit. The lunch config file is written in the Python programming language, and must call the add_command function. The process ID of the master is written to a file located in /var/tmp/lunch/master*.pid, where * varies depending on the lunch config file used to configure the master. Here is how to kill every lunch master on your system : for f in /var/tmp/lunch/master-*.pid; do kill -15 $(cat $f); done GRAPHICAL USER INTERFACE
When invoked with the --graphical option, (-g) the lunch master shows a graphical user interface displaying the state of every managed process. When this window is closed, the lunch master exits and kills all its children processes. SSH KEYS MANAGEMENT
If using for more than one host, lunch needs a SSH server installed on each remote computer. It is also needed that the public SSH key of your user on the master computer must be installed on every slave computer. Here is a summary of the steps to do to create a SSH key on your master computer, and send your public key on each slave computer. $ mkdir -p ~/.ssh $ chmod 700 ~/.ssh $ ssh-keygen -f ~/.ssh/id_rsa -t rsa Next, for each slave host, do: $ ssh-copy-id <username>@<host> $ ssh username@host 'echo Hello' The latter command should display "Hello" when issued. If you start lunch via SSH, and launch from there commands other hosts, you must first make sure that the ssh-agent is running and that you have unlocked your private SSH key. It can be done like this: $ ssh-agent bash $ ssh-add HISTORY
2010 - Ported from multiprocessing to Twisted 2009 - Written by Alexandre Quessy <alexandre@quessy.net> with contributions from Simon Piette <simonp@sat.qc.ca> REPORTING BUGS
See http://svn.sat.qc.ca/trac/lunch for help and documentation. SEE ALSO
lunch-slave (1) lunch 0.4.0 January 2011 LUNCH(1)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy