this actually might work but i'm not exactly sure if its 100% correct. let me see if i can explain this in a different way.
if you made $400 yesterday, and made $3 tomorrow. that is huge difference. what is the percentage of that difference? its way more than 75%. it near the 300% range. my question is, how can we get the exact percentage...even though it will be over 100?
Within a ksh script on HP-UX I trying to calculate a percentage of a number (number/100 x percentage) using the below method and expr.
TARPERC=`expr 16 / 100 \* 5`
TARSUM=`expr 16 + $TARPERC`
ZIPSUM=`expr $TARSUM \* 2`
If the input is 16
outputs are:
TARPERC: 0
TARSUM: 16
ZIPSUM: 32... (6 Replies)
Hi all,
passwd <username> < /var/adm/passwd.txt
cat /var/adm/passwd.txt
abcd1234
abcd1234
when I run this from the script, it comes with:
New password:
It is not able to pick from the location /var/adm/passwd.txt.
thanks in advance. (6 Replies)
Hi guys.
I m creating scripts which input multiple value , inside sqlplus script when it prompt/accept
do anybody know how to provide multiple value inside sqlplus script when it prompt.
like,
enter value for first:
enter value for second:
enter value "save file as " :
I m try... (11 Replies)
Hi frnds
Im new to unix. I have an xml like the following:
<?xml version="1.0"?>
<serviceFeeDetail>
<Data>
<totalAmount>40</totalAmount>
</Data>
<serviceFee>
<invoiceBillGrpNbr>1</invoiceBillGrpNbr>
<serviceFeeLineItem>
<billLineNbr>1</billLineNbr> ... (2 Replies)
Folks -
Firstly, I do apologize that my first post here is a question. I am quite familiar with UNIX since our application is running on it. We are trying to automate a few things on our end and I am challenged with a task in hand that requires UNIX scripting. I am totally a newbie in UNIX... (4 Replies)
I'm new into unix.
My question: is possible to write a shell script which will ask for the
ORACLE_HOME, ORACLE_SID, USERNAME, PASSWORD to connect to Oracle db.
In generally we have to set the ORACLE_HOME in .profile file. And after putting the 'sqlplus' command it asks for the username &... (6 Replies)
Hello,
I have a requirement to shut down and start up my application on different environments (Dev, QA and Prod).
I have around 24 servers. I have to login to each server manually for shutinng down the application.
I wrote a shell command on each server and I am invoking those shell... (2 Replies)
Hi All,
I am writing a shell script.
#!/bin/bash
cat /etc/hosts
mkdir -p /var/tmp
mount 113.123.35.37:/vol/vol615/syb /var/tmp
In above script I am trying to add below predefined script/command (/var/tmp/db_tools)
This command in turn ask for user input, which will be always option... (17 Replies)
• With this script, users will be able to
o Enter into the recycle bin mode. During this mode, all files deleted will be sent to the recycle bin. The recycle bin will be common to all users.
o View contents of the recycle bin (his/her file(s) only).
o Retrieve a particular file from the recycle... (3 Replies)
Hi, i want to call the rsync in a shell script so that i can run it in background by passing the password within script itself. Can any one please let me know how can i provide the password in the shell script itself so that rsync will read the password when promted by the script.
Its very... (11 Replies)
Discussion started by: Little
11 Replies
LEARN ABOUT DEBIAN
audial
AUDIAL(1) General Commands Manual AUDIAL(1)NAME
audial - generate or recognize touch tones for North American telephones
SYNOPSIS
audial [-audio servername] [-volume 0-100] [-spacing milliseconds] [-pause milliseconds] [-duration milliseconds] dialstring
audial -recognize [-microphone] [-gain 0-100] [-time seconds]
DESCRIPTION
The audial program generates touch tones suitable for dialing a North American telephone. audial can also recognize touch tones and pro-
duce the corresponding string.
GENERAL OPTIONS
The following options may be used in either dial or recognition mode:
-audio servername
This option specifies the Network Audio System server on which the files should be played.
DIAL OPTIONS
The following options may be used in dial mode:
-volume 0-100
This option specifies the volume at which the data should be played as a percentage of the maximum possible volume. The default is
100 percent.
-spacing milliseconds
This option specifies the number of milliseconds to wait in between each digit. The default is 100.
-pause milliseconds
This option specifies the number of milliseconds to wait whenever a comma (,) is used in a dial string. The default is 400.
-duration milliseconds
This option specifies the duration of each tone in milliseconds. The default is 100.
DIALING STRING
The following characters may be used in a dialing string:
0123456789*#
The corresponding touch tone is generated.
abcd Tones representing the 4 "function" keys often found on a keypad are generated.
, A blank tone whose length is specified by the -pause option is generated.
Any other characters are ignored.
RECOGNITION OPTIONS -recognize
Enables recognition mode. audial will attempt to recognize touch tones from the input device and output the corresponding charac-
ter.
-microphone
Use microphone gain levels on the audio input device. If a microphone is plugged into the audio input jack, this option should be
used.
-gain 0-100
This option specifies the input gain level. The default is 95.
-time seconds
This option specifies how long to attempt the recognition. The default is forever.
ENVIRONMENT VARIABLES
The following environment variables are used by audial:
AUDIOSERVER
This specifies the name of default audio server to contact if no name is explicitly given on the command line.
DISPLAY This specifies the name of an X Window System display that should be assumed to also have a corresponding Network Audio System
server.
SEE ALSO nas(1)COPYRIGHT
Copyright 1993, 1994 Network Computing Devices, Inc.
AUTHORS
Greg Renda, Network Computing Devices, Inc.
Kevin Martin, Network Computing Devices, Inc.
1.9.3 AUDIAL(1)