RE: Retry function?

2012-12-13 Thread Ned Cunningham
yes Thankx Ned -Original Message- From: Alvin Ramos [mailto:w...@theflux.net] Sent: Thursday, December 13, 2012 11:10 AM To: beginners@perl.org Subject: Retry function? Any one have any suggestions of a module/function/method to write a perl script to try pinging a server then after

Characters from encryption

2007-02-28 Thread Ned Cunningham
send it to a file it is fine. When I try to read it back I cannot get the character or beyond. I think this must be something simple , however I am stumped. Any suggestions on how to read all of the characters? Thankx Ned Cunningham POS Systems Development & Administra

RE: how to install perl

2004-05-06 Thread Ned Cunningham
It is advanced, environment, system variables on win2000 also :) HTH Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] "There are two ways of constructing a software design; one way is to make

RE: starting perl

2004-05-05 Thread Ned Cunningham
will need to change directory to it to run your script. Did you type in path and verify that c:\perl\bin\ is in the path? Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] "There are two ways of const

RE: starting perl

2004-05-05 Thread Ned Cunningham
It works Type in path at the prompt Look in it and make sure c:\perl\bin\ is in it ? If it isn't go to my computer and environment and add it. HTH Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROT

RE: Questions about game design in perl

2004-04-07 Thread Ned Cunningham
Hey don't go. Some times people get cranky. There are still a lot of smart people that are willing to help here. Just ignore the not so smart ones ;) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROT

Createing a email and placing it in Lotus Notes outbox

2004-03-29 Thread Ned Cunningham
Hi all. Can anyone tell me how to place an email in an outbox for Lotus Notes to deliver? I would like to include an attachment if possible. I have googled and not had any luck. Are there any modules for this? Any scripts? Thankx n Ned Cunningham POS Systems Development Monro Muffler Brake

RE: sort stdin and print

2004-03-18 Thread Ned Cunningham
Count } print "\n"; print "Total IP'S = $count\n"; HTH Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From:

RE: Changing directory and running a program

2004-02-25 Thread Ned Cunningham
In New York it is Point of Sale , also :) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED

Changing directory and running a program

2004-02-25 Thread Ned Cunningham
rogram needs to be run from its current location, but the path needs to be at the new directory? With the above code the directory is changed and the program run, however, the programs path is not set to the newly changed directory. Thankx Ned Cunningham POS Systems Development Monro Mu

RE: Program close

2004-02-10 Thread Ned Cunningham
Create a simple .bat file call the Perl script and add a pause command after it. :) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From

RE: Search Replace in multiple files

2004-02-06 Thread Ned Cunningham
Wouldn't it be better to not waste your time with this kind of response??? Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Char

RE: Using compression on Win32 systems

2004-02-05 Thread Ned Cunningham
Yes, I have looked and googled and searched aspn. Have not been able to find an example. Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From

Using compression on Win32 systems

2004-02-05 Thread Ned Cunningham
example. I even have the PDK msi, but can not seem to find any examples on that either. What would be the right way to do this? I have used a system command in the past, but have not have 100% success on the installation. Any examples or direction would be greatly appreciated Ned Cunningham POS

Backup scheme

2004-01-22 Thread Ned Cunningham
py("$dfile", "$ddfile") or warn; } I would like to increment each file as it gets a day older, then tuning the oldest file into a weekly file, the above does not work. Any ideas to get me on a BETTER path. Thankx Ned Cunningham POS Systems Development Monro Muff

RE: [OT] stop

2004-01-07 Thread Ned Cunningham
Yeah or taking the time to blame the users of the list. Happy New Year!!! Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Tim Johnson

RE: 1 doubt.

2003-12-10 Thread Ned Cunningham
It's a warning. If you turn it off you wont get it :) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Ajey Kulkarni [mailto:[

Change computername and IP address on WIN32

2003-11-24 Thread Ned Cunningham
Hello. I need to be able to rename a NT4 workstations computername and IP address remotely with Perl. Has any one a good starting point? Example scripts? Links? Thankx Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310

RE: how to send mail using Perl

2003-11-21 Thread Ned Cunningham
I would interest in this answer also. I have a similar script, however I had to include this line in the beginning to get it to dial. (`rasphone -d`); Not sure why? Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310

RE: Portability

2003-11-19 Thread Ned Cunningham
Yes use Tk module. Very involved learning curve. Perlapp from the Perl Development Kit creates as a default, a "stand alone" application. HTH Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL

RE: Capturing system call output value

2003-11-14 Thread Ned Cunningham
Chomp Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday

RE: Adding a printer remotely

2003-11-11 Thread Ned Cunningham
It is local, and shared for the second system. Possibly I could change the driver But don't know how to to that yet either. Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROT

RE: Adding a printer remotely

2003-11-10 Thread Ned Cunningham
the WSH in Perl, but not examples. TIA Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED

Adding a printer remotely

2003-11-10 Thread Ned Cunningham
Hello, Does anyone know how to add a printer in Perl remotely on a NT 4 system? I have been googling for a while and found some info about WSH and cscript, but it doesn't work on NT. (or I haven't figured it out yet). Please advise any possibilities that you might have. Ned Cunn

RE: Visual Perl

2003-10-24 Thread Ned Cunningham
Oh cool. Sorry to ask more help, but I must. What module should I donwload? Tk does not come with the standard Active Perl load. If I make an executable with perlapp, would I need TK loaded on the target system? TIAA Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder

Visual Perl

2003-10-24 Thread Ned Cunningham
, in these type of programs. TIA Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Hide password in MS DOS

2003-09-02 Thread Ned Cunningham
lking through Dave Roth's WIN32 Perl programming in the section on console, so I thought I would give it a shot. Sorry if I mislead anyone, still a newbie:( Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL

RE: Hide password in MS DOS

2003-09-02 Thread Ned Cunningham
print "\ch \ch"; } next; } $Password .=$Data; print "*"; } print "\n $Password\n"; #note take out this print so it doesn't display to the user;) Ned Cunningham POS Systems Development Monro Muff

Input Regex (error checking)

2003-08-18 Thread Ned Cunningham
HI, What would be the best way to check for data integrity of an input? Chomp (my $ans=); #first make sure data is 6 digits make sure length is 6 Thankx Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL

RE: "HTH"

2003-07-24 Thread Ned Cunningham
tmtowtdi Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Parkway Rochester, New York 14615 (585) 647-6400 ext 310 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message- From: [EMAIL PROTECTED] [mai

Easy regex

2003-07-10 Thread Ned Cunningham
HI all. I am trying to verify that a field has only numbers 12345 13456 34x34 if it has non numbers I want to delete the non number with a zero? Snip $mil =~ s/[0-9]/$_/; this returns zero. Any help? Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Par

Binary file conversion

2003-06-24 Thread Ned Cunningham
HI all. I have what appears to be a C++ file set (i.e. phone.dat, phone.idx). My question is can Perl read these files and what modules do I need to do it. Any starting help would be great. Thankx Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Par

CHeck for valid numbers

2003-02-04 Thread Ned Cunningham
the 2c should fail? Any help? Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Parkway Rochester, New York 14615 (585) 647-6400 ext 310 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Portable Document Format Files

2002-11-08 Thread Ned Cunningham
Does anyone have any ideas on how to display PDF files? What modules to use? Are there any sample scripts? Thankx Ned Cunningham POS Systems Developer Monro Muffler Brake & Service 200 Holleder Parkway Rochester, New York 14615 (585) 647-6400 ext 310 [EMAIL PROTECTED] <mailto:ned.cun

Update from one access mdb to another?

2002-10-31 Thread Ned Cunningham
ata{CATALOGID}; $verb = $Data{VERSION}; $updb = $Data{UPDATELEVEL}; print "$catb $verb $updb \n"; ($db2->Sql("UPDATE Catversion SET VERSION = $verb, UPDATELEVEL = $updb&qu

RE: comparing two hashes

2002-10-16 Thread Ned Cunningham
How would you write to those 2 hashes??? -Original Message- From: Frank Wiles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 11:25 AM To: Egleton, Gary Cc: [EMAIL PROTECTED]

Regex exception

2002-07-09 Thread Ned Cunningham
HI all. A simple question. I need to use a system command to delete all files in a directory except one. Foobar.ldb Barfoo.ldb Raboof.ldb Keep.ldb I want to delete all except the keep.ldb and there could be various other files. I am trying to use this command Any help??? System("erase /f e:

RE: printf question

2002-07-01 Thread Ned Cunningham
The first one worked great thankyou -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 3:10 PM To: Nikola Janceski; 'Ned Cunningham'; '[

printf question

2002-07-01 Thread Ned Cunningham
Hi, Can anyone tell me how to print the following data so that it rounds up even though it shouldn't $data = "3.424"; Printf WRFILE ("%11.2f", $data); My results are 3.42 I need it to round up even if it is only .001 ? TIA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Update ODBC

2002-06-13 Thread Ned Cunningham
I am trying to update an Access database table field with a increment number. I cant seem to place the update piece in the right place. Is this the right path to take? Snip #!/usr/bin/perl use Win32::ODBC; $DSN = "KIDSN"; $Dir = "E:/kimcon/conv/"; $DBase = "Ki720.mdb"; $Driver = "Microsoft Acc

RE: Read a file into a Hash

2002-06-04 Thread Ned Cunningham
ile into a Hash how is the file laid out? -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 2:02 PM To: '[EMAIL PROTECTED]' Subject

Read a file into a Hash

2002-06-04 Thread Ned Cunningham
I am trying to traverse a file and match the key to a key in a second file... How do I put the file into the Hash??? %hash = "c:/file.txt"; I cant seem to find the magic here.. TIA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Select a record if exists in other file

2002-05-31 Thread Ned Cunningham
OK, Now I am trying to select only records that are in both files. I am trying to go through one file and then check if it is in the next. I am stumped? Snip open VEH, $veh or die "Cant open it :$!"; open CKEY, $ckey or die "Cant open it :$!"; open WRFILE, ">$wrfile"; while (defined ($line

RE: Printing all elements of an Array except the first?

2002-05-31 Thread Ned Cunningham
%9d",$newnum); print WRFILE ";", @data, ";"; print WRFILE "\n"; } -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:22 AM To: perl beginners

RE: Printing all elements of an Array except the first?

2002-05-31 Thread Ned Cunningham
: perl beginners Cc: Jonathan E. Paton Subject:Re: Printing all elements of an Array except the first? Jonathan, et al -- ...and then Jonathan E. Paton said... % % --- Ned Cunningham <[EM

Printing all elements of an Array except the first?

2002-05-31 Thread Ned Cunningham
Snip open CUST, $cust or die "Cant open it :$!"; open WRFILE, ">$wrfile"; while (defined ($line = )) { chomp $line; @data = split(/\|/,$line); $newnum=$newnum+1; printf WRFILE ("0%9d",$newnum); print WRFILE ";", @data, ";"; print WRFILE "\n"; } close CUST; close WRFILE; End I want to w

Selecting records from two files

2002-05-30 Thread Ned Cunningham
HI, I have to read through a file (customer) and then read through a second file (car) and find the corresponding records for each customer. I have tried to read it into a hash, but I am a little behind the curves on hashes. The trick is that I need to use the second delimited field in the custo

Regex a name field

2002-05-17 Thread Ned Cunningham
Can anyone give me a hand please? I have a file James T Nobel James T. Nobel, Jr. James and Kathy Nobel James T Nobel James T Nobel I am trying to replace the spaces with a single space My code so snippet is: $cuname = $data[53]; $newcuname = /" "+/" "/$cuname; But it isnt worki

Parse a name

2002-05-14 Thread Ned Cunningham
I have a file that has customers names in one of the fields. I would need to break the field into FIRST NAME, LAST NAME. The file is of course in different formats: Doug Smith Fran & Doug Smith Smith Associates Smith, Doug Doug A. Smith Jr. Sr. Fran Smith Any ideas on splitting this up?? TI

RE: Text file manipulation

2002-05-10 Thread Ned Cunningham
Could you add a variable that is incremented for each record??? -Original Message- From: Tanton Gibbs [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 3:31 PM To: Hughes, Andrew; [EMAIL PROTECTED]

PDK

2002-05-01 Thread Ned Cunningham
Anybody have any feed back on the Perl Development Kit??? Is it useful for a beginner? Any advise? Thankx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

File extensions

2002-04-30 Thread Ned Cunningham
Does anybody know what the .mst files are on AIX system? Is there a PERL modules to read them? Thankx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AdminMisc

2002-04-03 Thread Ned Cunningham
Does anyone know where I can get the AdminMisc extension? And what is the procedure to download it to a Nt machine? Thankx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

If statement

2002-03-29 Thread Ned Cunningham
HI, I am having a very newbie problem. I am reading an Access database with ODBC and have my data read into $Data{STATE} My problem is now I need to match to 16 different states. I have so far If ( $Data{STATE} eq "MA" ) Process data My question is should I use an array to test against an

RE: Checking Perl load

2002-02-15 Thread Ned Cunningham
To: 'Ned Cunningham'; '[EMAIL PROTECTED]' Subject:RE: Checking Perl load You can check to see if its in your path by typing "perl -v" at the command line, otherwise just use the search finc

Checking Perl load

2002-02-15 Thread Ned Cunningham
I would be looking for a way to test if perl is loaded on a NT machine. Does anyone have a quick answer or command line to do this? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Latest build of Perl

2002-02-15 Thread Ned Cunningham
I have Build 628 of PERL for NT. Is this the latest and greatest?? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Copy for Access Tables?

2002-02-08 Thread Ned Cunningham
I guess this means nobody knows anyway to do this??? -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:21 AM To: '[EMAIL PROTECTED]'

Copy for Access Tables?

2002-02-08 Thread Ned Cunningham
Hi, I have 2 tables in an Access mdb that I need to distribute to 500 remote sites. I would need to copy the tables into an existing mdb that does not have Access loaded on the system. Can this be done with PERL? Is there a way to copy the tables in a PERL script? Thankx -- To unsubscribe

Running the system command

2002-02-05 Thread Ned Cunningham
What is the proper and best way to use the system command??? System('command'); Or (system 'command'); Please help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

system command

2002-02-05 Thread Ned Cunningham
What is the proper and best way to use the system command??? System('command'); Or (system 'command'); Please help! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Checking if a file exists.

2002-02-04 Thread Ned Cunningham
Please help. I need to check if a files exists in the root of c. I would like to use if else to control the response. I have tried to check the file and verify $!, but it seems to give me a problem. Can anyone help? #!/usr/bin/perl $sysname = `hostname`; $nsname = substr($sysname,0,5); $

Display a message

2002-01-30 Thread Ned Cunningham
HI, I need to display a message to a NT screen. The PERL script will need to run from a shortcut that is set to run a bat file minimized, and in the bat file the PERL script is run. I have Win32:Console loaded but do not have TK or Message or Msgbox. Is there any code or a script available to