Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets
Bewarse Talk Discussion Board * Archives - 2011 * Cine Talk - Reviews, Gossips, Insider Info etc. * Archive through December 12, 2011 * What is wrong with this Unix statement < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18188
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:38 pm:    Edit Post Delete Post View Post/Check IP


Switchblade:

ika dukanam moosesi weekend rest tesuko..




ekkada ba..pl/sql package lo fnd_file.put_line(fnd_file.output use chesthe adi concurrent program output lo ravatam ledu..adi fix cheyyali..adaipoyaka MD70 update cheyyali..next NACHA output generate chesthaniki inkoka pl/sql program rayali..chala work undi baa
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4843
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:30 pm:    Edit Post Delete Post View Post/Check IP

ika dukanam moosesi weekend rest tesuko..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18187
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:23 pm:    Edit Post Delete Post View Post/Check IP


Switchblade:




ya working :-) idi 2 days thinesindi...:-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4842
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:20 pm:    Edit Post Delete Post View Post/Check IP

wikipedia link iccha choodu shebang meda.. adhi chaduvu.

I think there is an explanation between using #!/bin/ksh and #! /bin/ksh

naku sarigga artham kaledhu aa explanation.. neeku emaina artham avuddi emo choodu.

but final ga work avutundi gaa.. enjoy
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18186
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:18 pm:    Edit Post Delete Post View Post/Check IP

yahoo...kummi dobbindi...Added extra code for some other functionality..everything is working good..thanks switch and indiaindo annailu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18185
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:14 pm:    Edit Post Delete Post View Post/Check IP

annai...comedy..I gave space between #! /bin/ksh everything worked good..
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18184
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:10 pm:    Edit Post Delete Post View Post/Check IP


Switchblade:

idi vadithe link nunchi panichestunda?




yes. shell script is running..called a package too..worked good..but giving error at this if statment
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4841
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:08 pm:    Edit Post Delete Post View Post/Check IP

####!/bin/ksh

idi vadithe link nunchi panichestunda?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18183
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 4:05 pm:    Edit Post Delete Post View Post/Check IP


Switchblade:

but nee env lo ekkado edo teda undi unnattu undi. ####!/bin/ksh idi nenu eppudu chodala.




:-( #!/bin/ksh isthe link create chesina danni apps program recognize cheyyatam ledu..


FND-CP-ESP: Child: exec:: No such file or directory


ani error vasthundi
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4840
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:57 pm:    Edit Post Delete Post View Post/Check IP

cool. file extension tho sambandham undakudadhu.

.sh or for that matter .anything should work

but nee env lo ekkado edo teda undi unnattu undi. ####!/bin/ksh idi nenu eppudu chodala.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18182
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:53 pm:    Edit Post Delete Post View Post/Check IP

thanks switch ba..nuvvu ichina script ni seperate .sh file ga create chesi execute chesthe work ayyindi.. nenu .prog file ga create chesi ln create chesa..so ekkado thanthundi...thanks baa for the help.
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4839
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:37 pm:    Edit Post Delete Post View Post/Check IP

http://en.wikipedia.org/wiki/Shebang_%28Unix%29

more info on #!
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4838
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:34 pm:    Edit Post Delete Post View Post/Check IP

#!/bin/ksh

#!
idi nee file execute cheyyataniki ye shell vadalo cheptundi..
/bin/ksh is the location of that shell to execute your script in
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18181
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:30 pm:    Edit Post Delete Post View Post/Check IP

#!/bin/ksh

deeni meaning enti? naa dantlo ippati varaku adi #####!/bin/ksh ani undi. If I make that as #!/bin/ksh then the link created was not found by the program..idedo theda ga undi..motham chostha aagandi mamalu
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18180
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:23 pm:    Edit Post Delete Post View Post/Check IP

anni try chesi chostha aagandi mamalu..
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4837
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:19 pm:    Edit Post Delete Post View Post/Check IP

#!/bin/ksh
ERROR_COUNT=120
echo $ERROR_COUNT
if [ $ERROR_COUNT -eq 0 ]
then
echo "No errors"
exit 0
else
echo "There are error records"
exit 1
fi

this is working perfectly fine in ksh

ante.. if loop condition lo problem ledhu
nee ERROR_COUNT variable assignment lone edo problem undi anipistandi
Top of pagePrevious messageNext messageBottom of page Link to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 30667
Registered: 03-2004
Posted From: 71.178.106.249

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:17 pm:    Edit Post Delete Post View Post/Check IP

inkoakti debug cheyyataniki just error_count ki oka number assign chesi choodu remvoing ERROR_COUNT=`sqlplus -s $LOGIN <<EOF
Don't use time or words carelessly. Neither can be retrieved.
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4836
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:14 pm:    Edit Post Delete Post View Post/Check IP

if [ $ERROR_COUNT -eq 0 ];

end lo semi colon petti choodu
Top of pagePrevious messageNext messageBottom of page Link to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 30666
Registered: 03-2004
Posted From: 71.178.106.249

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:10 pm:    Edit Post Delete Post View Post/Check IP

idhi try cheyyi :

ERROR_COUNT=`sqlplus -s $LOGIN <<EOF
set pagesize 0 linesize 999 feedback off verify off heading off echo off
SELECT COUNT(*)
FROM XXKE_EMP_BANK_DETL_STG
WHERE STATUS = 'ERROR'
/
EXIT
EOF`
echo $ERROR_COUNT
if [[ $ERROR_COUNT -eq 0 ]];
then
echo "No errors"
exit 0
else
echo "There are error records"
exit 1
fi
Don't use time or words carelessly. Neither can be retrieved.
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4835
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:09 pm:    Edit Post Delete Post View Post/Check IP

if loop condition lo curly braces teesesi choosava?
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4834
Registered: 10-2004
Posted From: 71.77.5.41

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:06 pm:    Edit Post Delete Post View Post/Check IP

echo $ERROR_COUNT

idi pani chestunda?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18179
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:03 pm:    Edit Post Delete Post View Post/Check IP

it is displaying the 3467 for echo $ERROR_COUNT and giving the error for the next statement
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18178
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 3:02 pm:    Edit Post Delete Post View Post/Check IP

ERROR_COUNT=`sqlplus -s $LOGIN <<EOF
set pagesize 0 linesize 999 feedback off verify off heading off echo off
SELECT COUNT(*)
FROM TABLE_NAME
WHERE STATUS = 'ERROR'
/
EXIT
EOF`
echo $ERROR_COUNT
if [ ${ERROR_COUNT} -eq 0 ]
then
echo "No errors"
exit 0
else
echo "There are error records"
exit 1
fi
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4833
Registered: 10-2004
Posted From: 166.137.13.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:56 pm:    Edit Post Delete Post View Post/Check IP

ekkado teda undi. koddiga script post cheyyi. maybe error misleading chestundi emo
Top of pagePrevious messageNext messageBottom of page Link to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 30665
Registered: 03-2004
Posted From: 71.178.106.249

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:56 pm:    Edit Post Delete Post View Post/Check IP

motham if statement pettu
Don't use time or words carelessly. Neither can be retrieved.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18177
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:48 pm:    Edit Post Delete Post View Post/Check IP


Switchblade:



Indiainfo:




rendu work avvaledu :-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Switchblade
Kurra Bewarse
Username: Switchblade

Post Number: 4832
Registered: 10-2004
Posted From: 166.137.13.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:37 pm:    Edit Post Delete Post View Post/Check IP

if [ $ERROR_COUNT -eq 0 ]
try cheyyi
Top of pagePrevious messageNext messageBottom of page Link to this message

Indiainfo
Celebrity Bewarse
Username: Indiainfo

Post Number: 30664
Registered: 03-2004
Posted From: 71.178.106.249

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:37 pm:    Edit Post Delete Post View Post/Check IP

hemu

${ERROR_COUNT} -eq 0 denni mothanni inko dantlo pettu []

i mean it should be

if [[${ERROR_COUNT} -eq 0]]
Don't use time or words carelessly. Neither can be retrieved.
Top of pagePrevious messageNext messageBottom of page Link to this message

Vusirikai
Pilla Bewarse
Username: Vusirikai

Post Number: 656
Registered: 10-2011
Posted From: 75.71.234.88

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:14 pm:    Edit Post Delete Post View Post/Check IP


Ravanabrahma:

16 X 7..30 days..6 months


eeelekkanaa met salary chustheee ... bagaa unde anukuntaa MOVIEART--jp.alage
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18172
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:07 pm:    Edit Post Delete Post View Post/Check IP

16 X 7..30 days..6 months MOVIEART--bemmi.abba
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18171
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:06 pm:    Edit Post Delete Post View Post/Check IP


Vusirikai:

saturday koodaa work chestuanraa meeruu ... met kastam pagavadeke kooda rakoodadu annaii




:-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Vusirikai
Pilla Bewarse
Username: Vusirikai

Post Number: 651
Registered: 10-2011
Posted From: 75.71.234.88

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:05 pm:    Edit Post Delete Post View Post/Check IP

saturday koodaa work chestuanraa meeruu ... met kastam pagavadeke kooda rakoodadu annaiiMOVIEART--chalayyachalu
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 18170
Registered: 06-2004
Posted From: 98.151.191.253

Rating: N/A
Votes: 0 (Vote!)

Posted on Saturday, December 10, 2011 - 2:02 pm:    Edit Post Delete Post View Post/Check IP

if [ ${ERROR_COUNT} -eq 0 ]

line 52: [: missing `]' ani error vasthundi :-( I am using ksh

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration