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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gotchausa

  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?

Part and Inventory Search

Back
Top