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. chris01010

    PERL loop problem

    I have written the below PERL script to reprocess messages from a failure queue. It basically browses all the messages in the failure queue to individual files in a directory and then scans those files to determine the originating queue. The script will then move each message in turn from...
  2. chris01010

    PERL - pressEnter function hanging

    Of course!! Brilliant, makes perfect sense. Thanks.
  3. chris01010

    PERL - pressEnter function hanging

    thanks for the suggestion, but it still hangs. I can keep pressing enter and all it does is line feed down the terminal instead of returning to the main menu.
  4. chris01010

    PERL - pressEnter function hanging

    Hi, I have a sub function called pressEnter within my perl menu script which basically means that the script will await an interaction from the user before moving on. Unfortunately when the script goes into pressEnter it just hangs (even if you press enter!!). Any ideas on what could...
  5. chris01010

    Runing a function from Case Statement

    Hi, I have the below script that should take the command line option and run the desired script on another server. Only it doesn't seem to run the function, infact it just returns back to the command line. case $1 in 1) msgbacklog() ;; 2) jobstatus() ;; esac...
  6. chris01010

    PERL - Using regular expression to manipulate text

    Thanks feherke, That works! And yes you were right I did mean until 2692507 and not 64. If you have a moment though could you please explain to me why your syntax resulted in it to end at 2692507? Is it because even though I am "slurping" it still reads it line by line (as opposed to one...
  7. chris01010

    PERL - Using regular expression to manipulate text

    Hi, I have a PERL script which executes a script which interrogates a database on another server and produces an output file (an example of this is at the bottom). Of this file I only want a section of the data, from USER until the last number. I have written the code below but when run it...
  8. chris01010

    Perl - Help with a Menu script required

    Thanks for the post prex1, although a straight copy and paste of your code didn't work. Your suggestion did allow me to question the point of the loop and cut the size of the script down. It's probably just the way I worded it, but basically the reason why the script didn't exit was due to the...
  9. chris01010

    Perl - Help with a Menu script required

    Hi, I'm trying to wrtie a menu perl script which will allow users to connect to different servers from a management server without having to know the long server name. I have written the below code, but when I execute it I manage to get through the first 2 menus but it doesn't exit once...
  10. chris01010

    Selecting a substring from a column with another string as a reference

    Hi, I'm trying to select a substring within a column but using another string as the starting point. This is because the position of the string in the column may change. i.e. select substr(<column name>,<reference string>,3) from table; ABCDEFGHIJKLMNOPMSGNO123ABCDEFGHIJKL The refence...
  11. chris01010

    Quick query

    OK Ta. Thought I was missing something
  12. chris01010

    Quick query

    Just a quick question. What is the difference between executing a script command using ./usr/local/blah/blah/blah.ksh and /usr/local/blah/blah/blah.ksh Thanks Chris
  13. chris01010

    Ignoring delimiters when passing to variable

    Morning, i'm currently having trouble when passing a value into a variable from another file. I am currently using the below example: function Command { for command in `cat proclst.tmp` do set $command exec $command done } The line I am trying to pass has a space delimiter (and is...
  14. chris01010

    Variable in an IF statement

    Thanks for the post. I checked that earlier, but I missed the -n option. Thanks again Chris
  15. chris01010

    Variable in an IF statement

    Afternoon all, Trying to run an IF statement within a script in KSH. Basically I want it to check whether a variable has a value set or whether it is blank. I currently have the below, but needless to say it's not working. Can anyone spot where i'm going wrong? If [ $FILE != '' ] then...
  16. chris01010

    Problem with spacing in text out turn

    Hi guys, Just got the attached script to run, which basically sends an email to a recipitent when an error occurs, and unfortunately the output contains a space as below. Any ideas? Database reconciliation between Tandem and Unix has failed. Please see the attached file(s). You can...
  17. chris01010

    Problem with count in a loop

    Thanks. Shell scripting is quite unforgiving with regards to spacing!
  18. chris01010

    Problem with count in a loop

    When using a While flow, using an argument of count, the value of the variable $count is not incrementing but instead just displaying an output of 1+1+1.... i.e. Script: while [ $count -lt 10 ] do echo "$count" count=`expr $count+1` done Output: + [ 1 -lt 10 ] + echo 1 1 + + expr 1+1...
  19. chris01010

    User Validation (mulitple params to match)

    I hate Mondays! Cheers Clairvoyant1332

Part and Inventory Search

Back
Top