Search Results

Search: Posts Made By: dhananjaysk
6,982
Posted By dhananjaysk
Hi, From shell script 'A' I am calling...
Hi,

From shell script 'A' I am calling shell script 'B' by using ' nohup '.
e.g nohup B.sh

from 'B' I am calling shell scripts such as 'c' 'd' etc...
. C.sh
. D.sh

My...
6,982
Posted By dhananjaysk
I am not getting u..
I am not getting u..
6,982
Posted By dhananjaysk
Unix Oracle Otput problem
line_no=10
pro=TEST
{
echo "WHENEVER SQLERROR EXIT 1
set feedback off verify off pagesize 0
select x from tp_mquote where ct1=0; " | sqlplus -s/ /
} | while IFS=$(echo '\012\001') read LINE;...
2,414
Posted By dhananjaysk
Not working
NO ...man its not working at all
2,414
Posted By dhananjaysk
Writing to a file in different way
HI all,

If I have 3 lines in variables such as follows
x=Unix Forum
y=Interactive Forum
z=Unix Forum is Best Forum

Now I want to write these 3 lines in a file
so that that file will...
15,790
Posted By dhananjaysk
Please see the example
My script code as follows
--------------------------------------------
. database_checking.sh

echo "Database Name" $db_name
echo "set feed off verify off pagesize 0
select username...
15,790
Posted By dhananjaysk
Whats the meaning
Hi Abhishek,
Its working Thanks a lot..

I want to know what does it Imply when I invoke a shell script using
"." notation

i.e . B.sh
( does it mean to run the script in the current...
15,790
Posted By dhananjaysk
Passing Values from a shell script
Hi all

I want to know how to pass value from one shell script to another
suppose i have script named A.This 'A.sh' calls 'B.sh' .Now some calculations
are done by B.sh ..Say in variable X.
...
1,851
Posted By dhananjaysk
Date Manupulation
HI all,
I am relatively new to Unix Shell Scripts ...

I want to know how u can calculate the differnece between the 2 dates.

As if in Oracle by using SYSDATE u get current date and time .....
2,139
Posted By dhananjaysk
loop Problem
Hi all ,

I am having problem related to FOR loop

for i in [1..9]
do
echo $i
done

Noew the above code should give me result as
1
2
--- upto
9

But...
26,588
Posted By dhananjaysk
One Simplest Method
i=1
a=0
b=1
echo ${a},
while [ $i != 10 ]
do
b=`expr $a + $b`
echo ${b},
c=$a
a=$b
b=$c
i=`expr $i + 1`
done
3,208
Posted By dhananjaysk
Actual error was 1 more
Thanks for the help..

But the error in the script was:-
I should have used $1 $2 ...but instead was using $line_no etc.

also as per u export command was not needed at all while passing...
6,982
Posted By dhananjaysk
Excellent .... Thanks ..IT has worked.... ...
Excellent ....

Thanks ..IT has worked....
Thanks a lot ....

Thanks & Regards.
Dhananjay
6,982
Posted By dhananjaysk
One more problem
Many Many thanks for the help and it has worked...

I have one more problem....

Suppose my sql stmt is as follows:-

SELECT a, b, c, d, e, ,f ,g ,h FROM table;
Now I am sending the above...
6,982
Posted By dhananjaysk
Please help
My code is as follows

line_no=10
pro=TEST
{
echo "WHENEVER SQLERROR EXIT 1
set feedback off verify off pagesize 0
select x from tp_mquote where ct1=0; " | sqlplus -s/ /
} | while...
6,982
Posted By dhananjaysk
Hi , can u please interpret from while...
Hi ,

can u please interpret from while statement.
I am not getting IFS=$(echo '\012\001') read LINE ?

I tried it but its not giving the proper error msg...

Thanks...
3,208
Posted By dhananjaysk
shell script calling problem
Hi all,

I am calling one shell script from other ...as follow

---calling_proc---code
line_no=10
proc_name='test'
echo "set verify off feedback off pagesize 0
select count(*) from...
2,319
Posted By dhananjaysk
Unix Formatter
HI all,

Is their any UNIX shell script code formatter that work on windows ?
If so where can I get it ?

I want to format the shell scripts in with proper indentation etc...

Thanks...In...
95,436
Posted By dhananjaysk
try it out
To increment
echo enter the string
read str
str=`expr $str + 1`
echo $str


for integer
declare following in your script
typeset -i str
4,290
Posted By dhananjaysk
Whats the meaning of this code
Hi all,
I am unable interpret this code .........

nohup $OPSSHLPATH/mkt_sas_load_cic.sh $db_name $process_id $loc_mm > $OPSLSTPATH/mkt_sas_load_cic.out &

Thanks ....In advance
1
8,539
Posted By dhananjaysk
Concat
HI all,
How to concat two strings in Shell scrpits

suppose

x=a
y=b

i want to display it as
ab

How to do it ?

Thanks..
2
4,266
Posted By dhananjaysk
exit
Hi all,

I am confused about When and where to use exit 0 and exit 1 ...

Thanks
5,812
Posted By dhananjaysk
Try this
Hi ,

try this...program has not takes care of Blank characters

echo " Enter the File name"
read file
cnt=`wc -c < $file`
echo "Enter Character to be searched"
read char
ans=` cat $file |...
6,982
Posted By dhananjaysk
Unix Oracle
Through a shell script ...

I am invoking sql plus..

Code is as follows...

echo " set feedback off verify off pagesize 0
select column from table " | sqlplus -s/@dbname | read...
3,940
Posted By dhananjaysk
Thanks
Thanks Gaurav .......Thanks a lot
Showing results 1 to 25 of 32

 
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy