On Fri, 05 May 2000, you wrote:
>Hi, grrls ;-)
>
>I have a really _basic_ and lame question!
>I need to lauch two programs, and they need 
>to behave like this;
>
>* start program 1
>* start program 2
>* use program 2
>* exit program 2 manually
>* program 1 should exit automatically

Hmm.

You could use a shell script, like this:

#!/bin/bash
$1 &
pid=$!
$2
kill $pid

Then run it with a command like: ./foo.sh "xmessage hi" "pico"

It starts xmessage in the background, then starts pico. When you close pico, it
tells xmessage to quit.

Might not be what you were looking for, but your question seemed sort of vague.
:-)

TTFN
Andy


_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk

Reply via email to