Linux help, scripting programs to open?  | |
March 13th, 2002, 01:42 AM
|
#1 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Alabama
Posts: 1,309
| 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. |
| |
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.
|
| |
March 13th, 2002, 01:53 AM
|
#3 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Chicago, IL
Posts: 2,514
|
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.
|
| |
March 13th, 2002, 01:55 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Alabama
Posts: 1,309
|
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 |
| |
March 13th, 2002, 01:57 AM
|
#5 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Alabama
Posts: 1,309
|
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. |
| |
March 18th, 2002, 04:50 PM
|
#6 (permalink)
| | may contain mild peril
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.
|
| |
March 18th, 2002, 06:19 PM
|
#7 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Alabama
Posts: 1,309
|
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. |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |