LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2004, 10:01 AM   #1
Introx
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
shell scripting, how to make many


Hi.
I got this problem.
I got a few eggdrop's and bouncer's that I want to start at the same time.
let's say that I got 3 eggdrop's with 3 different configs (eggdrop.conf, eggdrop1.conf, eggdrop2.conf)
and they are in /home/introx/eggdrop/ .
also a bouncer that lies in /home/introx/psybnc/

I know little and nothing about C and C++ (only PHP & html)
so, help me with every line..
I'm in a learning phrase so evey tips can help me
If you got any questions be free to ask me!

Thanks alot
 
Old 04-06-2004, 11:06 AM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
vi script.sh

(insert)
#!/bin/sh
eggdrop --config /home/config.file &
eggdrop --config /home/config2.file &
eggdrop --config /home/config3.filec &

/home/introx/psybnc/bouncerprogram &
exit

put that in a file modifying it to how your programs work and chmod 777 the file, and then
./script.sh to execute it.

Shell scripting is just using the shells builtin functions and programs available to the system to automate arduous tasks.

I really don't know how to program a C program that just executes other programs yet.
 
Old 04-09-2004, 05:06 PM   #3
Introx
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks AutOPSY, This helps me on the way..
 
  


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
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 03:32 PM
Shell scripting manya Linux - Security 2 08-24-2005 12:06 PM
Shell scripting help rick_james Programming 3 05-20-2005 09:27 AM
shell scripting emailssent Programming 4 03-16-2005 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 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