SEARCH YOUR SOLUTION HERE  

need help with inherited script that emails files

This perl script goes through a list of files in IFILE and for each file, it sends it on to sendmail. Attachments need special handling and are signified in the email-file by having a line start with 3@ folowed by ...

Posted On: Monday 26th of November 2012 08:36:18 PM Total Views:  378
View Complete with Replies




Related Messages:

win32 advice needed forks threads or separate processes and pipes   (268 Views)
Hi all, Just wondered what the common consensus was on the best way to go for parallel processing on windows with perl/tk. It seems that threads and tk are at best unreliable, fork appears to have similar caveates. Basically i ...
Do you have the knowledge i need for my site?   (170 Views)
Dear developer, Do you often wonder who built a certain website and how it is done And who manages that website right now Strange, but developers usually stay anonymous while they should present themselfs to get more orders. We have ...
need help with perl api for Fedex shipping charge   (160 Views)
Hi Does any know any good perl modules can connect to Fedex system and retrieve the shipping charge. I work on a online shopping cart system and need above function
text input widget needed (with extras) (repost)   (162 Views)
[reposted - news server seems to have dropped article somewhere] I'm looking for a quick solution to what I thought would be a 5-minute problem. I need a multiline text input widget: Tk::TextUndo would do nicely, except I also need ...
I need to access foundry switch for execute command.   (146 Views)
I need to access foundry switch with script for execute commands. My login is: User Access Verification Please Enter Login Name: ***** Please Enter Password: User login successful. telnet@srjobkp01>en Password: telnet@srjobkp01# telnet@srjobkp01#conf t telnet@srjobkp01(config)# I need to create a script ...
for each unique value in a column find the max value..need perl script   (168 Views)
Below is my Input file:date mtime no size id day order 20100607 154538.354300 200 1 101510 1409870399320100607 154539.420000 200 1 101511 1409870399320100607 154538.398200 487 1 100888 1409870399420100607 154610.720000 487 1 91588 1409870399420100607 154538.401200 200 1 101502 1409870399520100607 154539.420000 200 1 101500 14098703995I need a perl code to get the foll o/p. For each unique order field, calculate the oldest mtime; and for each unique order field replace the day field by the oldest mtime. For example, the 1st 2 rows have the same order field=14098703993, for which the oldest mtime is 154538.354300 and hence we put this value into the day field. The output as below:Outputdate mtime no size id day order 20100607 154538.354300 200 1 154538.354300 1409870399320100607 154539.420000 200 1 154538.354300 1409870399320100607 154538.398200 487 1 154538.398200 1409870399420100607 154610.720000 487 1 154538.398200 1409870399420100607 154538.401200 200 1 154538.401200 1409870399520100607 154539.420000 200 1 154538.401200 14098703995Please help me with the code.. I have been trying for a long time now..
need most efficient way to write this code that checks zips...   (174 Views)
For comparing the data in the $zipField against all the zip codes in zipFile.txt, I would suggest reading through the text file and storing all the zip codes in a hash with some non-false value (so something other than undef or 0.) The check for a valid zip code would then consist of if (defined $hash{$zipField}).For the $addrField check, you're going to have to be careful. It's possible any house number with 5+ digits could, in theory, match a zip code. Once you sort out the house numbers problem, you could check any zip codes in $addrField against the hash you created from the text file.
unix perler needs win32 API perl snippet   (160 Views)
dear perl experts---I hope this is a request for a one-liner. I usually run linux or OSX, but I now am in need of automating some OCR on Windows. (The OCR vendors only sell affordable software on Windows in their ...
need help with regular expressions   (145 Views)
hi, i need the correct regular expression to set the unnamed variable $1 to any of "FantasyMFG", "Fantasy.NET", or "FantasyACC" in the following path: FantasyMFG/tags/2.1.16 (where "FantasyMFG" may be replaced with any of the others) this is for a system ...
I need to extract an array from a scalar regex-wise ?   (177 Views)
This is not a homework assignment. I'd be interested in more elegante' solutions than mine is all.. Let's say I want to extract all of the days of the week out of a scalar such as : $_ = 'We ...
ClassGraph widget - feedback needed   (245 Views)
I wrote a Perl/Tk - Widget which displays graphical representations of inheritance-trees for Perl-classes. There are two additional modules to display all function/method-Names defined in a Class and its parents and to show the source code of that methods. ...
I need your help   (315 Views)
Hi , I need a script which opens an Excel file (.xls), reads some of cells from the first row and prints them on a sheet of paper. Then it should do the same for the second row and print ...
Newbie needs basic help - JW69   (170 Views)
I feel like I have made some real progress on a web site that I have been working on, but now I am stuck with some basic stuff that both makes me feel stupid and pisses me off. If I ...
Perl newb in need of help with script.   (158 Views)
So this is probably a simple thing I'm missing, but then I just started working with perl tonight - and of course I bought the Camel book, and conveniently left it at work on my desk where it does me ...
insight needed: any way to have Java run a perl script..   (182 Views)
This is for a class assignment; all we have to do is make a XML-to-SQL converter with a GUI, which can run either on Win2k or Sun 8 systems (interchangably). My partner is writing the GUI in Java obviously, but ...
Re: newbie question about removing un needed extra lines   (144 Views)
Scott Taylor wrote: > > I've just started learning perl, and had two questions. One, what is > the best way to open a text file and remove all of the empty lines > Example: > > a@a.com > b@b.com ...
how to remove parentheses from a line in a file - need help!   (158 Views)
I have a line of text like this: m1 (d g s b) en (w=wdnfing l=l as=1e-20 ad=1e-20 ps=1e-20 pd=1e-20) I am reading-in the file in using $_ and I tried to do the following (without success): s/)//g; s/)//g; ...
Perl code explaination help needed!   (282 Views)
Can someone explain to me what this line of perl is doing. /(\S*)\.C$/; it is used in this function @list = `ls *.C`; foreach (@list) { chop; /(\S*)\.C$/; rename("$1.C", "$1.cc") || die "Can't rename $1 !\n"; Thank you. EM...
need help with "SerialPort" module   (127 Views)
I need to write a very simple RS232 script that sends a string (command) to my hardware, and receives the messages sent back for my hardware. I found the SerialPort_0.19 module However, I have not found much of documentation ...
Help needed programming a simple script   (156 Views)
Any help appreciated on a small perl project I need to write for educator/teaching purposes. I have not programmed perl for some time, need to get up to speed, maybe some kind souls hrere will help me on this project ...