Fw: Fw: Virus alert

2001-08-22 Thread Bernhard
- Original Message - From: Ann-Louise Hill <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROT

Module to assist in printing to a dumb printer on a network

2001-08-22 Thread Darren Edgerton
Hi, i was wondering if there was perl module that would allow me to print to a serial printer that is attached to a cisco router Situation: i have a cisco router cs2511 which has 16 serial ports port 1 has a serial printer attached from my host i can telnet to the router and specify tcp port 2

RE: Module to assist in printing to a dumb printer on a network

2001-08-22 Thread Bob Showalter
> -Original Message- > From: Darren Edgerton [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 6:43 AM > To: [EMAIL PROTECTED] > Subject: Module to assist in printing to a dumb printer on a network > > > Hi, > > i was wondering if there was perl module that would allow me to

RE: Help request for backup perl script

2001-08-22 Thread Rogers, Gary (AP- Server Adminstrator)
exec() forks off a process and lets it run without caring about the return process. It's kinda like UPD, you can exec as many processes as you want and perl isn't too concerned with what happens with the processes. system() forks off a process and waits for it to finish. It's like TCP, it wants t

Capturing just one page of several pages

2001-08-22 Thread Tony A Pinto
Hi guys, I have a several page report that runs to disk everyday of which I need to capture information of only one page. There is no specific page number to identify this page but there is a distinct report subheading called "Daily Invoicing Totals" and this is the page in need to capture. Fo

RE: Help request for backup perl script

2001-08-22 Thread Bob Showalter
> -Original Message- > From: Rogers, Gary (AP- Server Adminstrator) > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 9:51 AM > To: 'Duston S. Horacek'; perl > Subject: RE: Help request for backup perl script > > > exec() forks off a process and lets it run without caring

RE: Capturing just one page of several pages

2001-08-22 Thread Rogers, Gary (AP- Server Adminstrator)
How about something like this? == # Path and name to report file. $file = 'path/to/file'; # open the file for reading. open (REPORT, "< $file"); # foreach line in the report. while () { # if we see 'REPORT TITLE' that's the beginning of a

RE: Capturing just one page of several pages

2001-08-22 Thread Bob Showalter
> -Original Message- > From: Tony A Pinto [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 10:01 AM > To: [EMAIL PROTECTED] > Subject: Capturing just one page of several pages > > > Hi guys, > I have a several page report that runs to disk everyday of > which I need to >

RE: Help request for backup perl script

2001-08-22 Thread Rogers, Gary (AP- Server Adminstrator)
Doh, you're right. Just like unix exec. I stand corrected. :) -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 8:02 AM To: '[EMAIL PROTECTED]' Subject: RE: Help request for backup perl script > -Original Message- > From: Rogers,

Searching for Particular XML Element Values???

2001-08-22 Thread David Simcik
Hey folks, I'm working on a simple app that doesn't allow for any true DB persistent storage/access of data. I only need a small amount of data access anyways, but I would like to structure it a bit via XML/DTD. What I'd REALLY like to do is have the ability to search the entire XML docume

RE: Capturing just one page of several pages

2001-08-22 Thread Tony A Pinto
Thanks for all those who replied all are doable solutions but I think i will stick to the online SED command... just perfect!! > -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 10:08 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Capt

How to reference env variables.

2001-08-22 Thread Kingsbury, Michael
When running a command such as : `ls -la /some/directory` there is an envirornment variable called !EXITCODE that I want to reference. I already have Use Env in place, but how do I keep perl from gagging on the bang in the variable name?? -mike -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Searching for Particular XML Element Values???

2001-08-22 Thread register
I assume you have write privellages for the directory (or else you would not be able to write the XML doc anyway) .. you can use dbm files ... lookup DB_File.pm and see the perldocs or check out chapter14 of the perl cookbook. There are more tools (i might be wrong but it does seem more logical) t

Tool to run a command

2001-08-22 Thread Messervy, Joe M
Hello, I hope someone can point me in the right direction. As a newbie I am just not sure where to go from here. I have a directory where I have several commands, I would like to create a script that reads the files, prints them out and allows the user to pick which one of the commands to run

RE: How to reference env variables.

2001-08-22 Thread Bob Showalter
> -Original Message- > From: Kingsbury, Michael [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 11:07 AM > To: '[EMAIL PROTECTED]' > Subject: How to reference env variables. > > > When running a command such as : > > `ls -la /some/directory` > > there is an envirornment

RE: Hash of structures not working in latest Perl build on Window s?

2001-08-22 Thread Ron Rohrssen
THANKS! That did work. Well, sort of Now there are errors in this: if (exists($AccumHash{$lclKey}) == 1) { #add data to existing structure in the hash } else { #create new struct and add to hash } The very first time that I hit this code (the hash is empty), the exists funct

Re: Tool to run a command

2001-08-22 Thread register
You dont really need to use a hash ... just read in the files and then push them onto an array as u print out the options ... then read in the option number and that will be the index of the array (remember to take the index starting from zero into account) On Wed, Aug 22, 2001 at 11:17:30AM -040

counting

2001-08-22 Thread webmaster
I have #!/usr/bin/perl $REPORT_file="report.htm"; $ imput_file=$ARGV[0]||'imput.dat'; unless (-e $imput_file) { die "$0: error:missing file: $imput_file"; } open (IN, $imput_file) or die "$0 : error: $imput_file: $!"; #print $imput_file; my $line; while ($line=) { chomp $line; print "proc

Re: counting

2001-08-22 Thread Troy Denkinger
On Wednesday 22 August 2001 11:58, webmaster wrote: > #!/usr/bin/perl > $REPORT_file="report.htm"; > $ imput_file=$ARGV[0]||'imput.dat'; > unless (-e $imput_file) > { > die "$0: error:missing file: $imput_file"; > } > open (IN, $imput_file) or die "$0 : error: $imput_file: $!"; All of this (

IE and HTTP_REFERER; and a Perl test

2001-08-22 Thread Mike Breeze
Hi all, My first question is a little off the beaten track. I'm writing some web counter software at the moment. Basically I use Javascript to embed the following into a html page: