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 03-27-2004, 06:39 AM   #1
spoody_goon
Member
 
Registered: Sep 2003
Location: Michigan USA
Distribution: Mandrake, DamnSmallLinux, VectorLinux
Posts: 416

Rep: Reputation: 30
shell script beginer run programs


I use my pc to test cgi programs, when I am not doing this I don't need httpd, mysql, or named running. I know that there is information on shell scripting starting several programs at one time but I seem to be missing the right part of the manuals.
I could use a link to "Run Programs from Shell Script for newbies" or a quick basic lesson here. I realize this answer already exists somewhere but I seem to be missing it.
Thanks
 
Old 03-27-2004, 08:09 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
You mean you just want a shell script to load, say, three programs one after the other?
Code:
#!/bin/bash
# Above line says to use bash to interpret the script

# run an xterm in the background
xterm &
# run xmms in the background
xmms &
# run the giFT daemon (which is background anyway with the -d switch)
giftd -d
Save as a text file and then do chmod +x <filename> to make it executable.
 
Old 03-27-2004, 07:12 PM   #3
spoody_goon
Member
 
Registered: Sep 2003
Location: Michigan USA
Distribution: Mandrake, DamnSmallLinux, VectorLinux
Posts: 416

Original Poster
Rep: Reputation: 30
Thank you. Do you need the full path to file in order to run the programs when not root?

Last edited by spoody_goon; 03-27-2004 at 07:14 PM.
 
  


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
Start programs from a shell script paraiso Linux - Newbie 4 04-29-2005 09:41 AM
How to run SHELL script pito Linux - Newbie 4 12-17-2004 03:05 AM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 06:49 AM
how do i run shell script? krt47 Linux - Newbie 4 08-02-2004 09:29 AM
how to run a shell script oasisbhrnw99 Linux - Newbie 1 05-05-2004 01:21 PM

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

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