How to call a program and exit from the shell (the caller) when program is active?
Posted
by
Jack
on Super User
See other posts from Super User
or by Jack
Published on 2012-11-01T15:44:45Z
Indexed on
2012/11/01
17:05 UTC
Read the original article
Hit count: 236
I want to run a program with GUI, by typing into konsole
: foo args …
and exit from the shell (that's the caller) when the program (foo
) is active.
How do I this? Is there a Linux/Unix built-in command/program to do it? I'm not a shell-man, really. I know that it's possible by writing a small program in C or C++ (any other programming language with small I/O interface on POSIX) programming language with the fork()
and one-of exec*()
function family. It may take some time; I'll do it only if there is no native solution.
Sorry for my bad English; it's not my native language. Also, not sure on tags, please edit for me, if I'm wrong.
If it matters, I'm using OpenSUSE 10.x.
© Super User or respective owner