home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Linux help, scripting programs to open?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2151
Discussions: 200,947, Posts: 2,379,377, Members: 246,307
Old March 13th, 2002, 01:42 AM   Digg it!   #1 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,309
Send a message via AIM to ChoaticWhisper
Linux help, scripting programs to open?

First putting something all the way down in this forum I hope people see it.

Now I finally got the liveice and icecast to stream my mp3s, Both programs use a good bit of switches, well at least in my case.

I need some kind of script bash, sh, csh, whatever esle there is.
I just need something probaly bash would be easyest. I need to open one in the background or something, then open the other, I dont mind if its hidden or what.
I know this dont make very much sense but maybe someone with help.
ChoaticWhisper is offline   Reply With Quote
Old March 13th, 2002, 01:44 AM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,386
why don't you make an alias

can't remember how it's done, but you can make
alias compile liveice -s -g -ds - ajfjo -lmnop

etc etc
is that what you're referring to?
like eventually i want to set up alias ls ls -la
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old March 13th, 2002, 01:53 AM     #3 (permalink)
Ultimate Member
 
pbharris's Avatar
 
Join Date: Oct 2001
Location: Chicago, IL
Posts: 2,514
Send a message via ICQ to pbharris Send a message via AIM to pbharris Send a message via Yahoo to pbharris
you can try
Code:
#!/bin/bash
#this executes the first thing
liveice -flags
#this executes the next:
icecast -flags
#fin
__________________
Odds are very good there are several spelling mistakes in this post.
pbharris is offline   Reply With Quote
Old March 13th, 2002, 01:55 AM     #4 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,309
Send a message via AIM to ChoaticWhisper
Well I was thinking something like this
Kinda like when you /etc/init.d/httpd start and it starts httpd-perl and httpd
Hmm...maybe I need to look at that file.

echo "Starting IceCast"
/usr/local/icecast/bin/icecast -P 8000 -p letmein -c ../conf/icecast.conf

echo "Starting LiveIce"
/usr/local/icecast/bin/liveice/liveice -n StreamTitle -n StreamTitle -P letmein -o 8000 -M
ChoaticWhisper is offline   Reply With Quote
Old March 13th, 2002, 01:57 AM     #5 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,309
Send a message via AIM to ChoaticWhisper
I did that it only started the first one, I dont know what if theres a command to hide it, I went through like 6 programs before I got this stuff working. I know I seen run hiddened somewhere.
ChoaticWhisper is offline   Reply With Quote
Old March 18th, 2002, 04:50 PM     #6 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
Hi,

Have you tried?:

Code:
#!/bin/bash
#
#Streaming Script V1.0

#Start IceCast and place it in the background

echo "Starting IceCast" 
/usr/local/icecast/bin/icecast -P 8000 -p letmein -c ../conf/icecast.conf &

#Start LiveIce and place it in the background

echo "Starting LiveIce" 
/usr/local/icecast/bin/liveice/liveice -n StreamTitle -n StreamTitle -P letmein -o 8000 -M &

#Status message

echo All done....

#### EOF ####
Your first command takes over the console until it finishes so the second never launches, the ampersand should fix that.

Maybe....



Regards

Eddy

Last edited by SpookyEddy : March 18th, 2002 at 04:53 PM.
SpookyEddy is offline   Reply With Quote
Old March 18th, 2002, 06:19 PM     #7 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,309
Send a message via AIM to ChoaticWhisper
Thanks, Eddy looks like that may work, buy due to a recent power outage I think somethings messed up.
I will give it try when I get linux running without problems.
ChoaticWhisper is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (167)
The disrespect of Obama by Russian .. (19)
Is It Just Me? (2932)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
Internet Lost (0)
Graphics Card Upgrade Questions (0)
Graphics Card Upgrade Question (2)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Point and Shoot Camera Suggestions. (2)


All times are GMT -4. The time now is 07:29 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28