10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a script that runs a tar command to standard out then pipes to a gzip:
tar cfE - * | gzip -c > OUT.gz
At the moment, even if the tar fails (e.g. because of lack of disk space), the gzip still runs successfully.
Is there a way to make the whole line exit with a non-zero error... (6 Replies)
Discussion started by: Catullus
6 Replies
2. Shell Programming and Scripting
Hello Everyone,
I have written a file validation script in unix to compare the data and trigger file.My requirement is if the file validation fails,I need to upate the error details in a table
ex:Below is the one of many validation checks i am doing
if
then
echo "Actual count between... (3 Replies)
Discussion started by: karthik adiga
3 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am a newbie,
I am looking for a script that can capture logs based on a request id and store it in tmp folder
Log files looks like this"
- 2015-07-08 10:59:17,100 INFO RequestId -> 923559008 Inside test method
- 2015-07-08 10:59:17,100 INFO RequestId -> 923559008 End of... (2 Replies)
Discussion started by: tsingh
2 Replies
4. UNIX for Dummies Questions & Answers
Google is not helpful here.
It is probably trivial but I can't get my head around it.
How do I capture an error which crashes out due to say a syntax error to a file?
(Note that I manually reset error.log to zero length.)
Consider this junk code:-
#!/bin/sh
# Launch as ./trap.sh... (2 Replies)
Discussion started by: wisecracker
2 Replies
5. Shell Programming and Scripting
I am not able to capture errors while I am using dialog. For example:
dialog --gauge "Verifying file..." 10 75 < <(
while read LINE
do
hash=$(echo $LINE | cut -f1 -d' ')
directory=$(echo $LINE | cut -c 34-)
PCT=$(( 100*(++i)/n ))
echo $PCT
md5deep -a $hash $directory >... (3 Replies)
Discussion started by: yamanoorsai
3 Replies
6. Shell Programming and Scripting
Hi Gurus,
I am very new in Unix,
I have 1 script, in which I am truncating the table , then BCP the data in Sybase table, and then loading the data from sybase table to sybase table.
every thing is working fine, but the problem is with Error.
I made some hanges in my insert statement so... (3 Replies)
Discussion started by: aksar
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am trying to fetch the data from Oracle Table
More my_query.sql | sqlplus -s 'scott/tiger@OrcaleSID ' | sed 's///g;s///g' > sample_file
Now if the table passed in the my_query.sql is wrong or there is some other error insied SQL how i can caputure that
i tried
More... (1 Reply)
Discussion started by: max_hammer
1 Replies
8. Shell Programming and Scripting
I wrote a script to capture some rows from the DB.
However I want to capture the errors if the DB instance is down which usually produces errors like below. What should be my approach to kill script if the DB instance is down:
DATABASE ERRORS:
Msg 937, Level 14, State 1:
Server... (2 Replies)
Discussion started by: moe458
2 Replies
9. Shell Programming and Scripting
I work on AIX 5.x.
I have a script which does lot of processing & calls multiple child scripts.
How do I capture the error of the parent script if it fails?
Thanks
Sumeet (3 Replies)
Discussion started by: sumeet
3 Replies
10. Shell Programming and Scripting
Hi folks a wee problem that requires some help.
I am writing a script that allows me to automate the changing of a password in sqlplus
the problem i encounter is that the code contains a case statement that allows the helpdesk to select whether to allow or deny access by switching the... (1 Reply)
Discussion started by: w33man
1 Replies
KUVERT_SUBMIT(1) User Commands KUVERT_SUBMIT(1)
NAME
kuvert_submit - MTA wrapper for mail submission to kuvert(1)
SYNOPSIS
kuvert_submit [sendmail-options] [recipients...]
DESCRIPTION
Kuvert_submit submits an email either directly to sendmail(8) or enqueues it for kuvert(1) for further processing. kuvert_submit should be
called by your MUA instead of your usual MTA to enable kuvert to intercept and process the outgoing mails. Please see your MUA's
documentation about how to override the MTA to be used.
Kuvert_submit transparently invokes "/usr/sbin/sendmail" directly if it cannot find a ~/.kuvert configuration file, or if the -bv option is
given. Otherwise, it enqueues the email in the queue directory specified in the configuration file. If that fails or if the configuration
file is invalid, kuvert_submit prints an error message to STDERR and terminates with exit code 1. On successful submission, kuvert_submit
terminates with exit code 0.
Kuvert_submit also logs messages to syslog with the facility "mail".
OPTIONS
If it runs the MTA directly then kuvert_submit passes all options through to /usr/sbin/sendmail. Otherwise, it ignores all options except
-f and -t (and -bv which triggers a direct sendmail pass-through).
-f <emailaddress>
Sets the envelope sender. Kuvert_submit passes this on to kuvert.
-t Tells an MTA to use the recipients in the mail instead of any commandline arguments. If -t is not given then kuvert_submit passes the
recipients from the commandline on to kuvert.
FILES
~/.kuvert
The configuration file read by kuvert and kuvert_submit. If not present, kuvert_submit calls /usr/sbin/sendmail directly.
~/.kuvert_queue
The default queue directory.
SEE ALSO
kuvert(1)
AUTHOR
Alexander Zangerl <az@snafu.priv.at>
COPYRIGHT AND LICENCE
copyright 1999-2008 Alexander Zangerl <az@snafu.priv.at>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
Mail 2009-03-16 KUVERT_SUBMIT(1)