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 Shaun E 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: westwood01
  • Content: Threads
  • Order by date
  1. westwood01

    running script in cron vs cmd line

    When I run the below script from the cmd line it works as expected. The script will accurately detect whether an ssh connection is available. But, when I put this same script in cron it fails every time, even when an ssh connection is available. Any ideas? Or possibly a better method to...
  2. westwood01

    case script cannot exit

    Below is an example of a case script I'm using. The script works as expected, except for the q (quit/exit) option; it won't exit. Actually the script does exit properly if I choose q before choosing any other option. Unlike if I choose 2, then try and q, it wont work. I believe it has...
  3. westwood01

    group lines in file by common field

    First off, this site is such an amazing resource. Thanks to you all. Suppose I have an input.file that looks like: homer: server1:/var/legato/rman/bin/ebuarch.PRTLDEV homer: server1:/var/legato/rman/bin/ebuarch.PRTLPROD homer: server1:/var/legato/rman/bin/ebuarch.PRTLQA homer...
  4. westwood01

    select statement - can multiple options be chosen?

    Below is a portion of a (ksh) case script. The way the menu works now is, via the select statement I can only choose one of the numbered options at a time. Is there a way to choose multiple options? For example, if I run the script and choose option 3, I will be presented with a list that...
  5. westwood01

    case script - read input and redirect

    Suppose I have a line numbered (error.dat) file that looks like: 1 : Jun 18 12:05:52 host: hostname1:/some/path/here/some.file 2 : Jun 18 12:05:52 host: hostname2:/some/path/here/some.file 3 : Jun 18 19:38:49 host: hostname3:/some/path/here/some.file And I have an (error.ksh) script that...
  6. westwood01

    forfiles utility assistance

    Below is what I have. This works well, but it is finding and renaming the file based on alpha/numeric order, not by timestamp. I would like it to find and rename by oldest timestamp regardless of filename. forfiles -p"P:\DATA\Corporate\Scripts\rename" -v -ma*.xml -d- -c"cmd /c ren @FILE...
  7. westwood01

    forfiles help

    Hello all. Looking for help using the forfiles command. Goal: To find and rename the 'oldest file only' in a given directory. I have the find and rename part down, but am having trouble identiying the oldest file by date/time. I imagine I will have to use the @FTIME and/or @FDATE. Thanks in...
  8. westwood01

    forfiles help

    Hello all. Looking for help using the forfiles command. Goal: To find and rename the 'oldest file only' in a given directory. I have the find and rename part down, but am having trouble identiying the oldest file by date/time. I imagine I will have to use the @FTIME and/or @FDATE. Thanks in...

Part and Inventory Search

Back
Top