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 gkittelson 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. ravioli

    Purge Old Log Files

    Bong, I was able to use your method. Here is the final product. It figures out if files are older than 60 days and deletes them if they are (thanks again). Works great: package geacProcessPackage; import java.io.*; final class cleanArchive { static boolean cleanFiles(File directory...
  2. ravioli

    List Method

    Bong, This worked fine to compile thanks. The program is now doing what it should. Bradley
  3. ravioli

    List Method

    Hi All, I am using the following line of code: String[] children = directory.list(); It seems fine when I used it other places but I am getting an error on compile: C:\j2sdk1.4.2_11\bin>javac timeoutput.java timeoutput.java:4: cannot resolve symbol symbol : class io location: package java...
  4. ravioli

    Purge Old Log Files

    Bong, Let me look at this it might work just fine. I will let you know how it turns out. Bradley
  5. ravioli

    Purge Old Log Files

    Hello All, I want to purge all log files in a directory that are over 60 days old. Is there a Java class that will tell me how old a file is or perhaps a "created date?" I have been looking and can't find one. Hint I do have the YYYYMMDDHHMM as part of the file's name. Can I turn this into...
  6. ravioli

    Loop through positional variables

    So here is what I did: for p_par in $*; do echo $p_par done It worked great. This was just my test script for a more complicated process where I had to take action on each positional variable. It worked just as easily. Thank you, PHV and Jean Pierre. Bradley
  7. ravioli

    Loop through positional variables

    Jean Pierre, Does a for loop quit when it runs our of data? In this case p_par . I will have to look into this. Bradley
  8. ravioli

    Loop through positional variables

    PHV, Can one use "eval" within a [test condition] ? Bradley
  9. ravioli

    Loop through positional variables

    Hi All, I have a brain teaser. I am attempting to loop through a number of positional parameters but keep getting caught in an infinite loop. The input is : $ script_name (p_par_1) ...(p_par_n) The script I have: #!/usr/bin/ksh x=1 while [ -n $`$x` ] ; do #do while x is not null echo...
  10. ravioli

    Change delimiter

    Vlad, Thanks again, it worked great. I am working on a Solaris Box. Bradley
  11. ravioli

    Change delimiter

    Vlad, Thanks for your help. What is the difference between nawk and awk? Bradley
  12. ravioli

    Change delimiter

    Hello All, I am having trouble with what seems simple. I am trying to change the delimiters in a file using awk. The current delimiter is a tab and I would like to change it to a ":" (colon). I am on the Korn shell and have tried the following: awk -F: {print} filename and also: awk...
  13. ravioli

    Test for numerals

    Thanks Jean Pierre. I get a chance to revise the program later this week. I would rather do this correctly and I know that +([0-9]) is the correct test. I will let you know how it goes. Bradley
  14. ravioli

    Test for numerals

    Thank you stefan and aigles. I was using Korn so I tried to refine my code as in the aigles example. I can see this should work. But after much trying and frustration I went a differnt route: if [ $temp -ge 1 -a $temp -lt 100000 ] ; then echo "The number, $temp is...
  15. ravioli

    Test for numerals

    Hi All, I am having a little trouble with a Shell script I am writing. I would like to test input to see if it contains only numerals. I have already checked it for length, between 3 and 8 characters long. Let's say the the variable is called $value, how would I write the if statement? if [...
  16. ravioli

    syntax and semantic check

    That's hilarious! Bradley
  17. ravioli

    syntax and semantic check

    I think I am beginning to understand. Thank you Chipper and PHV! Bradley
  18. ravioli

    syntax and semantic check

    Does the shell perform a syntax and semantic check before commands are sent to the kernel? Bradley
  19. ravioli

    HELPPPPP!!!!!Run-time error '5 Invalid Procedure Call Or Argument

    no it all depends on the action on form A, based on some conditional checking on form A I will set the focus to Text1 or text2. Its how my forms are working, if the user selects adding items in form A then I will set the focus to Text1, if the user selects to retrieve an item from database in...

Part and Inventory Search

Back
Top