Hi all,
I've been assigned the task of modifying a script which reads in names of tables from a list file, exports a 30 days worth of data from these tables, then deletes the table. The list file will now contain a table name and a number next to it indicating how many days to archive. I need... (1 Reply)
Hi,
I have a shell script that has to taken inputs from a file say "Inputs". Now I take 2 inputs at a time. Suppose the Inputs file contains numbers like
2
3
4
5
Now I have a written a script for adding 2 numbers. When I run the script for first time 2 and 3 must be the inputs. When i run the... (4 Replies)
i have an external device sending serial messages i want to connect this device to a serial port in my sun blade box and record those messages to a file, how can i read the serial port and write it to file?
Thanks (4 Replies)
Hi,
I have a file called inputs. Now that file has the values like this:
1 2 3
Now In my script called 'get.sh' I do this :
exec < inputs
read a b c d
Now I know that there will not be any value in d. How can I check it. I need the exact condition for checking whether the variable has... (1 Reply)
Hi,
This with reference to my earlier thread.
I have file called input that has 2 values. Now I have to check whether the 2 fileds are seperated by a "|" or not. I am not able to do this with the following script.
while read line
do
first=`echo $line | cut -f1 -d'|'`
... (8 Replies)
Hello,
I had written a shell script that accepts input file as cmd line argument and process this file.
if ; then
if ; then
. $1
LOGFILE="$LOG_FILE/MIG_BIOS.log";
get_input_file
else
ERROR_CODE=MSCRM0005_003
error "$ERROR_CODE : Input file $1 is not available";
exit... (3 Replies)
I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help.
#!/usr/bin/ksh
echo "Enter 10 numbers"
for i in 1 2 3 4 5 6 7 8 9 10
do
read .... ... (8 Replies)
Hi,
Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance.
echo "please enter file names";
read name;
echo $name>/tmp/test (11 Replies)
Hi ,
I am not able figure out how to use expect tool to send input to this prompt of format
Searching for disks...done
selecting c0t3d0
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition... (3 Replies)
Discussion started by: chidori
3 Replies
LEARN ABOUT NETBSD
mixerctl
MIXERCTL(1) BSD General Commands Manual MIXERCTL(1)NAME
mixerctl -- control audio mixing
SYNOPSIS
mixerctl [-d file] [-n] [-v] -a
mixerctl [-d file] [-n] [-v] name ...
mixerctl [-d file] [-n] -w name=value ...
mixerctl [-d file] [-n] -w name++ ...
mixerctl [-d file] [-n] -w name-- ...
mixerctl [-d file] [-n] -w name+=value ...
mixerctl [-d file] [-n] -w name-=value ...
DESCRIPTION
The mixerctl command displays or sets various audio system mixing variables. If a list of variables is present on the command line, then
mixerctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are
printed. If the -w flag is specified, mixerctl attempts to set the specified variables to the given values.
The -d flag can be used to give an alternative mixer device. The default is /dev/mixer.
The -n flag suppresses printing of the variable name.
The -v flag shows the possible values of enumeration and set valued variables. Enumerated values are shown in brackets (``[]'') and set val-
ues are shown in curly braces (``{}'').
The exact set of controls that can be manipulated depends on the mixer. The general format (in both getting and setting a value) is
class.name = value
class can have values like inputs or outputs, indicating that the control affects the input or output of the mixer, respectively. name indi-
cates what part of the mixer the control affects. Continuous mixer values, e.g., volume, have numeric values in the range 0-255. If value
can be set for each channel independently, the values are printed separated by commas. Discrete mixer values, e.g., the recording source,
have symbolic names. Depending on the mixer it may either be an enumeration or a set.
The suffixes ++ and -- can be used to step through the values of a mixer control. For numeric controls, these operators increase or
decrease, respectively, the value by an amount (the delta) suitable to make the control assume the next possible value. For binary controls,
these operators toggle between on and off.
The operators += and -= change the value of a mixer control by the indicated number of steps.
ENVIRONMENT
MIXERDEVICE the mixer device to use.
FILES
/dev/mixer mixer audio device
/etc/mixerctl.conf mixer configuration file
EXAMPLES
The command
mixerctl -a -v
can produce
inputs.mic=0,0 volume
inputs.mic.mute=off [ off on ]
inputs.cd=220,220 volume
inputs.cd.mute=off [ off on ]
inputs.dac=220,220 volume
inputs.dac.mute=off [ off on ]
record.record=220,220 volume
record.record.source=mic [ mic cd dac ]
monitor.monitor=0 volume
COMPATIBILITY
The old -f flag is still supported. This support will be removed eventually.
SEE ALSO audioctl(1), audio(4), mixerctl.conf(5), sysctl(8)HISTORY
The mixerctl command first appeared in NetBSD 1.3.
BSD August 15, 2008 BSD