I am having a bash script which is basically invoking a python program to validate the Source Query results against the target query results. I am placing all the queries in a .sql file.
I want to write to a Error log file incase if the syntax is wrong or if the column is not present in the table.
When i run my script as
its displaying the error as
I want to capture this error in a error log file.
When I make use of the following command
, its not writing the terminal output to the error file.
Any help is appreciated.
Thanks
Diagnostics are usually written to the standard error output (file descriptor 2) instead of standard output (file descriptor 1). Try:
This User Gave Thanks to Don Cragun For This Post:
Hi all
The makefile of a large project produces hundreds of lines of output, which I can't look at any more when the build is finished. If I simply redirect the output to a file, I can't see the progress of the building process...
Is there a possibility to redirect the output to a file and at... (1 Reply)
I have a window open on my ultra 10 - a terminal window connecting to a server.
Is there any way I can log all output to this window to a log file on my ultra 10 ? (2 Replies)
Hey,
How can I transfer the terminal output to a file ?
For example :
command "fuser" returns the "process-id" and prints the output on the terminal, but I want that output to a file as well. How can I do that ?
/clocal/mqbrkrs/user/mqsiadm/sanjay/AccessMonitor $ fuser -uf... (2 Replies)
I would like to use a terminal session to ssh to switches and routers. I need to capture data while logged into switches to a file I can email for troubleshooting.
I use termial to log into Cisco switch, run the sh tech command, and then sent the output to cisco. Is there a way to run a... (4 Replies)
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
Hi All,
The script below read the path and searches for the directories/subdirectories and for the files. If files are found in the sub directories then read the content of the all files and put the content in csv(comma delimted) format and the call the write to xml function to write the
std... (1 Reply)
Hi all !
I noticed something very weird.
I have a large pipe delimited file (20 fields/3,000 records) that looks like that:
AAA|BBB|11111|22222|...|($NF of record 1)
CCC|DDD|33333|44444|...|($NF of record 2)
CCC|DDD|55555|66666|...|($NF of record 3)
For the lines with same 1st and 2nd... (3 Replies)
Hi,
I need help in printing data in below format from file extensions with .dml, i have listed details below
file name is test_temp.dml, location in /home/users/test01/test_temp.dml
file content:
sample_type=
record
decimal(",") test_type;
date("DD-MM-YYYY")(",") test_date... (2 Replies)
Hi,
below 'awk' code was given for my thread 'Help with printing output format from a file ' earlier, however script is not resulting expected output with below file content.
cat test_tes123.dml
record
string("\001") emp_num; /* CHAR(11) NOT NULL*/
date("YYYYMMDD")... (1 Reply)
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
LEARN ABOUT DEBIAN
oggz-validate
oggz-validate(1) General Commands Manual oggz-validate(1)NAME
oggz-validate -- Validate the Ogg framing of one or more files
SYNOPSIS
oggz-validate [-M num | --max-errors num ] [-p | --prefix ] [-s | --suffix ] [-P | --partial ] filename ...
oggz-validate [-h | --help ] [-v | --version ]
Description
oggz-validate validates the Ogg framing of one or more Ogg files.
oggz-validate detects the following errors in Ogg framing:
o File contains no Ogg packets
o Packets out of order
o Packet belongs to unknown serialno
o Granulepos decreasing within track
o Multiple bos pages
o Multiple eos pages
o eos marked but no bos
o Missing eos packets
o eos marked on page with no completed packets
o Granulepos on page with no completed packets
o Theora video bos page after audio bos page
o Terminal header page has non-zero granulepos
o Terminal header page contains non-header packet
o Terminal header page contains non-header segment
oggz-validate exits with status 0 if all files are valid Ogg files, and with status 1 if one or more errors are found.
Options
oggz-validate accepts the following options:
Error reporting options
-M num, --max-errors num
Exit after the specified number of errors. A value of 0 specifies no maximum.
-p, --prefix
Treat input as the prefix of a stream; suppress warnings about missing end-of-stream markers
-s, --suffix
Treat input as the suffix of a stream; suppress warnings about missing beginning-of-stream markers on the first chain
-P, --partial
Treat input as a the middle portion of a stream. Equivalent to both --prefix and --suffix
Miscellaneous options
-h, --help
Display usage information and exit.
-v, --version
Output version information and exit.
AUTHOR
Conrad Parker April 3, 2005;
COPYRIGHT
Copyright (C) 2005 CSIRO Australia
SEE ALSO oggz-sort(1), oggz-dump(1), oggz-info(1)oggz-validate(1)