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!

Search results for query: *

  • Users: gotchausa
  • Content: Threads
  • Order by date
  1. 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...
  2. 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??
  3. 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???
  4. 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???
  5. 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?
  6. 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???
  7. 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;.
  8. gotchausa

    process control with Timer class

    I need to schedule a couple of tasks at different intervals. Would I need to create 2 separate TimerTask tasks to achieve this, each with its own run() method? Many thx.
  9. gotchausa

    pattern matching

    How do I use Java to search for files with a specific file name format: e.g X20030120-0000-0000-0000-0000_XXXX Thx.
  10. gotchausa

    command to display system info

    Is there a Solaris command to list out system info such as the CPU speed, memory size, hard disk capacity of a particular machine?
  11. gotchausa

    measuring thread and process creation time

    How do I go about writing a program to time the creation of a process and a thread? I need to be able to illustrate that the time to create a thread is less than that for a process - or vice versa.
  12. gotchausa

    mode/process switch time measurements

    Is there a way of using Unix scripting to measure the time taken to perform the following in Unix: 1. Mode switch 2. Process/Context switch
  13. gotchausa

    measuring process/thread creation time

    I need to write a couple of Unix scripts to measure the time to create a process and a thread in Unix. How may I go about this?
  14. gotchausa

    date add() does not return correct year

    I'm trying to do something like this: 1. Get today's date: lets say Jan 1, 2003 2. todayDate.add(Calendar.Date, -1); 3. The return output is: yy - 2003 mth - Jan dd - 31 I'm expecting the new date to be Dec 31, 2002. What went wrong?
  15. gotchausa

    run process within script to continually check for status

    Using ksh, how would I do the following within a script: 1. Check for existence of a file 2. If file exists, do some other tasks. At the same time as these tasks are being done, continually rpt step 1. As soon as step 1 detects that file does not exist, quit from script immediately. If and when...
  16. gotchausa

    check if environment variable is set

    How I do the following in Solaris: 1. Check to see of environ. variable $TAPE is set. 2. If it is not, then set it to /dev/rmt/0n 3. If it is set, then dont do anything.
  17. gotchausa

    tar only dirctories

    Is it possible to use 'tar' to only create an archive with directories - no files belonging to these dirs.? I basically only want to save the dir. structure without the files.
  18. gotchausa

    find command

    How I do find only directories (not files) that are soft links using the find command?
  19. gotchausa

    how to back up and restore soft links via cpio

    I need to be able to backup JUST the file system's directory structure (not files e.g only /usr /opt) via cpio and also to save a copy to a flat file. How do I deal with soft links? This is important since when I do the restore via cpio, I want to be able to recreate the directories and also...
  20. gotchausa

    return code for process

    I have a Unix script which invokes many other scripts in parallel in the background. Is there a way to find out the exit status for each of these other scripts? May be thru its PID?

Part and Inventory Search

Back
Top