Thanks for the reply.
Below I copy the same code with the line numbers.
The File.C is:
The output is (as programmed):
Unable to copy. Error occurred at File.C:32
There is no compilation or run time error. The code behaves as programmed. As the array size is less i.e. 4 (“first [4]”) compared to the length of string “WELCOME” it throws error as expected.
The error is thrown with file name and line number. As programmed the error is thrown at the line number 32 (In the function definition).
I want to program (without using macros) such that the error should show the line number where the function is called. In our case it should show the line number 43. So that it would be easy to find which function call (if I call the function in different places) gives the problem.
Last edited by vgersh99; 07-14-2009 at 10:09 AM..
Reason: code tags, PLEASE!
hi,
I want to know the date the file was created or modified. I can do this using ls, ll -ltr etc...
I want to do this in a function (so If the file date is older then a week I can report it), is there a way?
another thing...
In sql function, I can catch exceptions, is there a way to do this... (1 Reply)
Hi all,
I am trying to write a script for an application server log file where i want to put this script as a cron tab entry and it will check the server log file last 1000/500 line for every fifteen minute.
i am using the script like this.
count=`tail -n 1000 Trace.log | grep -c... (1 Reply)
Hi all
Im trying to call a PL SQl block from a ksh file like this :
sqlplus -s $DB_USERID/$DB_PASSWD@$DB_NAME<<eof
whenever SQLERROR exit 1
var varError VARCHAR2(200);
exec ODAS_BATCH_JOBS_RETRIEVE.retrieve_user_info(:varError);
eof
If there is a error then varError will return a... (1 Reply)
I am trying to write a shell script for monitoring the file system mount.
command I am using will retrieve a output as shown below.
/dev/fsv29 2% /apps/rj/pgl/bslSys
I also need to add exception mounts in a file and I would like script to ignore the mount which I specify.
If I add the... (6 Replies)
Hi Folks,
please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Hi Folks,
I have just basic queries is that suppose I have to monitor the logs then there is a command , suppose I have to monitor the abc.log which is updating dynamically within seconds so the command will be after going to that directory is .. tail -f abc.log
Now please advise what about... (1 Reply)
I have some data as below. I need correct it as result.
Data:
BG1:100+10++II
DG1:200+100+1234
DG2:300+200++II
CG1:200+100+1111
DG2:400+100++II
DG6:200+200+2345
DG2:400+100+2222
Result:
BG1:100+10++II
DG1:200+100+1234
DG2:300+200++1
CG1:200+100+1111
DG2:400+100++1... (4 Replies)
Hi All,
Is it possible to compare 2 files using the contents of a third file as a guide using a bash script?
I have 2 files I want t compare (1 and 2 below) the difference between the two is the first line (a)
I want my script to ignore this difference if the difference is stored in file... (5 Replies)
Hi All
Need a help to understand how one can automatically correct a file name using a shell script even if it is in a completely different format...
Ex : adv_OK_0215_mem_rules_firing.txt / advex_0215_OK_me_rule_fire.txt (or in any other format as above)
to :... (13 Replies)
Hi Folks,
While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
LEARN ABOUT DEBIAN
na_play
NA_PLAY(1) BSD General Commands Manual NA_PLAY(1)NAME
na_record -- play waveform files on audio device
SYNOPSIS
na_play [-h] [-itype type] [-n channels] [-f sample rate] [-ibo byteorder] [-iswap] [-istype type] [-c channel] [-start time] [-end time]
[-from sample] [-to sample] [-p protocol] [-command command] [-basic] [-quality high | low] [-server host] [-scale scale] [-v]
[-wait] input files ...
DESCRIPTION
na_play plays digital audio data to the system's audio input device from the specified file(s). It supports a variety of file formats and
native audio devices.
The following option flags are recognized:
-h Prints a short summary of usage to standard output.
-itype type
Input file type. Usually, the input type can be determined from the file's headers, so this option is not required except for
raw (unheadered) data. Supported types are currently: nist, est, esps, snd, riff, aiff, audlab, raw, ascii.
-n channels
Number of channels, in an unheadered input file. Again, this can usually be determined from the headers. Default is 1.
-f sampling rate
Sampling rate, for an unheadered input file. Default is 16000.
-ibo byte order
Byte order, for an unheadered input file. Default is system byte order. Recognized values are: MSB, LSB, native, nonnative.
-iswap
Swap bytes in an unheadered input file.
-istype type
Sample type for an unheadered input file. Recognized values are: short, mulaw, byte, ascii.
-c channel
Select a single channel (starting at 0) for playback. This option plays only the specified channel and discards all others.
-start time
Select a subsection of the file, starting at this time (specified in seconds).
-end time
Select a subsection of the file, ending at this time (specified in seconds).
-from sample
Select a subsection of the file, starting at this offset (specified in number of samples).
-to sample
Select a subsection of the file, ending at this offset (specified in number of samples).
-p protocol
Use the specified audio device protocol. The list of supported types varies between platforms, and can be obtained using the -h
flag.
-command command
If the "audio_command" protocol is specified, this argument must be given to select the command used to play the waveform. A
temporary file is created and passed in the environment variable FILE. The sample rate is passed in the environment varialbe SR.
-basic
Treat unheadered input files as 8kHz mu-law data (i.e. audio/basic MIME type)
-quality high | low
Select the quality of output. "high" will ensure that proper resampling is used. "low" means to play as fast as possible with a
minimum of processor time.
-server host
Specifies the host to play sound on, when using a network-aware audio protocol (such as NAS)
-scale scale
Change the gain (volume) of the signal. The argument is a number relative to 1.0, which is the default.
-v Be verbose (i.e. print file names when playing)
-wait
Pause for a keystroke between each file.
ENVIRONMENT
NA_PLAY_PROTOCOL
Audio protocol to use (as in the -p flag)
NA_PLAY_COMMAND
Command used to play audio when using the audio_command protocol.
NA_PLAY_HOST
Host to play audio on when using a network audio protocol.
NA_PLAY_QUALITY
Playback quality (low or high)
EXAMPLES
To play the section of foo.wav from 1.5 to 3.2 seconds:
$ na_play -start 1.5 -end 3.2 foo.wav
To play samples 3600 to 42000 of channel 1 of bar.wav:
$ na_play -from 3600 -to 4200 -c 1 foo.wav
BUGS
The usage information isn't entirely correct. The audio_command protocol generates temporary files insecurely.
SEE ALSO na_record(1)Edinburgh Speech Tools April 4, 2001 Edinburgh Speech Tools