LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2003, 12:27 AM   #1
dnijaguar
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
shell script - trap program termination


Hello All. I'm a newbie using the mldonkey software and find that it works well, but I've having trouble getting it (and other client/server type applications) to run without leaving a bunch of terminals on the screen (running the server, which I CTRL-C when I'm finished). It seems that I could write a shell script that runs the server, then the GUI and kills the server whenever I terminate the GUI.

I'd like to write a script like that but I don't know how tell when the GUI's been terminated. Could anyone direct me to a page with information like this? Is this even a plausible way to manage client/server applications on the same machine?

Thank you for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send snmp trap & recieve trap in C program minil Programming 3 07-10-2010 09:22 AM
a script run through a shell program... okeyla Linux - Newbie 1 09-15-2005 10:06 AM
Running shell script within a C or C++ program Quantum0726 Programming 2 06-15-2005 09:14 PM
running a program from shell script Suinatsa Programming 10 04-14-2005 11:25 AM
run shell script in c program u4u Linux - General 1 02-14-2004 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration