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 Chriss Miller 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: tbohon
  • Content: Threads
  • Order by date
  1. tbohon

    Calling mail_files script from Perl

    I am working on an AIX v5 box and the SAs are unwilling to load any of the 'cool' Perl modules for me. What I need to do is send files to customers using an existing script called mail_files (it can be found at http://personal.ecu.edu/spraguem/mail_files.txt Everything I've tried has failed...
  2. tbohon

    Merge Join Finishing before Previous Step

    We're fairly new to SSIS (SQL Server 2005) and, in our first team effort, we've run into a problem we just can't figure out. Two sources are sorted in two separate Sort operations, sent through a Merge Join to pull a facility code out of one file and insert it into the second one and the output...
  3. tbohon

    Removing Leading and Trailing ' " ' Characters

    I need to read through a text file and examine each line. If the leading and/or trailing character is a double-quote I need to truncate those characters. However, there are double-quotes within the line which are valid and can't be changed. I'm not looking for a solution, only some pointers -...
  4. tbohon

    Too Many Files to List with 'ls'

    I have a .ksh script on our AIX 5.x box which goes to a specific directory every hour and pulls the files to process and send to another server via ftp. However, when the number of files becomes large (tonight there were almost 6000 of them, other times there are zero or just a couple of dozen)...
  5. tbohon

    No ftp Connection

    I run a series of ftp scripts on an AIX box, connecting to both Unix and Windows servers for the drops. I'm occasionally having a problem with being unable to connect to the other server - 'ftp connection refused' type messages (although there are variations) - which, because the users aren't...
  6. tbohon

    Default Textbox Field

    Is there a way in HTML to specify that a certain field is the default and to give it focus when the page loads? I have a login screen and would like the user ID field to have focus with the cursor sitting there when the page loads --- but I'm unable to figure out how to do it (or even if it can...
  7. tbohon

    MySQL Query Problem

    As I don't know PHP or MySQL very well, I've been working through the text "Practical PHP and MySQL: Building 8 Dynamic Web Applications" this weekend. Everything was going well until I began working on the shopping cart application. Here is the code (which matches the book...
  8. tbohon

    PhP/MySQL Script Failure

    As I don't know PHP very well, I've been working through the text "Practical PHP and MySQL: Building 8 Dynamic Web Applications" this weekend. Everything was going well until I began working on the shopping cart application. Here is the code (which matches the book character-for-character) and...
  9. tbohon

    Select Files Based on Content

    I have a directory with 1000 or so files and need to copy only those containing the phrase Med Admin Rpt to another directory. This is a one-time, 'hurry up' thing and, of course, I'm under the gun. Any help/thoughts appreciated. Tnx. Tom (Note: similar post in Unix scripting forum -...
  10. tbohon

    Selecting Files based on content value

    I have a directory with perhaps 1000 files and I need to copy only those containing the value Med Admin Rpt to a different directory. Have tried several things and they aren't working - and, of course, the boss is asking me for my progress every 15 minutes. Help??? :-) Tnx. Tom "My mind is...
  11. tbohon

    Multiple FTP Connection Problem

    I have a requirement to pick up a group of files - exact number unknown but it can be anywhere from zero to 500+ for each run - via ftp. Since we have no way of knowing whether a file is still being generated (i.e., just the directory listing exists, no content) my plan is to process as...
  12. tbohon

    Directory 'Tree'

    I need to learn a new server's file trees quickly so would like to be able to see a 'tree' of the directories from my starting point to the bottom of the structure. Don't care about the contents, just the directory names with relative path info. System us HP Unix. Any thoughts? Tnx. Tom...
  13. tbohon

    Regex confuses me ...

    Environment is AIX v5.2 - standard installation of Perl, system engineers and corporate security refuse to allow me to add any additional modules beyond the basic, standard installation we currently have. With that out of the way, I was handed - literally on my way out the door today - a...
  14. tbohon

    Save .cgi File Instead of Running It

    After having read all of the 70+ posts here on this problem, making the changes suggested by various members and bouncing the Apache server I'm still not able to run a cgi script. When I click on a button to execute the script, instead of the script executing it comes up and asks if I want to...
  15. tbohon

    Regex Question

    I have a file which, besides the 'normal' <cr> characters at the end of each record, also contains some unwanted <cr> embedded in some (not all) of the messages. The only way I can identify these is that they occur after a <BR>, i.e., <BR>^M where the ^M is how the <cr> appears in the vi...
  16. tbohon

    Text Lines and Arrays

    I am trying to modify an HL7 (hospital interface data) file to copy a value from one segment into another. Unfortunately, the source segment follows the destination segment so none of the tricks I normally use are working. Here's the layout: MSH|.....| | | | |... PID|.x.x.x.x|aaaaaa|... ...
  17. tbohon

    Selecting Specific Records from a File

    I have a file - each record quite long - which starts out in the following general format: 07/11/2007 00:00:10|field2|07112007|field4|MSH|^~\&|SPC|O|IM|E| and I need to be able to select only records with an O in the indicated location - everything else to be ignored. I had thought that using...
  18. tbohon

    EOL Problems on a text file

    I have a file of approximately 300 records which seems to be missing the EOF marker and, try as I may, I can't get it added to the file. When I try to use vi (the only editor available on the AIX 5.x box) to edit the file, I receive the following: "fixed.er" [Last line is not complete] 1...
  19. tbohon

    Can't Open Files

    Have a requirement to open every file found in a specific directory, perform a simple substitution, and write it back out. Will do the output writing routine later but right now the routine below keeps dying when trying to open the first file in the array. I've checked and the files - there...
  20. tbohon

    Match and Select

    I have two files, one containing a key value (unique values, one per line) and the other containing records eacho of which contains one of the key values. There may not be any records in the second file for a particular key value and there could also be multiples. Key value file has been...

Part and Inventory Search

Back
Top