Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gotchausa

    class loading help pls!!

    OK, I've been testing the problems are these: I have 2 packages X, Y. X contains classes 1,2,3,4,5 Y contains A. Class 1 = main class. It loads class A. Class A extends from Class 2 and also imports classes 3,4. Now I install package X under classpath /a/b/c. I place package Y under another...
  2. gotchausa

    class loading help pls!!

    The method exists in the class that the loaded class extends from...
  3. gotchausa

    class loading help pls!!

    I'm trying to implement dynamic class loading using: Class.forName(className, true, Thread.currentThread().getContextClassLoader()); Class A (which is a jar file residing in the /jre/lib/ext dir ) that I'm loading extends class B (which is packaged as a separate package with the main...
  4. gotchausa

    sun packaging patch

    Does anyone know how to change the $BASEDIR path within the patch script when the command patchadd is executed?
  5. gotchausa

    sun packaging patch

    Thx, I'll give it a try!
  6. gotchausa

    sun packaging patch

    Thx, this utility does do not do what I need. Where can I find info on how to write a SUN patch???
  7. gotchausa

    sun packaging patch

    I've a got a SUN package that uses a preremove script. Now I want to write a patch that overrides this script. How can I go about doing this??
  8. gotchausa

    how to export multiple variables

    All suggestions worked. Thanks a million!!
  9. gotchausa

    how to export multiple variables

    I have a bunch of variables set as: x=1 y=2 z=3 Then I export each one: export x export y export z Is there a neater way of doing this???
  10. gotchausa

    variable value not retained

    OK, it finally worked. Thx very much.
  11. gotchausa

    variable value not retained

    Thx, I tried that but still no luck.
  12. gotchausa

    variable value not retained

    I've got a .sh script that uses various functions within it. It looks something like this: x="text.sh $a" function run ( a=1 exec $x ) run When I run the script, the script complains that $a is empty. Why does the value of '1' not get passed when $x is executed???
  13. gotchausa

    variable name substitution

    Thx all. I've changed my script to use ksh instead...
  14. gotchausa

    variable name substitution

    !! Sorry, the syntax that works is: name=${role#$SERVER_PREFIX} not name=${role}#$SERVER_PREFIX}
  15. gotchausa

    variable name substitution

    I'm using ksh with the following script snippet: SERVER_PREFIX=&quot;Server:&quot; read role <someFile name=${role}#$SERVER_PREFIX} This works fine but when I run it in Bourne shell, I get an error.. 'bad subsitution' for the last line of script. Does anyone know what the correct syntax is?
  16. gotchausa

    how to maintain variable value set in while do loop - sh shell

    Thx. Thats works fine. However, when I do something like this.. x=0 while read each line do # SKIP BLANK LINES. y=`echo ${each_line} | wc -w` if [ $y != 0 ] then echo &quot;blah&quot; x=`expr $x + 1` fi done < /tmp/test.txt echo $x Now x should...
  17. gotchausa

    how to maintain variable value set in while do loop - sh shell

    Hi, I've got a Bourne .sh script that has a while do loop. Pseudo code as follows: x=0 while x<10 do echo x x=x+1 done echo &quot;last value of x is $x&quot; The last echo statement returns 0. Is there a way to get the value of x from the last invocation of the while loop i.e x=9???
  18. gotchausa

    reading .gz compressed files

    How do I read an xml file that has been compressed with Unix gzip? I tried using GZIPInputStream but I get errors relating to &quot;unsupported five or six byte UTF-8 sequence&quot;.
  19. gotchausa

    process control with Timer class

    I'm doing something like TimerTask a = new TimerTask(); run(){ ... } TimerTask b = new TimerTask(); run(){ ... } timer.schedule(a, ...) timer.schedule(b, ..) It seems to be working but I wonder if this is the correct and optimized way to code.

Part and Inventory Search

Back
Top