I make extensive use of the FPATH feature which lets me put a library of script functions somewhere. bash doesn't have that and even though i have tried hard to come up with a similar functionality i haven't found a way to do it up to now.
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Hi
I tried with bash --login option. but the output is
siva:~$ bash --login
siva:~$
is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su )
Thx in advance
Siva (3 Replies)
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Hi,
I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram
I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command
i'd like to use vim style key shortcuts while on the command line so that a 55 moves the cursor 55 places to the left...
and i want all the other vi goodies, search of... (3 Replies)
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT DEBIAN
ample.conf
AMPLE.CONF(5) User Manual AMPLE.CONF(5)NAME
ample.conf - configuration file for Ample
DESCRIPTION
This file, by default /etc/ample/ample.conf, is read by Ample at startup. There are three categories of values than can be defined:
strings, numbers and boolean values. Valid boolean values are (case insensitive) yes, no, true and false. Lines that start with # are con-
sidered to be comments and ignored.
EXAMPLE
# An example of a Ample config file
#
# Port number to use
port = 1234
# Should files be ordered when playing a mixed stream?
order = true
# Amount of simultaneous clients allowed
clients = 5
# Path to logfile if syslog isn't used
logfile = /var/log/ample
# Path(s) to MP3 dir/file or M3U file
mp3path = /home/mp3
mp3path = /home/moremp3/zztop.mp3
mp3path = /home/favourites.m3u
# Path to the HTML file to use as a template
htmlfile = /etc/ample.html
# Should the MP3 dir(s) be recursively scanned?
recursive = true
# Name of the server
# (displayed to clients here and there)
servername = Ample
# Address of the server
# (only if your server can't be resolved)
serveraddress = 192.168.0.1
# Username and password, if these are specified, Ample
# will automatically ask for username/password
username = MusicLover
password = Pekaboo
# Filter to pass each music file through
# (before they are sent to the client)
filter = /usr/bin/lame -b64 --quiet "@FPATH@" -
# The end
OPTIONS
port=NUM
Listen to TCP port NUM, default is 1234.
order=BOOL
When a list of files is requested, and this option is TRUE, play them in alphabetical order.
clients=NUM
Allow a maximum of NUM clients to be connected at the same time.
logfile=FILE
Use FILE as logfile if syslogd(8) isn't used.
mp3path=PATH
These are path(s) to files or directories that Ample can use to populate it's list of MP3's. If PATH is a directory, all files (pos-
sibly recursively, see the -n option above) will be added. If PATH is a regular file ending with .mp3 it will be added and if it is
a regular file ending with .m3u (MP3 playlist) the files listed in it will be added. You can specify several paths by adding several
mp3path=PATH lines to this config file.
htmlfile=FILE
This is the path to the file which Ample should use as it's base for creating HTML pages. See ample.html(5) for more information.
recursive=BOOL
If TRUE, all directories that Ample index:es will be scanned recursively (meaning that all subdirs will be checked for files as
well)
servername=STRING
The name of the server will be set to STRING instead of "Ample" (the servername is displayed to clients in various places).
serveraddress=STRING
STRING should be the IP address of the server where Ample is run. This is only needed if DNS resolving your server, for some reason,
doesn't work.
username=STRING
If both username and password is specified in the config file, HTTP authentication will be enabled. This means that if a client
wants to connect to ample, it must do so with a username and password in order to be granted acccess. If username or password is
missing, HTTP authentication will be disabled.
password=STRING
See the description of username above.
filter=STRING
Specifies an optional filter to run each file through before it is sent to the client. As an example, this could be used to down-
grade the bitrate of a music file if you have a lousy net connection but lots of CPU cycles to spare. If STRING contains the word
@FPATH@ it will be replaced with the absolute path of the file.
AUTHOR
David Hardeman <david@2gen.com>
SEE ALSO ample(1), ample.html(5)Ample JANUARY 2002 AMPLE.CONF(5)