mapping usernames in unix/windows

2003-08-29 Thread Gupta, Sharad
Hi Friends, Any suggestions on how one can map usernames between unix/windows machines. Eg: Administrator->root Any modules/thoughts??. -Sharad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl and tk

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 14:56, Thomas Browner wrote: > Can some one tell me where I can find a good how to on perl and tk. > Thomas, Good articles, and several Perl/Tk scripts/widgets and contributions can be found at perltk.org. Also there's a list for Perl/Tk at lists.perl.org. Hope this helps

Re: Cron jobs and perl

2003-08-29 Thread Oliver Schnarchendorf
On Wed, 20 Aug 2003 12:59:31 +1000, Vema Venkata wrote: > The problem still persisits pls. help/suggest me what to do ? How about testing your cron tab data with the cron2english perl script mentioned in the following article? http://use.perl.org/~TorgoX/journal/14037 /oliver/ -- To u

RE: Managing Pictures with Perl

2003-08-29 Thread Hanson, Rob
> What is the best library to handle pictures? Image::Magick is a great tool for creating thumbnails, it is both easy and the shrunk images still look good. http://search.cpan.org/author/JCRISTY/PerlMagick-5.57/Magick.pm If you are running the ActiveState version of Perl, be sure to get it from

Managing Pictures with Perl

2003-08-29 Thread Geraldo Milagre
Hi, I would like to write a program to manage my pictures colection and generate statics html pages for view the pics. I would like to use Perl to do this, as a way to learning more about the language. What resources from Perl do you suggest I to use? What is the best library to handle picture

Re: Cron jobs and perl

2003-08-29 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Vema Venkata wrote: > Hi Dan > > The problem still persisits pls. help/suggest me what to do ? Try comp.unix.admin -- Kevin Pfeiffer International University Bremen A: Because it messes up the order in which people normally read text. Q: Why is top-posting suc

Date::Calc Module Error

2003-08-29 Thread Scott Burks
Can ayone assist in figuring this one out, please. I have just installed perl 5.6.1 on our hpux server. It went in fine. I then installed (from source) the new Date::Calc module and it went in fine without errors. BUT, when I run one of our scripts (perf) that uses the Date::Calc functionalit

RE: how to return all rows selected in subroutine?

2003-08-29 Thread Hanson, Rob
I'll skip over most of your mail, and go right to the heart of the matter... > I am trying to return an array of > all records in the subroutine below. # # ...WARNING: UNTESTED CODE AHEAD... # sub getcols { # I prefer this over the ($table) syntax... # but it has the same end result my $t

how to return all rows selected in subroutine?

2003-08-29 Thread Johnson, Shaunn
Howdy: I am trying to return an array of all records in the subroutine below. I want to hold all of that info in one location so that I can use it (each row and each column of said row) later in a program. In the $sql part, I had the 'selectrow_array'; as was noted to me in another email, it re

RE: need help decompose word

2003-08-29 Thread Kevin Pfeiffer
Hi, In article <[EMAIL PROTECTED]>, Rob Hanson wrote: > Just to throw out another idea, you can also do this... > > my $name = "Anthony Bob"; > my @letters = grep {!/\s/} split('', $name); > > # to test > print "@letters"; > > It also looks like you wanted upper case. You can do that with thi

RE: module install

2003-08-29 Thread Rajesh Dorairajan
I don't know if someone already replied to this. I ran into this issue on Windows. I overcame it by editing the Makefile.PL and removing the entry PREREQ_PM from the hash and doing perl Makefile.PL (n)make (n)make install Try it out Rajesh -Original Message- From: Sylvain Masnada [mailt

RE: Testing for the existence of a file

2003-08-29 Thread perl
Sorry that this is ugly - I wrote it quickly one day... It checks for the file, and makes sure the date stamp is within 10 minutes. (Date::Manip was overkill for this). Who knows, I may have stolen this code from someone else -- nah...too ugly. #!/usr/bin/perl use File::stat; use Date::Manip; my

perl and tk

2003-08-29 Thread Thomas Browner
Can some one tell me where I can find a good how to on perl and tk. Thomas Browner Digidyne, Inc Technical Engineer (251)479-1637

Re: or operator

2003-08-29 Thread Rob Dixon
Nigel Peck wrote: > > In Perl can I say: > > if this = that or that or that > > instead of saying: > > if this = that or this = that or this = that No. What do you want? if ($this == $that) { : } elsif ($this == $that) { : } elsif ($this == $that) { : } else { : }

RE: Testing for the existence of a file

2003-08-29 Thread Kevin Struckhoff
Actually, using glob works easily enough: $file = glob "$DATA_HOME/KeyLinks\*.csv"; print $file; print "\n"; I now get as output: /warehouse/data/KeyLinks_082703_010101.csv Thanks. -Original Message- From: Robert J Taylor [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent

RE: Mod_Perl2 CGI.pm

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 13:54, Paul Kraus wrote: > That is how I built it. Apache 2 Mod_Perl2 and the current release of > mason as of this morning. > > My question is do I need to learn cgi.pm, should I not bother and get a > book on mod_perl because the info is redundant or not needed with > mod_p

RE: or operator

2003-08-29 Thread Paul Kraus
Typeo should be $my not #my -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 1:55 PM To: 'Nigel Peck - MIS Web Design'; [EMAIL PROTECTED] Subject: RE: or operator If ($my eq $this) || (#my eq $this2) { code; }else{ more code; }

RE: or operator

2003-08-29 Thread Paul Kraus
If ($my eq $this) || (#my eq $this2) { code; }else{ more code; } HTH -Original Message- From: Nigel Peck - MIS Web Design [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 1:50 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: or operator In Perl can I say: if

RE: HTML::Mason - Upload File

2003-08-29 Thread perl
Visit http://www.masonhq.com for Mason information, list archives, documentation, etc. -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 10:50 AM To: [EMAIL PROTECTED] Subject: HTML::Mason - Upload File I can't sub to the mason list. I get the c

RE: Mod_Perl2 CGI.pm

2003-08-29 Thread Paul Kraus
That is how I built it. Apache 2 Mod_Perl2 and the current release of mason as of this morning. My question is do I need to learn cgi.pm, should I not bother and get a book on mod_perl because the info is redundant or not needed with mod_perl. I am confused on how the pieces fit/work together. Pa

RE: Mod_Perl2 CGI.pm

2003-08-29 Thread perl
Mason, by default, uses mod_perl. (If you're using a handler, your using mod_perl). Mason _can_ run under CGI (or without a web server) but you have to intentionally deviate from the standard installation to do this. -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Frid

or operator

2003-08-29 Thread Nigel Peck - MIS Web Design
In Perl can I say: if this = that or that or that instead of saying: if this = that or this = that or this = that Cheers, Nigel Managing Director MIS Web Design http://www.miswebdesign.com/ Administrator AccessifyForum.com http://www.accessifyforum.com/ -- To unsubscribe, e-mail: [EMAIL PR

Re: Mod_Perl2 CGI.pm

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 13:43, Paul Kraus wrote: > Is mod_perl a replacement for CGI? > > If just getting involved with perl and the web (Not new to perl) what is > the better option mod_perl or cgi? > This is on an apache server. > > I choose mason thinking it was a replacement for both I know see

HTML::Mason - Upload File

2003-08-29 Thread Paul Kraus
I can't sub to the mason list. I get the confirm email and if I reply or send a blank message with confirm xxx in the body it just bounces.. Your message to mail.sourceforge.net was rejected. I said: RCPT To:<[EMAIL PROTECTED]> And mail.sourceforge.net [66.35.250.206] responded with

Mod_Perl2 CGI.pm

2003-08-29 Thread Paul Kraus
Is mod_perl a replacement for CGI? If just getting involved with perl and the web (Not new to perl) what is the better option mod_perl or cgi? This is on an apache server. I choose mason thinking it was a replacement for both I know see it is not. All though it is great!! But now I need to learn

RE: Testing for the existence of a file

2003-08-29 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Kevin Struckhoff wrote: > Using Perl 5.6.1 on HP-UX. > > I need to test for the existence of a file every day. The filename > changes each day because the filename contains a data and time stamp. > For example, today's filename is KeyLinks_082903_120712.csv. So I > would like to test for KeyLinks*

Testing for the existence of a file

2003-08-29 Thread Kevin Struckhoff
Using Perl 5.6.1 on HP-UX. I need to test for the existence of a file every day. The filename changes each day because the filename contains a data and time stamp. For example, today's filename is KeyLinks_082903_120712.csv. So I would like to test for KeyLinks*.csv My code is as follows: -

Re: HTML::Mason - Upload File

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 13:14, Paul Kraus wrote: > Can someone point me to some information on how to use mason to upload a > file to a webserver? > > We have an intranet setup and I am creating a page that will allow are > adv dept to send out are weekly newsletter/fax. > > The need to be able to

HTML::Mason - Upload File

2003-08-29 Thread Paul Kraus
Can someone point me to some information on how to use mason to upload a file to a webserver? We have an intranet setup and I am creating a page that will allow are adv dept to send out are weekly newsletter/fax. The need to be able to upload the faxlist and the postscript file. Once on the serve

Re: system call

2003-08-29 Thread John W. Krahn
Imtiaz Ahmad wrote: > > Hi- Hello, > Can someone please tell me how do I modify following line so that the result > gets stored in the var. > > $count = system("$command $archive_dir | $grep_command -c $string1") ; open PIPE, "$command $archive_dir |" or die "Cannot open pipe from $command: $

RE: Upload local file to server

2003-08-29 Thread wiggins
On Fri, 29 Aug 2003 11:13:24 -0500, "Whippo, Ryan K" <[EMAIL PROTECTED]> wrote: > Is there an easy way to upload a local file to a server? > There are lots of ways, FTP, scp, through a web browser, email, etc. Find out what the server supports f

RE: Upload local file to server

2003-08-29 Thread Akens, Anthony
FTP, NFS, Windows Shares, rcp, scp It's a pretty open-ended question, depends on what OS the server is running, what services, etc. Tony -Original Message- From: Whippo, Ryan K [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Upload loca

Re: Upload local file to server

2003-08-29 Thread Matthew Harrison
On Fri, Aug 29, 2003 at 11:13:24AM -0500, Whippo, Ryan K wrote: > Is there an easy way to upload a local file to a server? gonna need to know some stuff before i can help further: what operating system is your local machine/server? what protocol/software do you want to upload with? what sort of d

Upload local file to server

2003-08-29 Thread Whippo, Ryan K
Is there an easy way to upload a local file to a server? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: printing elements of an array

2003-08-29 Thread Alan C.
Joshua Lokken wrote: [ . . ] While your way is much easier and works well, I wonder why my original syntax did not produce the desired result? Your (next, below) original syntax does produce the desired result here (tested). Win32 Activestate Perl 5.61 build 633 #!perl print "Enter 5 of your fav

RE: system call

2003-08-29 Thread NYIMI Jose (BMB)
perldoc -q backticks José. -Original Message- From: Imtiaz Ahmad [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:48 PM To: [EMAIL PROTECTED] Subject: system call Hi- Can someone please tell me how do I modify following line so that the result gets stored in the var. $c

RE: Graphing/Plotting over time

2003-08-29 Thread NYIMI Jose (BMB)
Found interesting info from here : http://www.manning.com/getpage.html?project=verbruggen&filename=source.html Others are welcome :-) José. -Original Message- From: NYIMI Jose (BMB) Sent: Friday, August 29, 2003 10:44 AM To: K Old; Akens, Anthony Cc: [EMAIL PROTECTED] Subject: RE: Graph

RE: system call

2003-08-29 Thread Hanson, Rob
Use backticks. $result = `some command`; system() on the other hand returns the exit status code. $exit_code = system('some command'); ...Or... if (system('some command') != 0) { print "Failed!"; } Rob -Original Message- From: Imtiaz Ahmad [mailto:[EMAIL PROTECTED] Sent: Thursday

system call

2003-08-29 Thread Imtiaz Ahmad
Hi- Can someone please tell me how do I modify following line so that the result gets stored in the var. $count = system("$command $archive_dir | $grep_command -c $string1") ; thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DBI.pm

2003-08-29 Thread denis
On Fri, 29 Aug 2003, Sachin Mathur wrote: > Any suggesstion for the following error. > > Can't locate loadable object for module DBI in @INC (@INC contains: > /opt/perl/ActivePerl-5.6//lib /opt/perl/ActivePerl-5.6//lib/site_perl > /home/baalaji/proj1/ETA/auto/etafpgahw_test//scr/PerlLib/ > /u

RE: CPU time

2003-08-29 Thread Marcos . Rebelo
Thanks Bob Marcos -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 5:09 PM To: '[EMAIL PROTECTED]' Cc: [EMAIL PROTECTED] Subject: RE: CPU time [EMAIL PROTECTED] wrote: > Can somone hell? > > Please perldoc -f times > MArcos > > -Orig

RE: CPU time

2003-08-29 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Can somone hell? > > Please perldoc -f times > MArcos > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2003 12:11 PM > Cc: [EMAIL PROTECTED] > Subject: CPU time > > > It's possible to know the CPU time u

RE: CPU time

2003-08-29 Thread Marcos . Rebelo
Can somone hell? Please MArcos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 12:11 PM Cc: [EMAIL PROTECTED] Subject: CPU time It's possible to know the CPU time used in my process? It'd be good to give that value a the end of the scr

Re: -w vs. use warnings

2003-08-29 Thread Randal L. Schwartz
> "K" == K Old <[EMAIL PROTECTED]> writes: K> Randal Schwartz uses this: K> #!/usr/bin/perl -w K> use strict; K> $|++; K> Is there any difference between the -w and "use warnings" declaration? Compatability with 5.005. "use warnings" was added in 5.6, and my ISP ran 5.005 only

Re: foreach debate (was "Re: -w vs. use warnings")

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 08:21, David T-G wrote: > Kevin -- > > ...and then K Old said... > % > ... > % > % The posting a few weeks ago about "for" vs. "foreach" was interesting and got > % me thinking about warnings. > > That sounds really interesting; unfortunately I haven't kept up enough > to

Re: DBI.pm

2003-08-29 Thread Marius Roets
It is basically looking for the DBI module. DBI is a database independent Perl interface to databases, much like ODBC in the M$ environment. It means that in the program you are trying to run there is a "use DBI;", but Perl can't find the source file DBI.pm in the list of directories. This proba

RE: count tuples for Oracle?

2003-08-29 Thread Bob Showalter
Johnson, Shaunn wrote: > Howdy: > > With the PostgreSQL DBI, you can get a > number of tuples (with ntuples) from > some previously SQL query. > > For example, I have : > > [snip] > use Pg; Shaunn, that's not DBI. > ... > My question: Is there an Oracle version of 'ntuples'? > I don't see any

Re: DBI.pm

2003-08-29 Thread Matthew Harrison
you need to install DBI do # perl -MCPAN -e shell then at the cpan prompt do # install DBI and follow any instructions. On Fri, Aug 29, 2003 at 03:43:47PM +0530, Sachin Mathur wrote: > Any suggesstion for the following error. > > Can't locate loadable object for module DBI in @INC (@INC co

CPU time

2003-08-29 Thread Marcos . Rebelo
It's possible to know the CPU time used in my process? It'd be good to give that value a the end of the script? Thanks Marcos -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DBI.pm

2003-08-29 Thread Sachin Mathur
Any suggesstion for the following error. Can't locate loadable object for module DBI in @INC (@INC contains: /opt/perl/ActivePerl-5.6//lib /opt/perl/ActivePerl-5.6//lib/site_perl /home/baalaji/proj1/ETA/auto/etafpgahw_test//scr/PerlLib/ /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/pe

RE: Graphing/Plotting over time

2003-08-29 Thread NYIMI Jose (BMB)
Cool ! I was just dealing with following needs: * parse a text files on daily basis * put the result into database * buit a web application upon above database * provide the client a web form where he can choose which graph to see * on submit, connect to database, plot the graph and render it to

Ignoring include in /usr/include in favor of local

2003-08-29 Thread Reid Beels
I am attempting to use Image::Imlib2 for image manipulation and I have successfully built it and all of its dependancies. (It requires libImlib2 to be installed which, in turn, requires edb, libjpeg, libpng, and freetype) The problem that I am coming across now is that when Imlib2 tries to us

Re: Length() is bits/bytes or neither

2003-08-29 Thread zsdc
david wrote: Zsdc wrote: You're right, in every case the real counting is done by the CORE::length, which only needs a little hint in $^H. The bytes::length subroutine is actually just: { BEGIN { $^H |= 8 } CORE::length $_[0] } so you don't even need to use the bytes pragma at all. TMTOWTDI I

Re: Graphing/Plotting over time

2003-08-29 Thread K Old
On Wed, 2003-08-27 at 14:29, Akens, Anthony wrote: > Hello all, > > Just wanted to look into a "for fun" project, after a > recent project that wasn't much fun at all... Our > organization got hit by the blaster worm, which hit > many, many windows boxes. The *nix boxes (which I > manage) were o