02-07-2006
Now getting `IP=$' unexpected
Is the code you've given me specific to a shell type or OS ??
Thanks
10 More Discussions You Might Find Interesting
1. IP Networking
Hi all,
I upgraded my SUSE 6.1 to SUSE 7.1 and at once the following things won't work anymore:
1) My DHCP client is not able anymore to retrieve my IP address from the @home server. It times out all the time. If I use a fixed IP I can get on the net, so there is no physical problem.
2) I... (3 Replies)
Discussion started by: Micky
3 Replies
2. UNIX for Dummies Questions & Answers
I have a while read loop that reads values inside of a file and then performs an expr operation on each.
Everything works fine, the way it's supposed to but, once the loop is finished, I can not access the variable that I used inside of the loop (but that variable was created outside of the... (7 Replies)
Discussion started by: yongho
7 Replies
3. Shell Programming and Scripting
Hey guys,
I'm kinda a noob at scripting. I am trying to create a script that uses multiple for loops with the lsiutility to monitor disk health on a system.
The script runs, but it will continually echo an infinite number of LogVolumes when there are only 2 per virtual disk on my server. It's... (2 Replies)
Discussion started by: tank126
2 Replies
4. Shell Programming and Scripting
You can use one while inside another?
I made the following script (without really knowing if I can use two while) to get 3 numbers different from each other at random:
num1=$(( $RANDOM % 10 ))
num2=$num1
while
do
num2=$(( $RANDOM % 10 ))
done
num3=$num1
while
do
while
do... (1 Reply)
Discussion started by: ale.dle
1 Replies
5. Shell Programming and Scripting
Hi,
#!/bin/ksh
$v=""
for ((i = 1 ; i <= 5 ; i++ ))
do
v="THerrFile_$i.err";
grep -i "$i:Error" $v >>oraerror_output.txt
done
My requirement is to dynamically create variable like
THerrFile_1.err,THerrFile_2.err etc.
where my grep needs... (5 Replies)
Discussion started by: sudhir_83k
5 Replies
6. Shell Programming and Scripting
Hi script gurus.
I have need to know how to use for loop with multiple variable.
Basically lets take for example /etc/passwd file has following entries
The above cat command will basically first greps the real users that have email addresses then converts ':' to '+' then using cut... (4 Replies)
Discussion started by: sparcguy
4 Replies
7. Shell Programming and Scripting
Hi,
This is probably going to be very simple but i came across something i can't quite explain. Here is the situation: i have a list of files, which i'd like to process one by one (get the size, make some tests, whatever) and generate some statistics using different variables.
Something... (5 Replies)
Discussion started by: m69w
5 Replies
8. Shell Programming and Scripting
I am trying to use two nested for loops to process some files and then create a new file using both variables in the output file name. I have several files in this naming style:
S1_L3_all_R1.fastq
S1_L3_all_R2.fastq
S1_L4_all_R1.fastq
S1_L4_all_R2.fastq
.
.
S1_L8_all_R1.fastq... (3 Replies)
Discussion started by: aminards
3 Replies
9. Shell Programming and Scripting
I have a script to start/stop/restart the tomcat application. When we run the script first time i.e stop/start it set all env variables(DISTRIB_ID,NAME,TOMCAT_CFG,....etc),but when we restart the tomcat it is running in the same shell.....I need to set the variables when i restart the tomcat(in the... (1 Reply)
Discussion started by: praveen265
1 Replies
10. UNIX for Dummies Questions & Answers
I am using this code:
for e in {1..14}
do
awk '{gsub(/^.*GGGGGG|TTTTT.*$/,"",$0)} 1' $e.1 > ${e}.2
done
However, in the second loop instead of GGGGGG|TTTTT, I should use AAAAAA|CCCCCC.
For third loop CCAAAA|CCCCAA, so on and so forth. Is there any way to accomplish this without writing... (20 Replies)
Discussion started by: Xterra
20 Replies
LEARN ABOUT DEBIAN
liquidsoap
LIQUIDSOAP(1) General Commands Manual LIQUIDSOAP(1)
NAME
liquidsoap - a multimedia streaming language
SYNOPSIS
liquidsoap [options] [script|expression]
DESCRIPTION
Liquidsoap is a programming language for describing multimedia streaming systems. It is very flexible, making simple things simple but
giving a lot of control for advanced uses. Liquidsoap supports audio, video and MIDI streams, and a wide range of input/output operators
including Icecast and various soundcard APIs. It can perform a broad range of signal processing, combine streams in various ways, support
custom transitions, generate sound procedurally... and all this can be assembled as you wish. Input files can be accessed remotely, or
even be synthesized on the fly using external scripts such as speech synthesis. Finally, interaction with a running liquidsoap instance is
possible via telnet or socket.
Liquidsoap scripts passed on the command line will be evaluated: they shall be used to define the streaming system to be ran. It is possi-
ble to pass multiple scripts; they will all be ran successively, and definitions from one script can be used in subsequent ones. A script
will be read from standard input if - is given as script filename. Information about scripting liquidsoap is available on our website:
http://savonet.sf.net/
If the parameter is not a file it will be treated as an expression which will be executed. It is a convenient way to test simple one-line
scripts. When running only one-liners, the default is to log messages directly on stdout rather than to a file.
OPTIONS
-
Read script from standard input.
-- Stop parsing the command-line and pass subsequent items to the script.
--debug
Print debugging log messages.
--dynamic-plugins-dir path
Directory where to look for plugins.
--errors-as-warnings
Issue warnings instead of fatal errors for unused variables and ignored expressions. If you are not sure about it, it is better to
not use it.
--interactive
Start an interactive interpreter.
--list-plugins
List all plugins (builtin scripting values, supported formats and protocols).
--list-plugins-xml
List all plugins (builtin scripting values, supported formats and protocols), output as XML.
--no-pervasives
Do not load pervasive script libraries.
--version
Display liquidsoap's version.
-c, --check
Check and evaluate scripts but do not perform any streaming.
-cl, --check-lib
Like --check but treats all scripts and expressions as libraries, so that unused toplevel variables are not reported.
-d, --daemon
Run in daemon mode.
-f, --force-start
For advanced dynamic uses: force liquidsoap to start even when no active source is initially defined.
-h plugin
Print the description of a plugin, eg. a builtin scripting function.
-i Display infered types.
-p, --parse-only
Parse scripts but do not type-check and run them.
-q, --quiet
Do not print log messages on standard output.
-r filename
Process a request.
-T, --disable-telnet
Disable the telnet server.
-U, --disable-unix-socket
Disable the unix socket.
-t, --enable-telnet
Enable the telnet server.
-u, --enable-unix-socket
Enable the unix socket.
-v, --verbose
Print log messages on standard output.
--conf-descr-key key
Describe a configuration key.
--conf-descr
Show all configuration keys with their documentation.
--conf-descr-liqi
Show all configuration keys with their documentation in liqi (documentation wiki) format.
--conf-dump
Dump the configuration state
-help, --help
Display this list of options
SEE ALSO
Our website http://savonet.sf.net/ and the HTML documentation coming with your distribution of liquidsoap.
AUTHOR
Savonet team <savonet-users@lists.sourceforge.net>
Liquidsoap 1.0.1 June 25, 2012 LIQUIDSOAP(1)