12-13-2007
I would also advice you to put double-quotes around all uses of $Num (ie. "$Num"), to ensure you have an empty string rather than a missing variable if the responder just presses Enter.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys:
I am trying to delete multiple files in a folder with different names. Below is the script that I was trying, but it doesn't work
**************************
#!/bin/ksh
DATE=`date '+20%y%m%d'`
DEL_DIR=<dir where files have to be deleted>
let DATE2=$(($DATE - 2))
let DATE1=$(($DATE... (12 Replies)
Discussion started by: geomonap
12 Replies
2. UNIX for Dummies Questions & Answers
im trying to write an until statement which dont go onto the next stage until the user inputs a certain phrase. It is then stored in an array. Ive come up with this code so far but its not working and i dont know why.
read in1
until
do
echo "Incorrect, try again"
... (2 Replies)
Discussion started by: strasner
2 Replies
3. Shell Programming and Scripting
I have a script consisting of certain functions whose input is a file at same location. In that file i have written the name of anothe file at same location. The third file contains a word which act as a function in the first script.Let me give an example
i have a scrip file say 1.sh in which i am... (7 Replies)
Discussion started by: sumitdua
7 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
I am trying to write a post-commit hook script using bash script. What I am trying to do here is:
Developers check in their files to a branch. I check the repository and based on the commit I email QA people.
QA verifies and moves the files to a prod branch and email is sent... (1 Reply)
Discussion started by: kminkeller
1 Replies
5. Shell Programming and Scripting
Hi.
With the help of this group I have created a shell script to find the factorial of a number.
OK. Then I got wild.;) I tried to put in a check to make sure the entry is a number.
read num
If )) then
echo "This is not a valid number. Try again."
fi
while (( $var <= $num)) more... (5 Replies)
Discussion started by: Ccccc
5 Replies
6. Shell Programming and Scripting
Hi .I am trying to check the first arguments =-s and the third =-d,but it doesnt work ,any idea why
It gives me if: Missing file name
Thanks
#case -s and files
if( $1 == "-s" && $3 != "-d" ) then
echo "case s"
endif (1 Reply)
Discussion started by: lio123
1 Replies
7. Shell Programming and Scripting
#! /bin/ksh
rm -f ./xyz file --- this line is working
// Below any if stmt is not working.
if
then
echo " blah blah "
fi
or I replaced above if with
if
then
echo "dir exists"
fi
This is also not working.
I am new to KSH. So can someone help why if stmt is not... (31 Replies)
Discussion started by: saggy9583
31 Replies
8. Shell Programming and Scripting
Using BASH:
$ if -- ::00" ]]; then echo "true"; else echo "false"; fi
false
Mike (5 Replies)
Discussion started by: Michael Stora
5 Replies
9. Shell Programming and Scripting
case "$freq" in
" Hz") low=250; high=550;;
"8 Hz") low=250; high=1000;;
" Hz") low=400; high=1000;;
"63 Hz") low=550; high=1000;;
" Hz") low=400; high=550;;
... (2 Replies)
Discussion started by: Michael Stora
2 Replies
10. Shell Programming and Scripting
hello guys,
i am having the below piece of code
error
()
{
echo"Press y /n"
read ans
case $ans in
y) main;;
n) exit
esac
}
In the abve code, read statement is not working i.e not waiting for user to enter input.
,i tested exit status its 1.
could anyone help me to do this
... (11 Replies)
Discussion started by: mohanalakshmi
11 Replies
AUINFO(1) General Commands Manual AUINFO(1)
NAME
auinfo - show information about a Network Audio System server
SYNOPSIS
auinfo [-audio servername]
DESCRIPTION
The auinfo program provides information describing a Network Audio System server. It lists the capabilities of the server, the devices
that are attached to it, the data formats that are accepted, and any predefined sounds that have been stored in the server.
EXAMPLE
The following example shows the output produced by auinfo when connected to an NCD MCX(tm) display station:
Audio Server: tcp/lemkemcx:8000
Version Number: 2.0
Vendor: Network Computing Devices Inc.
Vendor Release: 3000
Min Sample Rate: 1000
Max Sample Rate: 52000
Max Tracks: 32
Number of Formats: 7
Formats: ULAW8 LinearUnsigned8 LinearSigned8
LinearSigned16MSB LinearUnsigned16MSB
LinearSigned16LSB LinearUnsigned16LSB
Number of Elem Types: 11
Element Types: ImportClient ImportDevice ImportBucket Bundle
MultiplyConstant AddConstant Sum ExportClient
ExportDevice ExportBucket ExportMonitor
Number of Wave Forms: 0
Number of Actions: 2
Actions: ChangeState SendNotify
Number of Devices: 5
Device 0:
Changable: Gain LineMode
ID: 0x34
Kind: PhysicalInput
Use: Import
Format: LinearSigned16MSB
Num Tracks: 1
Access: Import List
Description: "Mono Channel Input"
Min Rate: 1000
Max Rate: 52000
Location: Left Right External
Gain Percent: 15
Line Mode: High
Device 1:
Changable: Gain
ID: 0x32
Kind: PhysicalOutput
Use: Export
Format: LinearSigned16MSB
Num Tracks: 2
Access: Export List
Description: "Stereo Channel Output"
Min Rate: 1000
Max Rate: 52000
Location: Left Right External
Gain Percent: 24
Num Children: 2
Children: 0x30 0x31
Device 2:
Changable: Gain
ID: 0x33
Kind: PhysicalOutput
Use: Export
Format: LinearSigned16MSB
Num Tracks: 1
Access: Export List
Description: "Mono Channel Output"
Min Rate: 1000
Max Rate: 52000
Location: Left Right External
Gain Percent: 24
Num Children: 2
Children: 0x30 0x31
Device 3:
Changable: Gain
ID: 0x31
Kind: PhysicalOutput
Use: Export
Format: LinearSigned16MSB
Num Tracks: 1
Access: Export List
Description: "Right Channel Output"
Min Rate: 1000
Max Rate: 52000
Location: Right External
Gain Percent: 24
Num Children: 0
Device 4:
Changable: Gain
ID: 0x30
Kind: PhysicalOutput
Use: Export
Format: LinearSigned16MSB
Num Tracks: 1
Access: Export List
Description: "Left Channel Output"
Min Rate: 1000
Max Rate: 52000
Location: Left External
Gain Percent: 24
Num Children: 0
Number of Buckets: 0
Bucket 0:
ID: 0x1400008
Kind: Bucket
Use: Import Export
Format: ULAW8
Num Tracks: 1
Access: Import Export Destroy List
Description: "Monty Python - Australian Table Wines"
Sample Rate: 8000
Num Samples: 697944
Bucket 1:
ID: 0x1400007
Kind: Bucket
Use: Import Export
Format: LinearUnsigned8
Num Tracks: 1
Access: Import Export Destroy List
Description: ""I'm sorry Dave, I can't do that" - HAL from 2001"
Sample Rate: 22255
Num Samples: 85504
Bucket 2:
ID: 0x1400006
Kind: Bucket
Use: Import Export
Format: LinearUnsigned8
Num Tracks: 1
Access: Import Export Destroy List
Description: ""He's dead, Jim" - Dr. McCoy"
Sample Rate: 11128
Num Samples: 31602
ENVIRONMENT
AUDIOSERVER
This variable specifies the default audio server to contact if -audio is not specified on the command line.
DISPLAY If AUDIOSERVER is not set, this variable is examined to find the name of the corresponding X Window System display.
SEE ALSO
nas(1)
COPYRIGHT
Copyright 1993, 1994 Network Computing Devices, Inc.
See nas(1) for a full statement of rights and permissions.
AUTHOR
Jim Fulton, Network Computing Devices, Inc.
1.9.3 AUINFO(1)