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 Mike Lewis 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: tar565
  • Order by date
  1. tar565

    Mail Body Issues.

    Hi, I am trying to parse a mail to get the body of a mail in the simplist way possible. I have tried Email::Simple but a hmtl tags are returned when I parse the mail which is no good. I have managed to get the body with no tags using MIME::Parser BUT I am having a few issues with it: (Note ...
  2. tar565

    Net:SMTP - cc & bcc not working?

    Had a mare with that also, so I use MIME::Lite and all worked fine. Works well for attachments also. my $msg = MIME::Lite->new ( From => $from_address, To => $to_address, Cc => $from_address, Subject => $subject, Type =>'multipart/mixed' ) or die "Error...
  3. tar565

    renaming zipped files.

    I am unzipping 2 logfiles from 2 different server. One file is name serverA.zip and the other server2.zip. However there is 1 file inside each which is always named by the date and both are the same (ie the file inside both zip files have the same name). How can I rename them to avoid a...
  4. tar565

    get contents of a whole file

    Sorry this is it. Do you mean read the contents of a file into a string. if so, # get list of messages from $Backup_Path directory local( *EM_DH, *FH, $/ ); opendir(EM_DH, $Backup_Path) or die "Cannot find directory $Backup_Path $!"; my @Files= readdir EM_DH; foreach (@Files){ #...
  5. tar565

    get contents of a whole file

    Does you mean read the contents of a file into a string. if so, # get list of messages from $Backup_Path directory local( *EM_DH, *FH, $/ ); opendir(EM_DH, $Backup_Path) or die "Cannot find directory $Backup_Path $!"; my @Files= readdir EM_DH; # loop through all messages sent in last 24...
  6. tar565

    XML query

    got it thanks for the help.
  7. tar565

    XML query

    ok i have found the following script. How can I upload an xml file called test.xml with it use LWP::UserAgent; use HTTP::Request; my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30, ); my @greeting = <>; #-- Read file containing XML struct to send my $data_to_send...
  8. tar565

    XML query

    Actually reading is not a problem I just want to upload it and get a response.
  9. tar565

    XML query

    I have never had to work with XML before and I am looking for a way to read an XML file post it to a url and read the response. Any help would be great as this is a complete new one for me
  10. tar565

    Sorting log files advice

    I have the 2 original files and both are based on the same machine time. However I cant use the sequential counter for the hash key as there is no guarantee the time and counter combo in file 1 will not be found in file 2. eg 12:15:32-1 could very well be in file 2 also.
  11. tar565

    Sorting log files advice

    I have a large daily log file created from merging 2 smaller log files. I need to sort the file by time. All of the fields are delimited by space. Originally I was thinking of using a hash with the Time as a key and the line as a value but I cant as not all the times are unique. Any ideas...
  12. tar565

    Print Question

    Thanks I am in another world today.
  13. tar565

    Print Question

    I am having one of those monday mornings!!!! Can some please tell me why the following 2 lines print the string with the array position at the begining of each line. eg 0Hello 1I am well 2How are you . . . I know it is simple but i cant see it. $FileString doesnt contain the index at all...
  14. tar565

    Cygwin & DBI

    I am trying to install DBD::MySQL but when I perl makefile.pl I get the following error: Can't exec "mysql_config": No such file or directory at makefile.pl line 7 Cannot find the file 'mysql_config'! Your execution PATH doesn't seem not contain the path to mysql_config. Resorting to guessed...
  15. tar565

    Cygwin & DBI

    I am using Cygwin and I have downloaded the lastest version of this module (DBI) which I wish to install: I type: perl makefile.pl make make test make install. When I run the script calling this module i get the following error. I have installed this module with ppm previously with no...
  16. tar565

    MIME::Parser

    I am using this module to get the body of a mail. When I execute the script below, 2 file are generated one html and one txt file. However both files are randomly named (it seems). I wish to specify the name of the .txt file and html files, (call them NewMsg.txt and NewMsg.html) respectively...
  17. tar565

    .msg parsing question.

    I have written a script which firstly removes the 'from' email address from a .msg file. I inherited this algorithm (well it was handed and told to code it) but it turns out it must search through an MDaemon backup folder containing a large amount of .msg files (100,000 +). The MDaemon set up is...
  18. tar565

    batch files

    So I should try : my $File = 'LogFile.bat'; @args = ($File); system(@args) == 0 or die "system @args failed: $?
  19. tar565

    batch files

    i have created a batch file and I now wish to run it from a perl script. How do I execute it? Can I do it with the system() command??? I am using windows.
  20. tar565

    Data::UUID

    CPAN the file is called Data-UUID-0.11.tar.gz. I have unzipped the file and placed the .pm file in the folder. I am on windows, I have tried ppm but it is not available.

Part and Inventory Search

Back
Top