10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to write a shell script, which looks like
#!/usr/bin/env bash
#set -e
RED="`tput setaf 1`"
GREEN="`tput setaf 2`"
BLUE="`tput setaf 4`"
NORM="`tput sgr0`"
pushd ${MY_GIT_TOP}/body/Ue/test >/dev/null #MY_GIT_TOP is set my by gitenv
make test_trinity_svp
pushd... (8 Replies)
Discussion started by: Sekhar419
8 Replies
2. Shell Programming and Scripting
Hi scripting experts.
I have some coding challenges that I'm hoping you can help me out.
I have one file#1 that contains the following sql statement that spans over multiple lines:
sql Select /*+ use_has(a,b) */ *
from customer a,
customer_address b
where a.id = b.id... (1 Reply)
Discussion started by: pchang
1 Replies
3. UNIX for Dummies Questions & Answers
There are two Korn Shell scripts :
script_1.ksh ( located in /home/dir1 )
script_2.ksh ( located in /home/dir2 )
Content of script_2.ksh is
#!/usr/bin/ksh
echo "Hello world.."
The script_2.ksh is called from within script_1.ksh using the following command :
./home/dir2/script_2.ksh
but... (7 Replies)
Discussion started by: kumarjt
7 Replies
4. Shell Programming and Scripting
Hi Friends
I am new to the shell script and i have a script which will connect to server enviornment which will read a file and will FTP to an another server location. But while executing this script FTP transfer is not occuring. But when I enter in FTP mode I am able to transfer the file... (5 Replies)
Discussion started by: Kannannair
5 Replies
5. Shell Programming and Scripting
Hi,
I run the below commands manually without shellscript.
After that i enter one tuple contains some 4-5 fields .
sbc -p 40000 enq siOrInput
id parentid sybol avg quantity price
after entering the first command i pass the tuples to that command. It automatically... (0 Replies)
Discussion started by: aish11
0 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
Just looking for a simple if statement that searches for a substring within a varaible, and then performs some function.
Problem is that I need it to work in Korn shell
$var = *string* does not work in Korn
i="xxxxxx00.00yyyyy.zzzzz"
want to find 00.00 (2 Replies)
Discussion started by: jgrosecl
2 Replies
7. UNIX for Dummies Questions & Answers
is there a way to compare two files using diff (ex: diff 1.txt 2.txt) in an if statement?
I read that the exit status of diff is 0 if the files contain the same content. 1 if they're different. So what I am attempting is basically:
if ; then
echo "they're the same"
else
... (2 Replies)
Discussion started by: SoVi3t
2 Replies
8. Shell Programming and Scripting
Hi,
The following Korne Shell script does not give any syntax errors but the following while running. Request you to please let me know, how can I define the variables viz.:- listDbs and getkey here, inorder to remove the error.
1)
$ ksh -n setAlias
$
2)
$ ksh -x setAlias
+... (1 Reply)
Discussion started by: marconi
1 Replies
9. UNIX for Dummies Questions & Answers
Everything else seems to be working, but this isn't. Is it the "cat..." that is wrong of the condition? Thanks.
cat tc_result.txt | while read LINE
do
if
then
let "files_run += 1";
echo "inside the if loop"
# save current filetype
case $LINE... (5 Replies)
Discussion started by: brdholman
5 Replies
10. UNIX for Advanced & Expert Users
Hi,
Can anyone give me the explanation for the exit codes 1 and 127 returned from Korn shell.
Thanks in advance. (2 Replies)
Discussion started by: miltony
2 Replies