Search Results

Search: Posts Made By: crackthehit007
3,641
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,269
Posted By crackthehit007
wats difference between them.. explain in...
wats difference between them..
explain in detail with example
1,269
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
3,759
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
3,759
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,639
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,639
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,639
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,639
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,379
Posted By crackthehit007
code ==> output ==>
code ==>


output ==>
2,379
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 ?
3,509
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,104
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...
3,509
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?
3,509
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...
6,856
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...
6,856
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)
6,856
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...
6,856
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......
4,760
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...
4,760
Posted By crackthehit007
difference between pstree and pstree.x11
anyone knows?
both commands lies in /usr/bin
4,537
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,537
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,537
Posted By crackthehit007
Linux !!!
Linux !!!
4,537
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:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy