Re: Mails should not go in SPAM Box

2007-04-12 Thread LoneWolf
Sounds like a combination of both. If your mail server is set up to allow internal sites to pass through with no checks, then you should be OK If you mail server checks everything, white list your internal domain If your mail server is not the culprit, check your email program and white-list thi

Maybe OT: Quantel DBI connector

2004-05-20 Thread LoneWolf
I need a way to access a Quantel Database on my other server. Does anyone know anything about connecting to one? Is there a module out there for it? Thanks, Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Replace ' ???

2004-04-27 Thread LoneWolf
I have a function and can't seem to get this figured out. I have apostrohe's in the file that I am pulling down, however I need to remove all of the apostrophe's from the file before putting the file into the system. $fields[0] =~ s/'//; The apostrophe character just needs to be removed and

Size checking?

2004-04-15 Thread LoneWolf
I have a perl script that FTPs a file down from another server, lately that file has been corrupt or missing entirely. What I need to do is check the file and see if it is greater then X number of bytes, if it is then it needs to use it, if not it needs to delete the file and use the previous days

Re: New to perl ...

2004-04-13 Thread LoneWolf
What you are seeking to do is essentially this: move the first file to a temp file: mv file1.ext /tmp/file1.ext move the second file to the first file: mv file2.ext file1.ext move the temp file to the second file: mv /tmp/file1.ext file2.ext You can do this with a system call for each of the move

HOT: Search/Replace || and *|

2004-04-02 Thread LoneWolf
I have a file that I need to replace the *| and || with just | and can not seem to get it to go. It either puts in an | every space, or it puts in multiples of them, how do I fix this? here's what I have: sub cleanup{ use strict; my $file = "/home/web/sales/info/test/custs1"; my $newfile = "/ho

bad code, needs work...

2004-02-10 Thread LoneWolf
Here's what I have, and I am sure there is a better way to do this... The problem I am getting is checking to see if one field matches the city, and if it does keeping it the same, however if it does not it needs to have a "1-" added to the front of that field... <-- CODE --> #!/usr/bin/perl -w

Script to parse files

2004-02-06 Thread LoneWolf
I've been working with this since wolf and jeff and john sent me some stuff, I think I actually based everything on wolf's code excerpts. I'm sure my final code is going to not be perfect, but at least I have the piece of mind of knowing that I can get this thing some better then it was. I'm stil

Script Kiddie issues

2004-02-06 Thread LoneWolf
Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a dozen files, and instead of my log files filling with their looks they are sent an iframe html page with a virus built in that formats their windows system. If they aren't running windows then it it

Re: Re: perl editors

2004-01-30 Thread LoneWolf
Nedit http://nedit.org/ Macros can be found here if they are not already there (nedit comes with a LOT of them already) http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=nedit HTH Robert >On Fri, 30 Jan 2004 08:32:02 -0700 Wiggins d Anconia <[EMAIL PROTECTED]> wrote. >> >> Is

get rid of whitespace around pipes??

2003-12-17 Thread LoneWolf
I am parsing a massive file line by line and cleaning it up. It has about 15 fields, all separated by | and I want to remove the white space from before and after the pipes so that as the information is parsed it gets rid of external white spaces from the string and such. Some fields are number

Re: Re: Matching/replacing

2003-11-12 Thread LoneWolf
Whoops, sorry. Name's Robert The problem even with doing redundent things is that the dedundency's didn't clean up the extra white spaces in each line. I glob in the whole file, bad, I know, but it's what I know and what works, it also gives no overhead on the server and the script takes less th

Matching/replacing

2003-11-12 Thread LoneWolf
I have to parse a big file and I do it line by line to keep stuff going correctly. I am at a point where I need it to go through and replace every " with inches and ' with feet, IF item in front of it is a digit (0-9). I have this written in the script to parse it: while ($line = ) { #

Re: Where is editor that will Indent my perl code?

2003-11-03 Thread LoneWolf
My personal choice is Nedit. I use it for the syntax highlighting as well. Robert >On Mon, 03 Nov 2003 11:27:33 -0800 (PST) Richard Heintze <[EMAIL PROTECTED]> wrote. >emacs and a number of other editors have the ability, >with a single key stroke to properly indent java code. > >However, since

Re: CPAN, perl, dependencies, apt-get?

2003-10-20 Thread LoneWolf
If you are root on your own system and have access to the command line do this: root>perl -MCPAN -e shell when it comes up to the shell put this in: o conf prerequisites_policy follow It will automagically go after the prerequisites for the current Module that you are installing. Robert >On M

RE: Excel/Word to HTML

2003-10-15 Thread LoneWolf
Making them to PDF is already done, PDF is done via GhostGum, Redmon, and Ghostview to make free Color PDF files that takes only the person telling it to print to a specific printer and then where to save the file. I wish it was that simple, but this is a requirement for them to be in HTML. I d

Excel/Word to HTML

2003-10-15 Thread LoneWolf
I'm looking for a script that I can cron to look in a directory and parse every M$ file into a straight HTML file, regardless of it being Wird, Excel, or Powerpoint. Are there any scripts currently out there that do this, or am I looking at having to build it? Side Note: How can I make a program

big switching...

2003-09-16 Thread LoneWolf
I have a 12 field 3000 line file (| delimited) and need to check the 7th entry of each line to see what it is, and based on that it needs to be written out to a file with a new entry in the 7th spot. I could do it with a few entries to check, but the permutation is of 253 different choices. Examp

CUt first and last line from a file (DATA)

2003-09-10 Thread LoneWolf
GARNOR|09/10/03 GARNOR|141023|BUDDY|Y54321|[EMAIL PROTECTED]|Y|Y GARNOR|141033|BUDD|Y5432|[EMAIL PROTECTED]|Y|Y GARNOR|141043|BUD|Y5432|[EMAIL PROTECTED]|Y|Y GARNOR|141053|BU|Y54|[EMAIL PROTECTED]|Y|Y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

CUt first and last line from a file

2003-09-10 Thread LoneWolf
I'm parsing every file in a directory, cutting whitespace out (per a previous request) and so far it is working great, but I have come across a couple of things: 1. I either need to cut the first and last line of each file or 2. I need to skip the line if one of the fields is empty. I have tried

uninitialized string concatenation?

2003-09-09 Thread LoneWolf
Ok, this has me bewildered. I have added some fields to a pipe-delimited file and added the keys to the switch to chomp each line correctly. I am using the same lines of code that I had before, but now when I run the script I get 'Use of uninitialized value in concatenation (.) or string at logs.

Fixed Problems... Thanks Everyone!

2003-09-04 Thread LoneWolf
John, thanks for the heads-up, I saw the errors and modified the lines. For anyone wanting to do this on their own system... sub cleanup{ use strict; my $dirname = "/home/data"; my $file; my $newfile; my $line; opendir (DIR, $dirname) or die "Can't o

Thanks and another quick Q, how to unconcatenate...

2003-09-04 Thread LoneWolf
Thanks for everyone's help with this one, I was stuck and knew I was missing something simple.. UGH. perldoc -q replace didn't turn me up with anything either, which was a bummer, but going off the code posted here I was able to do more with it. This is what I used:

Getting rid of white space...

2003-09-04 Thread LoneWolf
I have about 12 files that I am pulling for a SCO box to a RedHat box, FTP. THe files from the SCO box are poorly formatted with extraneous whitespace (sometimes as much as 30 or more) before and after the text. I need to parse all of the files I DL and put them into a new file with "_nice" added

Re: Re: union of times algorithm

2002-05-30 Thread LoneWolf
Shouldn't the answer be 12? >On 30 May 2002 12:41:45 - Felix Geerinckx <[EMAIL PROTECTED]> wrote. >on Thu, 30 May 2002 13:06:04 GMT, [EMAIL PROTECTED] (Janek >Schleicher) wrote: > >> Sorry, but 3 to 10 are 3,4,5,6,7,8,9,10 = 8 times >> and 15 to 20 are 15,16,17,18,19,20 = 6 times. >> So the

Re: Re: Perl script idea

2002-05-23 Thread LoneWolf
I have full control over the server, it sits @ my knee and I am root on it. :) I am wanting to secure it down (hence the reason to send the script an encrypted form of the pw) so that the other script runs and decrypts and matches the /etc/pass file for the logging in. My thought process is tha

Perl script idea

2002-05-23 Thread LoneWolf
I am wanting to write a script to handle a few things 1. decrypt an encrypted password 2. create new directory 3. put .htaccess file into the new directory 4. allow file upload and subsequent unzip of files into the new directory 5. email to admin of the creation and subsequent events The passwor

Re: stop the Madness

2002-05-16 Thread LoneWolf
HILARIOUS!! :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]