Re: It works but is very messy

2014-12-08 Thread Harry Putnam
Harry Putnam writes: > sub usage{ ## It's been said that a HEREDOC would be better here. Probably >## true, but just curious why that would be the case >print " > Purpose: Find specific msgid's in procmail.log (including gzipped ones), > return > The interesting block of

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
From: Mumia W. [mailto:[EMAIL PROTECTED] >> Go into sudoers and replace the name of the binary with the name of a >> script that echoes the real and effective user and group ids. Thanks Mumia, and thanks to all who responded. As it turns out, I was able to resolve the problem by replacing '/bin

Re: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread Mumia W.
On 10/05/2006 07:10 PM, RICHARD FERNANDEZ wrote: From: Mumia W. [mailto:[EMAIL PROTECTED] Does the webserver have the proper permissions to invoke that sudo entry? AFAIK, yes. I don't think it would be asking for a password if it couldn't run the binary. It just doesn't seem to be pulling

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
-Original Message- From: Igor Sutton [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 8:17 PM To: RICHARD FERNANDEZ Cc: Beginners List Subject: Re: Can't get Sudo.pm to run my command but it works from a prompt > Looks like this may not, strictly speaking, be a Perl

Re: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread Igor Sutton
Looks like this may not, strictly speaking, be a Perl question any more, but can anyone point me in the right direction? I can definitely run things out of cgi-bin, otherwise I wouldn't have gotten this far. Most times, apache uses nobody or www user. Check if the user apache uses is mention

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
From: Mumia W. [mailto:[EMAIL PROTECTED] > Does the webserver have the proper permissions to invoke that sudo entry? AFAIK, yes. I don't think it would be asking for a password if it couldn't run the binary. It just doesn't seem to be pulling the right entry (webuser) out of the sudoers file,

Re: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread Mumia W.
On 10/05/2006 03:23 PM, RICHARD FERNANDEZ wrote: if the user has never signed in and the admin never ran passwd user passwd -f user and then that user never went into make his/her password permenant then yes it would matter b/c the passwd is not set. I've gone in and set a passwd for the u

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
> if the user has never signed in and the admin never ran > passwd user passwd -f user and then that user never went into > make his/her password permenant then yes it would matter b/c > the passwd is not set. > I've gone in and set a passwd for the user. Then I actually logged in as the user

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread Derek B. Smith
--- RICHARD FERNANDEZ <[EMAIL PROTECTED]> wrote: > > Did you edit the sudoers file using visudo -f > "file" > > Yes. > > > Show us the sudoers file using cat -etu "file". > > # cat -etu /usr/local/etc/sudoers > > /tmp/sudoers.richf > # less /tmp/sudoers.richf > # sudoers file. > # > # This file

RE: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
> Did you edit the sudoers file using visudo -f "file" Yes. > Show us the sudoers file using cat -etu "file". # cat -etu /usr/local/etc/sudoers > /tmp/sudoers.richf # less /tmp/sudoers.richf # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # User privilege specif

Re: Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread Derek B. Smith
t; In other words, it seems to be asking for a > password. However when I run > this from a regular prompt as the webserver user, it > works fine. > > I have a check for the UID in the script, and it's > the right one. I also > have NOPASSWD set in sudoers. > > Any help

Can't get Sudo.pm to run my command but it works from a prompt

2006-10-05 Thread RICHARD FERNANDEZ
following in the error_log: > output: > result: 256 STDOUT: STDERR: We trust you have received the usual lecture from the local System Administrator. It usually boils down to these two things: #1) Respect the privacy of others. #2) Think before you type. Password: RC: In ot

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread John W. Krahn
Script2 has just one line print "hello"; When I execute the script 1, it doesn't execute or find script2. It works fine, if I give complete path. Any idea, why its happening so.. ? any pointers to some documentation, how PERL_ROOT really works is also welcome. perldoc perl

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread Rathna N
gt; > > > 1.c:/script1 has below lines > > $ENV{PERL_ROOT} ='D:/'; > > open(fh,'perl script2.pl |'); > > $x=; > > close fh; > > print $x; > > > > 2. Script2 has just one line > > print "hello"; > > > &g

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread John W. Krahn
Rathna N wrote: Hi, Hello, I've a very basic question for clarification. 1.c:/script1 has below lines $ENV{PERL_ROOT} ='D:/'; open(fh,'perl script2.pl |'); $x=; close fh; print $x; 2. Script2 has just one line print "hello"; When I execute the script 1, it

PERL_ROOT - Need info how it works

2005-03-28 Thread Rathna N
Hi, I've a very basic question for clarification. 1.c:/script1 has below lines $ENV{PERL_ROOT} ='D:/'; open(fh,'perl script2.pl |'); $x=; close fh; print $x; 2. Script2 has just one line print "hello"; When I execute the script 1, it doesn't execute o

Re: It works!

2003-06-07 Thread Angel Gabriel
On Fri, 2003-06-06 at 23:44, Michael Tokarev wrote: > Paul Tremblay wrote: > > If this mail makes it through, my configuration works! > > ...which does not imply your configuration is correct, however... ;) > > /mjt > > > Good point! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: parsing a variable ----- THANK YOU LIST :) IT Works :)

2002-06-14 Thread Tucker, Ernie
Thank You Thank You Thank You I LOVE THIS MAILING LIST!!! Ernest P. Tucker II Network Technician "The organization that can't communicate can't change, and the corporation that can't change is dead." --Nido Qubein -Original Message- From: Bob Showalter [mailto:[EMAIL

Re: it works but is this right

2002-06-11 Thread Todd Wade
A Taylor wrote: > howdy all, > I was wondering if you could help me, I have a perl script that executes a > SQL statement: > > 'SELECT prop_rank FROM main ORDER BY prop_rank DESC' > > This returns many records but all i am interested in is the highest rank > hence the 'ORDER BY prop_rank DESC'.

Re: it works but is this right

2002-06-11 Thread A Taylor
thanks everyone - a lot of help and I have learned loads ;-) >SELECT MAX(prop_rank)... >"A Taylor" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > howdy all, > > I was wondering if you could help me, I have a perl script that executes >a > > SQL statement:

Re: it works but is this right

2002-06-11 Thread Michael Fowler
On Tue, Jun 11, 2002 at 05:49:53PM +, A Taylor wrote: > 'SELECT prop_rank FROM main ORDER BY prop_rank DESC' > > This returns many records but all i am interested in is the highest rank > hence the 'ORDER BY prop_rank DESC'. > I then retreive the highest rank like so: > > $rank = $sth1->fet

Re: it works but is this right

2002-06-11 Thread Dave K
Uh,... no (atleast IMHO) SELECT MAX(prop_rank)... would be a more efficient approach HTH "A Taylor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > howdy all, > I was wondering if you could help me, I have a perl script that executes a > SQL statement: > > 'SELE

Re: it works but is this right

2002-06-11 Thread Christopher Solomon
On Tue, 11 Jun 2002, A Taylor wrote: > > $rank = $sth1->fetchrow_array(); > > Now, my question is this: is this the right way to retreive just 1 record, > using fetchrow_array(); ??? or is there a more acceptable way. This does > work, its just the 'array()' part is making me a little uneasy. >

it works but is this right

2002-06-11 Thread A Taylor
howdy all, I was wondering if you could help me, I have a perl script that executes a SQL statement: 'SELECT prop_rank FROM main ORDER BY prop_rank DESC' This returns many records but all i am interested in is the highest rank hence the 'ORDER BY prop_rank DESC'. I then retreive the highest ra

Fwd: Net::Telnet - It works now, but why?

2001-07-24 Thread Terry Poperszky
Did a little more poking around and then changed the command starting on line 11 to read as follows: while ($report = <$t>) { print $report; } Now it works, but I am not sure why? What condition is keeping that while loop going? Is it the fact that the telnet session assigned to $t is

RE: It works but I dont get it...

2001-06-06 Thread Eduard Grinvald
ael Carmody [mailto:[EMAIL PROTECTED]] Sent: 06 e?iy 2001 a. 20:36 To: [EMAIL PROTECTED] Subject: It works but I dont get it... Been working on parsing a data file to create a ldif file for openldap. Managed to read everything in to an AoA Ok but printing the output ha sbeen a headache. Finally j

It works but I dont get it...

2001-06-06 Thread Michael Carmody
Been working on parsing a data file to create a ldif file for openldap. Managed to read everything in to an AoA Ok but printing the output ha sbeen a headache. Finally just copy and pasted from manual the print individual entry of AoA example, and of course it worked. But I don't understand wh