12-05-2008
What's doing the recording of start/end times? Is the log in the database or in a text file?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey I have this shell script that I am trying to run and receive a value from a sql query.Then later use the value in an if stmt... I cannot get this to work for nothing..
Here is the script
(sqlplus -s $usrname/$passwrd <<!
set head off feed off pagesize 0
select b
from table;
set head... (9 Replies)
Discussion started by: devaris22
9 Replies
2. Shell Programming and Scripting
Hi,
I have an issue. There is a file that has got some values seperated by commas. I have to write a shell script that would extrct these values and insert them into a table. How can this be done
Thanx in advance (3 Replies)
Discussion started by: sendhil
3 Replies
3. Shell Programming and Scripting
Hi-
I am trying to achieve the following in a script so I can schedule it on a cron job. I am fairly new to the unix environment...
I have written a shell script that reads a flat file and loads the data into an Oracle table (Table1) via SQLLDR. This Works fine. Then, I run a nested insert... (5 Replies)
Discussion started by: rajagavini
5 Replies
4. Shell Programming and Scripting
Hi,
I need help urgently for following issue. Pls help me to resolve this issue.
I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql)
I given... (6 Replies)
Discussion started by: praka
6 Replies
5. Shell Programming and Scripting
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
#!/bin/csh -f
source .orapass
set user = $USER
set pass = $PASS
cd /opt/data/scripts
echo... (2 Replies)
Discussion started by: allinshell99
2 Replies
6. Shell Programming and Scripting
Hi ,
I need to find runtime of jobs.
I have written below script to get start and end times for a list of jobs.
#!/bin/bash
InputFile_Name=/var/tmp/cgk/pre2_oper_status_7amcheck_jobs
if
then
echo "File: $InputFile_Name doesn't exist , Pls check & run again"
echo "Exiting... (8 Replies)
Discussion started by: cgk1983
8 Replies
7. Shell Programming and Scripting
There are 4 parameters that I have to pass from korn shell to sql script.
1) I have to check if $1 , $2 , $3 and $4 are null values or not .
How can I do that ?
2) Once its determined that these values are null (in the sense they are empty) how can I pass null values to sql script... (11 Replies)
Discussion started by: megha2525
11 Replies
8. Shell Programming and Scripting
Hi, this's Pom. I'm quite a new one for shell script but I have to do sql on shell script to query some information from database.
I found a concern to get a new line...When I run my script, it retrieves all data as wondering but it's shown in one line :(
What should I do? I'm not sure that... (2 Replies)
Discussion started by: Kapom
2 Replies
9. Shell Programming and Scripting
Hi all,
$ echo $SHELL
/bin/bash
Requirement - How to pass oracle sql script as argument to unix shell script?
$ ./output.sh users.sql
Below are the shell scripts and the oracle sql file in the same folder.
Shell Script
$ cat output.sh
#!/bin/bash
.... (7 Replies)
Discussion started by: a1_win
7 Replies
10. Shell Programming and Scripting
SQL*Plus version : 11.2.0.4
OS : Oracle Linux 6.5
SQL*Plus is a client application to connect to oracle database. The log file for this tool is generated via spool command as shown below.
I am trying to append date ( $dateString ) to spool file as shown below.
$ cat test2.sh
#!/bin/bash... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT DEBIAN
record
record(1) General Commands Manual record(1)
NAME
record - records *.wav files
SYNOPSIS
record [ options ]
DESCRIPTION
record records *.wav files in CD quality (i.e. 44100 Hz, 16bit, stereo). It has a input level meter, which might be useful for sound trou-
ble shooting (check if the mixer settings ok for recording from the TV card etc.)
OPTIONS
-h display help text
-o file
basename for the output file(s), a number and the .wav extension are added by record. Default is "record".
-i dev mixer control. This should be the one where you can adjust the record level for your audio source. Default is "line". "mic" and
"igain" are good candidates too. Best way to figure is to start your favorite mixer tool and check out which one works ...
-m dev set mixer device. Default is "/dev/mixer".
-d dev set audio device. Default is "/dev/dsp".
-r rate
set sample rate. Default is 44100.
-p sec peak seconds (number of seconds which should be scanned for the volume maximum). This affects both peak level display and level
triggered recording (see below). Default is 1.5 seconds.
record can also be used non-interactive:
-c enable console (non-interactive) mode.
-v be verbose (console mode only).
-t mm:ss
Limit the record time (console mode only). By default record records until stopped by a signal (by typing ^C for example).
-s size
Limit the file size (console mode only). record will continue with a new file once the limit is reached.
-n num Limit the file count (console mode only). record will stop recording after num files.
-l Enable level triggered recording (console mode only) with the default trigger level (1000).
-L level
Enable level triggered recording with the specified trigger level.
If level triggered recording is active, record will start and stop recording depending on the signal strength. Recording will be started
if the signal strength is above the trigger level (1000/32768 => around 3%). Recording will be stopped if the signal is below the trigger
level for some time (1.5 seconds by default, the -p switch changes this).
AUTHOR
Gerd Knorr <kraxel@bytesex.org>
(c) Gerd Knorr record(1)