Re: using wrapsuid

2008-01-10 Thread Tim McGeary
Gunnar Hjalmarsson wrote: Tim McGeary wrote: I have a perl script that runs on the command line that I need run as a CGI on a webserver, but the system commands I'm using in the script require that I run it as a specific user and will not let the webserver user run them. I&#x

using wrapsuid

2008-01-10 Thread Tim McGeary
ut I can't find more information than just it is available. Can someone help me find documentation on how to use this effectively? Thanks, Tim -- Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Google Talk: timmcgeary -- To unsubscribe, e-mail: [EMAIL

Re: working with 3-dimensional array

2007-09-14 Thread Tim McGeary
for loops in the second major block. So I think I'm in good shape to debug the rest. Tim McGeary '99, '06G Senior Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Chris Charley wrote: - Original Message - From: ""Chris Charley"&q

working with 3-dimensional array

2007-09-13 Thread Tim McGeary
ys properly. This is my whole script below. Does anyone see what I'm doing wrong? Thanks, Tim -- Tim McGeary '99, '06G Senior Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] use strict; use warnings; our $marchead1 = '*** DOCUMENT BOUNDARY

separating list alphabetically

2005-01-17 Thread Tim McGeary
ology|URL1|URL2| Thanks, Tim -- Tim McGeary [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: pulling out "a","an", "the" from beginning of strings

2004-08-24 Thread Tim McGeary
Jose Alves de Castro wrote: On Tue, 2004-08-24 at 15:16, Tim McGeary wrote: Jose Alves de Castro wrote: On Tue, 2004-08-24 at 15:04, Tim McGeary wrote: I need to pull out articles "a", "an", and "the" from the beginning of title strings so that they sort properly i

Re: pulling out "a","an", "the" from beginning of strings

2004-08-24 Thread Tim McGeary
Jose Alves de Castro wrote: On Tue, 2004-08-24 at 15:04, Tim McGeary wrote: I need to pull out articles "a", "an", and "the" from the beginning of title strings so that they sort properly in MySQL. What is the best way to accomplish that if I have a single $scalar

pulling out "a","an", "the" from beginning of strings

2004-08-24 Thread Tim McGeary
I need to pull out articles "a", "an", and "the" from the beginning of title strings so that they sort properly in MySQL. What is the best way to accomplish that if I have a single $scalar with the whole title in it? Thanks, Tim -- Tim McGeary [EMAIL PROTECT

using data return from DBI SELECT statement

2004-08-16 Thread Tim McGeary
)) { ** NEED TO use each bib_database_id ****** how do I reference it? with $_ or something else? } Thanks, Tim -- Tim McGeary [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: checking all pieces of split data for NULL

2004-08-13 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: Jeff 'japhy' Pinyan wrote: my @field_names = qw( ID name_f name_l email id contact group member ); my %long_names; @[EMAIL PROTECTED] = ( 'ID', 'First Name', 'Last Name',

test

2004-08-12 Thread Tim McGeary
I haven't received anything from this list in a couple days. Just wanted to send a test. Tim -- Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Assuming

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Assuming

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: follow-up question: will this only be true if $item of @array is completely empty? This is the type of data for each $item of

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
this didn't go through the first time... resending... Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: follow-up question: will this only be true if $item of @array is completely empty? This is the type of data for each $item of @array: ID, name_f, name_l, email, id, contact, group, member I am splitting this by commas into

checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Thanks, Tim -- Tim McGeary Senior Library Systems Specialist Lehigh University

Re: finding out what is uninitialized

2004-08-04 Thread Tim McGeary
A little merging of this new sample file and my whole file and it works like a charm! Thank you all for teaching me some new tricks. I'm happier with perl now. :) Special thanks to Charles. Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROT

Re: finding out what is uninitialized

2004-08-04 Thread Tim McGeary
Thank you, Charles. I appreciate that! Just by reading through your re-write, I'm learning a bunch more! Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Charles K. Clarkson wrote: From: Tim McGeary <mailto:[EMAIL PROTECTED]> wrote

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
? Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Charles K. Clarkson wrote: Charles K. Clarkson <mailto:[EMAIL PROTECTED]> wrote: : From: Tim McGeary <mailto:[EMAIL PROTECTED]> wrote: : : : I am still having an error, though. Shou

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
I am still having an error, though. Should I send my full data file? It's a bit large. Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Charles K. Clarkson wrote: Tim McGeary <[EMAIL PROTECTED]> wrote: : The blank line was my mistake o

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
The blank line was my mistake of pulling a limited amount of data. There is no blank line at the end of my real data file. Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Charles K. Clarkson wrote: From: Tim McGeary <mailto:[EMAIL PROTECTED]>

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
Here are two sample data files and the full script minus a bunch of comments that aren't needed.. Thanks, Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Charles K. Clarkson wrote: From: Tim McGeary <mailto:[EMAIL PROTECTED]>

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
No, the warning statement is when I'm printing to the file. In both case, it refers to the process of writing to a file from the foreach $item (@fund_array) process. Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Gunnar Hjalmarsson wrote

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
Ok, here's the code that is pushing $cat_key, $title, $url, and $code into the @fund_array: @sirsi_array has a DB_key, a Title and "data" which is either a code or a URL, in such a manner: 101|Journal of Nature|PBIO| 101|Journal of Nature|http://www.nature.org/| 102|Journal of Crap|PBIO| 102|Jo

Re: finding out what is uninitialized

2004-08-03 Thread Tim McGeary
before it's push together into the array. This really bugs me. (no pun intended) Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Script Monkey wrote: Here is what I do for uninitialized variables: foreach $coded (@fund_array) { if (de

finding out what is uninitialized

2004-08-03 Thread Tim McGeary
ay) { printf (FILE "$coded\n"); } where the @fund_array is defined by : push(@fund_array,"$cat_key\|$title\|$url\|$code\|"); I can't for the life of my figure out why I am getting this error for only a handful. TIA, Tim -- Tim McGeary Senior Library Systems Speciali

Re: new window on redirect

2004-07-13 Thread Tim McGeary
Jan Eden wrote: Tim McGeary wrote on 13.07.2004: Wiggins d Anconia wrote: Sort of. What I don't understand is why do you have to decide on the server side, post-request that the result will be in a new window? Couldn't the original "portal" page just use targets like nor

Re: new window on redirect

2004-07-13 Thread Tim McGeary
Wiggins d Anconia wrote: Sort of. What I don't understand is why do you have to decide on the server side, post-request that the result will be in a new window? Couldn't the original "portal" page just use targets like normal? It's a database driven site and so, unfortunately, it is all server s

Re: new window on redirect

2004-07-13 Thread Tim McGeary
rmal? It's a database driven site and so, unfortunately, it is all server side, at least for this purpose. So are you telling me there's no real way in perl to do this? Tim Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] -- To unsubscribe,

Re: new window on redirect

2004-07-13 Thread Tim McGeary
ch they need to open other sites in order to compare for their research, etc. I am modifying current open sourced software that's already in place, though not yet in production mode for our users. Does that help explain why I need it? What would you suggest at this point? Thanks, Ti

new window on redirect

2004-07-13 Thread Tim McGeary
I want my web page redirect to open in a new window, as if I were putting "target=_new" in the html of the URL. How can I do that using CGI.pm's redirect? I have this: print $output->redirect($u) with $u being the URL I am redirecting, too. Thanks, Tim -- Tim McGeary [EMAIL

CPAN question

2004-01-20 Thread Tim McGeary
t. Thanks, Tim -- Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

date

2003-07-21 Thread Tim McGeary
Is there anyway to get the date from the system in perl? Tim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

splitting an array into ???

2003-07-21 Thread Tim McGeary
I'm not sure the best way to split the fields of the array. I have 4 pipe-delimited fields in each line of the array. is it as simple as doing: foreach $item (@array) { my ($key, $title, $url, $code) = split /\|/; do other stuff; } -- Tim McGeary Senior Library Sy

dynanic declaration of arrays

2003-06-25 Thread Tim McGeary
Can I dynamically declare an array by doing something like: for (keys %codes_hash) { my @$_; { so that I have an array for each code in my hash that I can push data to whatever array is associated with the code that I searching on at that iteration? Tim -- Tim McGeary [EMAIL PROTECTED

Re: reading file into hash?

2003-06-24 Thread Tim McGeary
Yah - that didn't work. It still would have needed the chomp; Tim Paul Johnson wrote: Dan Muey said: my %codes_hash = (); Change this to my %codes_hash; the = () is adding an empty key/value Are you sure? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: reading file into hash?

2003-06-24 Thread Tim McGeary
This works great, except when I do: for (keys %codes_hash) { print "$_|$codes_hash{$_}\n"; } for my own confirmation, I'm getting a blank line in the printout. I re-checked my config file and made sure there was not an extra blank line at the end of the file. Do you have any ideas why it woul

reading file into hash?

2003-06-23 Thread Tim McGeary
(hash ?) so that I can: a.) use the alpha codes to sort out data from another file b.) organize that data to later include that unique number. The end result will be 2 files: 1.) list # (chronological # from the list) | unique code # 2.) list # | data Tim -- Tim McGeary [EMAIL PROTECTED]

checking a reg exp

2003-06-16 Thread Tim McGeary
get those files with PBIO. Now, a secondary problem, which I also haven't figured out is how do I get only those lines that have a code between two pipes and not lines that also happen to have a code that can be used in a word (e.g. PART or PACT)? Is there an easier way for me to do this? Tha