Re: Need help on setuid script.

2001-09-01 Thread Maxim Berlin
Hello Matthew, Thursday, August 30, 2001, Matthew Sorenson <[EMAIL PROTECTED]> wrote: [...] MS> I get the error: "Insecure dependency in kill while running setuid at MS> /dev/fd/3". MS> Is there something I can do to satisfy this security condition which will MS> allow perl to complete the acti

Re: adding element to array if a match found

2001-09-01 Thread Maxim Berlin
Hello Jeremy, Saturday, September 01, 2001, Jeremy Lomas <[EMAIL PROTECTED]> wrote: JL> I have a file that I'm reading into an array. The file will be 3 colon JL> delimited fields JL> field1:field2:field3 JL> I then read in another file that has an optional 4th field, and will be JL> noted by

Re: Reading backwards

2001-09-01 Thread Maxim Berlin
Hello Louis-Philippe, Friday, August 31, 2001, Louis-Philippe Dextraze <[EMAIL PROTECTED]> wrote: LPD> Hi everyone, LPD> I'm trying to read throu a 200meg+ error log LPD> file. (I have no administrative rights on this server, LPD> you see i'm just a programmer why would my boss think LPD

Re: Interpolating function call in here documents causes out-of-order execution

2001-09-01 Thread Maxim Berlin
Hello Yusuf, Thursday, August 30, 2001, Yusuf Goolamabbas <[EMAIL PROTECTED]> wrote: YG> The following test program YG> #!/usr/bin/perl YG> sub main() { YG> $key = 5 ; YG> print <<"TARGET" ; YG> Foobar YG> Snafu YG> ${\(interp($key))} YG> TARGET YG> } YG> sub interp { YG> my ($arg) = @_ ; YG

Re: OCTETSTR to HEX/DECIMAL equivalent....

2001-09-01 Thread Wes Hardaker
> On Thu, 16 Aug 2001 13:28:22 -0200, Hamish Whittal <[EMAIL PROTECTED]> said: Hamish> if ($var->[0] =~ /.1.3.6.1.4.1.18.3.1.2.1.27/ ) { # This is a hex time Hamish> of config creation on Wellfleet Hamish> print ("We need to change this to time date\n"); Hamish> } See the perl "unpack" funct

adding element to array if a match found

2001-09-01 Thread Jeremy Lomas
8-31 hello all... I just found this newsgroup today and a search through headers turned up nothing quite like this. Please tell me if this is possible and if so, how to go about it. I have a file that I'm reading into an array. The file will be 3 colon delimited fields field1:field2:field3 I

Reading backwards

2001-09-01 Thread Louis-Philippe Dextraze
Hi everyone, I'm trying to read throu a 200meg+ error log file. (I have no administrative rights on this server, you see i'm just a programmer why would my boss think i'd need access to a error log not as if it would make my life easyer or anything...ok this rant is over) I'm trying to re

RE: pipeing files to a script

2001-09-01 Thread Wilant, Michelle
First, just try printing to the screen. !#/usr/bin/perl print"\n"; To see exactly what/how it is getting there. Next, you'll want to start parsing the file. Not quite sure what you are trying to grep out of these files. But for example, if you have an order form and you want customer inform

Re: Attempt to Install DBI

2001-09-01 Thread Jarrod Overson
On Thu, 30 Aug 2001 13:09:45 -0500, Bockhoven, Pamala wrote: > Hello: > > After I successfully installed ActiveState's Perl 5.6.1 on a Windows 98 > platform, > I downloaded DBI-1.20.tar.gz from Symbolstone. I unzipped it and attempted > to install > several different ways with the follow

Interpolating function call in here documents causes out-of-order execution

2001-09-01 Thread Yusuf Goolamabbas
The following test program #!/usr/bin/perl sub main() { $key = 5 ; print <<"TARGET" ; Foobar Snafu ${\(interp($key))} TARGET } sub interp { my ($arg) = @_ ; print "Hello World, $arg \n" ; return; } main(); gives the following output -- Hello World 5 Foobar Snafu -- I am stumped at this o

Re: How To Integrate

2001-09-01 Thread Shlomo Yona
Satish wrote: > > I am a beginner to perl. > but i have woked in java. > now i would like to know how to intergrate these two Check out the following Perl modules: Write Perl classes in Java. http://search.cpan.org/search?dist=Inline-Java Perl extension for accessing a

RE: How To Integrate

2001-09-01 Thread Brent Dax
# -Original Message- # From: Satish [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, August 29, 2001 1:54 PM # To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] # Subject: How To Integrate # # # I am a beginner to perl. # but i have woked in java. # now i would like to know how to i

Need help on setuid script.

2001-09-01 Thread Matthew Sorenson
I am trying to write a perl script to kill off process as part of an automated monitoring/maintenance system. Unfortunately the processes to be managed are owned by an application user (appusr) different from the monitoring user (monusr). The following is the scenerio A process,"proc", is ru

Re: Beginners question....

2001-09-01 Thread Ask Bjoern Hansen
On Wed, 29 Aug 2001, Barkan, June wrote: > I would like how to work with Perl as a beginner . Where do I start? > > Thanks!! > > June %% Start comment Hi, This is a standard message. Please read the whole thing carefully and send a new mail mentioning that you already understood and tried e

Need help creating a setuid script.

2001-09-01 Thread Matthew Sorenson
I am trying to write a perl script to kill off process as part of an automated monitoring/maintenance system. Unfortunately the processes to be managed are owned by an application user (appusr) different from the monitoring user (monusr). The following is the scenerio A process,"proc", is ru

Re: Perl Daemons

2001-09-01 Thread Dwight Lemaire
Hi Daniel, Well you've certainly constructed a perpetual infinity loop ... the while(1) will make sure of this ... and so you have a runaway process .. but you know about ps -aux and displaying the PID from this command you can kill the process: kill -9 PID_NO

Formatting File date information

2001-09-01 Thread Mbedish
All, I am trying to write some portable code for listing files and directories on Unix and Win and possibly Mac. I want to get specifically the modification date of files into a format that can load into mySQL in -mm-dd format. (This will help me greatly with housekeeping.) I have looked

Another Module Install Question

2001-09-01 Thread Kevin der Kinderen
Ok - I'm really trying to understand the installation of perl modules using CPAN and manually. So far, the most consistent method I've been able to find is to use CPAN to "get" the module and then manually compile it in the .cpan/build directory. If I try to use CPAN to install I end up with a

Problems Installing Module - How To Troubleshoot

2001-09-01 Thread Kevin der Kinderen
I'm having a problem installing some modules where make test fails. I've got no clue how to troubleshoot them. As an example - when trying to install Net::Telnet these are the summarized results: $ perl Makefile.pl Checking if your kit is complete... Looks good Writing Makefile for Net::Telnet