10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
is it possible to capture the 3 digit return code of ftp commands in a local variable inside a shell script?
ftp remoteserver << EOFTP
quote USER uid
quote PASS pass
in the above script, if cd ... (4 Replies)
Discussion started by: Little
2. Shell Programming and Scripting
I am executing database backup via shell script (Korn). The backup log is long, but I would like to capture only the last line so I can send an email if it fails
Example of failed backup (only last 3 lines)
BR0056I End of database backup: bejbofoh.aff 2012-07-26 07.31.21
BR0280I... (7 Replies)
Discussion started by: nimo
3. Shell Programming and Scripting
I have a process that copies files from a main storage server to main other servers. We are attempting to speed up the processing and have thought that the best method would be to use concurrent file copying.
What was suggested is that we change from using a simple RCP and waiting for it to... (3 Replies)
Discussion started by: dorrellg
4. Shell Programming and Scripting
My shell script will call a java component with some arguments , the java component returns a string value to the shell script. How to assign the return value to the shell variable.
Here is the sample code.
In my shell script i am calling the java as fallows.
--exporting... (1 Reply)
Discussion started by: rajeshorpu
5. Shell Programming and Scripting
Hey Folks and Gurus there
I am trying to replicate this logic in bash :
(1) if ; then
function1 parameters &
function2 parameters &
Is there an easy method esp one with regex that can do this comparision.
e.g. $var is compared to this list ( case regardless ) (... (1 Reply)
Discussion started by: sieger007
6. Shell Programming and Scripting
I have 2 files
******** (8 Replies)
Discussion started by: shekhar_v4
7. Shell Programming and Scripting
i have written a code to ftp a file from one server to other.The ftp is happeneing successfully,but i am not able to capture the return code,to check if ftp has failed.
plz help me to find out the return code....this is urgent
below is the code i have written... (3 Replies)
Discussion started by: anju
8. UNIX for Dummies Questions & Answers
Here is my program that is returning a DATE:
.export report file=$BTEQ_OUTPUT_FILE_$$
select cast(add_months(cast(substr(cast(max(closedate) as varchar(10)),1,8)||'01' as Date),1)-1 as timestamp(0)) from $db.repo... (2 Replies)
Discussion started by: mahek_bedi
9. Shell Programming and Scripting
I am using the following code in my shell script
list=`sqlplus -s $user/$pwd@$dbms<<EOF
WHENEVER SQLERROR EXIT SQL.SQLCODE
set pagesize 0 feedback off verify off heading off echo off
select * from control_tbl
ERROR=$?... (1 Reply)
Discussion started by: Vikas Sood
10. Shell Programming and Scripting
I try to test the carriage return in a variable.
$ LENGTH=`expr $VARIABLE : ".*"` will return the length of the variable. But this doesn't work if $VARIABLE has zero length.
Any help will be well appreciated.
Thanks in advance.
Giovanni (4 Replies)
Discussion started by: gio123bg