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 Wanet Telecoms Ltd 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: cnw40007
  • Content: Threads
  • Order by date
  1. cnw40007

    open a file from a directory

    Hi, I was wondering could anybody show me how i would open a number of files from a directory.Each file begins with qfh and then a series of different numbers and letters. My code below prints out the specified files but i need to open them to search for a certain word. Can you help me please...
  2. cnw40007

    save a mysql database

    hi is it possible to save a mysql database onto a floopy to use on another computer?If so how would i go about it?Thanks cnw40007
  3. cnw40007

    remove from an array to a temp file

    Ok this is my problem. I have a file which contains email header info.I have written code below to parse through it for the To: line off a spreadsheet of usernames.Once i get a match what i would like to do is move that particular header to another file.At the moment it just rewrites the entire...
  4. cnw40007

    email regular expression

    Hi below are 2 regexps that i have tried. Either are supposed to print out any email that has a number in the higher domain.There not giving me any errors but there not working either can anybody show me an easier way please. -- ([0-9a-zA-Z\.\-\_])+\@[0-9a-zA-Z\.\-]\.[\w]{4,5}[0-9]{1,})$/ ) --...
  5. cnw40007

    insert into database

    Hi my code below checks an email address of stored email address in a mysql database and if it isn't in the db insert it. The problem is it is inserting it but when i view the databse there is just a blank line but yet the row number has gone up. if( /^From...
  6. cnw40007

    delete from database

    Hi I have a mysql database with various email addresses.There are a number of blank rows that i want to get rid of. Ive tried delete from addsubj values ('',''); but nothing happens. Can anybody help me please. Thanks cnw40007
  7. cnw40007

    simple question

    Hello, How would i go about matching a word from a file and taking out the word and everything below it until it reaches a blank line and put it into another file in perl???
  8. cnw40007

    insert into database

    Hi I'm trying to enter values into a mysql databse from my webserver.My problem is that from the web server i can enter a value into the database, it tells you the value has been entered but when i check the databse it is not there. This is my code #!/usr/bin/perl use CGI qw(:standard); use...
  9. cnw40007

    comparing strings with spreadsheet

    Hi i have a spreadsheet with id numbers e.g acm1001 acm1002 .... acm4040. I also have a text file with various different id's aswell. How can i compare the two and if there is a match print it out.Im using the spreadsheet-parseexcel module but the examples that come with it are hard to...
  10. cnw40007

    simple question

    Hi is there a way of getting the username of an email address and print it out instead of printing the full email address using perl.This is my code but it prints out the full email address ... while(<HEADER>) { if(/To:([^\@]+)/) { print OUTPUT;} }
  11. cnw40007

    Need help with code

    Hi the code below is supposed to get the email address from the mbox compare it to a database with spam email address.If a match is found then relabel the subject line of the email message with subject:{SPAM}.But this is not the case. The program runs but nothing happens. Can anybody help me...
  12. cnw40007

    how to save a file

    Hi, Can anybody give me some sample code on how you would go about saving a text file into a folder??
  13. cnw40007

    Perl regular expressions

    Hi Im reletively new to perl and the use of regexp. I have an email address e.g To:cnw40007@somewhere.com. I want to be able to parse the cnw40007 part using regular expressions and print it out. At the moment i have open(FILE,'/cnw40007/mbox'); while (<FILE>) { if (/To:/(\w+)(\d){8}) {...
  14. cnw40007

    procmail and mqueue

    Hi I have a filter that checks all email from the mqueue and then puts the scanned email in another directory called mqueue.out . Is it possible to get procmail to look in the new directory instead of var/spool/mqueue to deliver the mail??Is it done in the sendmail.mc file?Can anybody help me...
  15. cnw40007

    can't connect to DBI

    I have written a perl script to search a database for a name.... On running the script I get an error saying, Can`t locate DBI.pm in @INC ( @INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005.) at...
  16. cnw40007

    perl filter with sendmail mqueue

    Hi I want to write a perl filter to filter all email from the sendmail mqueue. My problem is that i have no idea on how to go about this. Could anybody give me some sample code to extract the email from the mqueue?? Thanks cnw40007
  17. cnw40007

    sendmail configuration

    Hi, Would anybody know how to configure sendmail such that it has two LDA's. One that takes incoming mail and filters it(not procmail) and then sends the email back to sendmail where it will pass it on to the 2nd LDA for final delivery (procmail) Thanks a mill.
  18. cnw40007

    filtering email

    Hi I am reletivley new to perl. I want to be able to filter all incoming email for a network of users using sendmail as my mta for unknown users in the To: line of the header .Does anyone have any ideas on how i would do this??
  19. cnw40007

    .forward file

    hi i have written a simple email filter using mail audit.After i created a .forward file in my home directory i no longer recieved any emails. a typical error message looked like this the following address has permanent fatal errors &quot;|/bin/filter&quot; reason:service unavailable...

Part and Inventory Search

Back
Top