Search Results

Search: Posts Made By: crackthehit007
4,063
Posted By crackthehit007
How trap a signal in shell script?
Hi ,
i have a scenario where...i have to put a check where if script is executing more than 15mins i have to kill that script and n retry again 2nd time.

i this case i can use background...
1,406
Posted By crackthehit007
wats difference between them.. explain in...
wats difference between them..
explain in detail with example
1,406
Posted By crackthehit007
find problem
for index in `find /root -name *.jar | grep "/lib"`; do echo "$index"; done


sometimes its throwing error saying

find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...]...
Forum: Programming 09-29-2009
4,083
Posted By crackthehit007
yes. how shell script script will come to know...
yes.
how shell script script will come to know weather sql thing is executed properly or not ?

can we return variable from shell to java ?

i have sample code in above ..could u plz add up...
Forum: Programming 09-28-2009
4,083
Posted By crackthehit007
how to handle SQL exceptions to call script having args via java ?
Hi,

i want to call shell script via java + in that shell script i m doing some sql operation by connecting to sqlplus .

i want to return 0 if successful exeution of SQL operations else 1 ;
...
2,959
Posted By crackthehit007
@:/root !ksh mcs -p /usr/bin/sed ...
@:/root !ksh mcs -p /usr/bin/sed
/usr/bin/sed:

@(#)SunOS 5.10 Generic January 2005


VERSION: 11.10.0,REV=2005.01.21.15.53
2,959
Posted By crackthehit007
my bash doesnt support -i option :( ...
my bash doesnt support -i option :(

(:a;N;s/\n/ /;ta), could u please explain me this command in detail
thanks a lot
2,959
Posted By crackthehit007
most of u forgot tr command i have used in...
most of u forgot tr command i have used in expression !! :(

what to do with it ?

ps : it would be better if u explains the command too :)
2,959
Posted By crackthehit007
can we optimize this command
can we optimize this command ?

sed 's#AAAA##g' /study/i.txt | sed '1,2d' | tr -d '\n\' > /study/i1.txt;

as here i am using two files ...its overhead..can we optimise to use only 1 file

sed...
2,579
Posted By crackthehit007
code ==> output ==>
code ==>


output ==>
2,579
Posted By crackthehit007
trimming lines
hi have output as


i have trim of lines before CREATE statement and lins after last ")"


any idea how to achieve it ?
4,138
Posted By crackthehit007
ohk good...does it replaces EOF with ; ? does...
ohk good...does it replaces EOF with ; ?
does it means EOF does not exists in updated file ...then i cant read it right ?
8,328
Posted By crackthehit007
run shell script in java?
hi,
how to run shell script in java?

i have script a.sh which takes 1 argument as input and returns exit code integer.
how to handle it in java.
should i have to invoke process to execute it...
4,138
Posted By crackthehit007
just wanted to add ; at end of last line ! ...
just wanted to add ; at end of last line !

is it possible via shell script?
4,138
Posted By crackthehit007
how to add ; at the end of last line
hi,
i have file which is having large sql query
eg :




i am executing this sql file but now i want to add ; after query on same line
i.e. i should look like



any idea how to achieve...
7,305
Posted By crackthehit007
thats wat i want ...whichever is described...
thats wat i want ...whichever is described earlier...

btw we can put check for AA while searching n den replace...it will solve the problem isnt it :P ?

---------- Post updated at 01:37 AM...
7,305
Posted By crackthehit007
File : i want output as : if i...
File :


i want output as :


if i run ur command twice it should not effect the output. (keeping in mind..resultant file should be same as source file)
7,305
Posted By crackthehit007
no ....file contains multiple line of code... ...
no ....file contains multiple line of code...

but in SED solution i store the updated file at same location so if i run it twice.
i.e.
replace "java" with "java is language".

it wil screw up...
7,305
Posted By crackthehit007
how to Add word at specific location in line
eg .
i have file x.txt contains :
java coding , shell scriptting etc...


now i want to add "is langauge" after word java.

output should be
java is langauge coding , shell scriptting etc......
5,060
Posted By crackthehit007
other than this is there any significant...
other than this is there any significant difference in these two commmands?
like in functionality or it is just a link ?

one more doubt as it is soft link to pstree how the output is differ as...
5,060
Posted By crackthehit007
difference between pstree and pstree.x11
anyone knows?
both commands lies in /usr/bin
4,933
Posted By crackthehit007
there is default file system funda in Solaris...
there is default file system funda in Solaris thats why i am curious to know about it more...(which is UFS in solaris usually )
4,933
Posted By crackthehit007
yes i know it but those commands shows all the...
yes i know it but those commands shows all the file systems present in system. and i am not able to figure out which is "DEFAULT FILE SYSTEM"
4,933
Posted By crackthehit007
Linux !!!
Linux !!!
4,933
Posted By crackthehit007
Thats Strange ! isn't it? Are you sure on it?
Thats Strange !
isn't it?
Are you sure on it?
Showing results 1 to 25 of 68

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