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
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
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
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
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>
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
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
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
)) {
** 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>
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',
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]
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
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
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
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
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
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
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
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
?
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
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
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]>
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]>
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
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
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
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
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
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
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,
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
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
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>
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]
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
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
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
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
(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]
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
40 matches
Mail list logo