LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2005, 03:09 PM   #1
bong.mau
Member
 
Registered: Apr 2004
Posts: 391

Rep: Reputation: 30
automation


hi

i'm running linux on a test computer low of resources
(this is better because with low resource i can learn better how to optimize.....this is also bad because the work to do is sometimes frustrating...)
env:mandrake 10.1
now the problem....
i have several situation where a pgmA need another prerequisite pgmB to be running....now the pre-req pgmB is automatically started in the /etc/init.d directory as linux service....
but for me is better to have an executable or a script performing the following actions....
start pgm A
start pgm B

then when pgm B is stopped,stop also pgm A
i think the script is easier....
i'm a linux newbye.....i was working for many years on ibm mainframes...
but i do not know linux languages....script C etc etc....

thanks in advance...

Maurizio
 
Old 09-06-2005, 03:14 PM   #2
FrankP
Member
 
Registered: Aug 2003
Location: Britain
Distribution: AntiX, Debian, Gentoo
Posts: 65

Rep: Reputation: 18
Can you give an example of one of the situations where you need to do this. I mean, the two programs and why you need it done like that. Ta, FrankP
 
Old 09-06-2005, 03:26 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: automation

Quote:
Originally posted by bong.mau
hi

i'm running linux on a test computer low of resources
(this is better because with low resource i can learn better how to optimize.....this is also bad because the work to do is sometimes frustrating...)
env:mandrake 10.1
now the problem....
i have several situation where a pgmA need another prerequisite pgmB to be running....now the pre-req pgmB is automatically started in the /etc/init.d directory as linux service....
but for me is better to have an executable or a script performing the following actions....
start pgm A
start pgm B

then when pgm B is stopped,stop also pgm A
i think the script is easier....
i'm a linux newbye.....i was working for many years on ibm mainframes...
but i do not know linux languages....script C etc etc....

thanks in advance...

Maurizio
Put this in a script:
pgmA && pgmB && skill -TERM pgmA


Cheers,
Tink
 
  


Reply



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
Office Automation pudhiyavan Linux - Software 0 01-07-2005 01:24 AM
Cdogg Automation goofyheadedpunk Linux - General 1 01-03-2005 06:56 PM
OpenOffice automation with C++ Paulo Góes Linux - Software 2 10-22-2004 08:55 AM
Permission Automation 0.o Linux - General 3 10-04-2004 01:32 PM
Pan automation - how? technobeast Linux - Software 0 07-12-2004 03:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:39 PM.

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