RE: use unix commands

2002-02-20 Thread Ken Clark
This is easy to manipulate, though as time has went by I've found that perl already can do what i try to do by using system commands. here's a quick example with backticks, though it is not the only way, or correct one dependent on your need. this would require fortune to be in your path ahead of

Re: Running the system command

2002-02-05 Thread KeN ClarK
perldoc -f "system" and it is system("command"); or you could use backticks as in: $now = "the time is now ".`date`; i bet someone will comment about the difference between using system and backticks (don't backticks capture the standard output?) -k And on 9:49am, Ned Cunningham jibba jabb

return # of minutes since 5:00pm Jan 18, 2002 in perl on linux box

2002-01-31 Thread KeN ClarK
subject fairly sums it up. If I use localtime to get what time it is right now how can I determine the number of minutes between a KNOWN moment, such as above, and say, at the time the script is run? So far I have nothing and am perplexed... _ http://quanti

Re: Is there a way to rsh (or remsh) in Perl?

2002-01-04 Thread KeN ClarK
search.cpan.org. it's wonderful. http://search.cpan.org/search?mode=module&query=rsh ken On Fri, 4 Jan 2002, Daryl J. Hoyt wrote: > I have several scripts that I would like to get data from several machines. > I have seen the ssl and telnet modules, but is there one for rsh. It has > been re

RE: C vs. Perl

2002-01-02 Thread KeN ClarK
would it be rude to ask ya'll to take this thread elsewhere. this list is so high-traffic already. if as a fledgling newbie i've overstepped any bounds, my apologies. tia, ken On Wed, 2 Jan 2002, Brett W. McCoy wrote: > On Wed, 2 Jan 2002, Maciejewski, Thomas wrote: > > > not to get flam

fixed! redirect to URL[linux,apache] (fwd)

2001-12-30 Thread KeN ClarK
828670 11:00pm up 10 days, 6:45 Asleep at the switch! I wasn't asleep! I was drunk! -- Homer Simpson Homer The Vigilante -- Forwarded message -- Date: Sun, 30 Dec 2001 21:25:24 -0500 (EST) From: KeN ClarK <[EMAIL PROTECTED]> To: [EMAI

redirect to URL[linux,apache]

2001-12-30 Thread KeN ClarK
1. I'm VERY new. 2. I have the Perl Cookbook & Learning Perl. 3. I can't figure this out, and searches on the web have only shown me MORE complicated methods w/multiple redirect options. WHERE I AM AT: apache shows errors below: [Sun Dec 30 20:42:40 2001] [error] (8)Exec format error: exec of

Re: Output to email

2001-12-28 Thread KeN ClarK
you have the option of searching via nntp or the web-based list for old messages at http://nntp.perl.org/group/perl.beginners/ of course, that's how i spend my time, since i'm very NEW, and hence don't know the answer to your ?... k On Fri, 28 Dec 2001, Lance Prais wrote: > > I am sorry I a

extract uptime for linux box w/perl

2001-12-19 Thread KeN ClarK
right now i do w | head -1 and get what's below my signature. I want to clean that up, cutting it after the # of users, so that everything after AND including the third comma is removed from that line. Then take that and add it to my signature script. i can either send it to a new file and c

capture song title

2001-11-16 Thread KeN ClarK
I want to capture the title of the current song I have running on my box through mpg123 and redirect it to a file. In this process, I don't want the /long/path/to/song but just the song.mp3. Is it possible to capture the song title this way? Ken _ [EMAIL PROTECTED]

RE: ugh. @INC

2001-11-15 Thread KeN ClarK
erfaces On Thu, 15 Nov 2001, Bob Showalter wrote: > > -Original Message- > > From: KeN ClarK [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 15, 2001 9:00 AM > > To: [EMAIL PROTECTED] > > Subject: ugh. @INC > > > > > > Recently I'

Re: ugh. @INC

2001-11-15 Thread KeN ClarK
Fortune's real live weird band names #656: Space Negroes On Thu, 15 Nov 2001 [EMAIL PROTECTED] wrote: > Do you know where the module has been installed to? > On Thu, Nov 15, 2001 at 08:59:43AM -0500, KeN ClarK shaped the electrons to read: > > Recently I've had problems w/all

ugh. @INC

2001-11-15 Thread KeN ClarK
Recently I've had problems w/all of my scripts (and attempts) failing with a "Can't locate _module.pm_name_ in @INC (@INC contains: /usr/lib... ... ) at nameofscript.pl line #. In example I am trying to make an html page of a directory that i've segregated certain mp3's. I am trying to use

Re: Off-Topic (200%) - Where are you from?

2001-11-09 Thread KeN ClarK
Athens, GA _ [EMAIL PROTECTED] http://quantifier.org _ There was a man who enjoyed playing golf, and could occasionallly put up with taking in a round with his wife. One time (with his wife along) he was having an extremely bad round. On the 12th

help with email submit

2001-07-21 Thread ken clark
Help. I am very new. I am using this script to create a guestbook entry; however I want it to ALSO email the results to me. I am willing to figure this out myself if someone can point me in the right direction. There are several late night comments included. Ignore those of course... Ken

from one problem to the next emumail...

2001-06-26 Thread KeN ClarK
SO I am closer to webmail. http://www.quantifier.org/emu/ will forward to the cgi script the way the index.html page tells it to. ALL of the directories are recursively set up in apache. Why does it serve the script itself like text? Do I need to define the type in the second line of the script? H

newbie prob/different flavor

2001-06-25 Thread KeN ClarK
I am using cyclonic webmail . apache is set to serve the directory. You get index listing @ http://www.quantifier.org/cyclonic/ and when I type quantifier.org/cyclonic/cyclonic.pl I get the text of the script itself. Now I would think Something needs to invoke the script. But what? This is how I i

perl to build html

2001-06-03 Thread KeN ClarK
I bought O'Reilly's PERL In A Nutshell last evening and have been lurking here for awhile. I'm curious if any answers exist for this question: I want to take mp3's in a directory and create html page with href links to these files. There are far too many of them to just create the page raw. Assur

Re: append a file to another file - copy

2001-06-01 Thread KeN ClarK
So anycrack could write to it prior to it being 'moved' right? And then you have non-world-writeable data under the premise it is untampered. What's the difference? Ken On Fri, 1 Jun 2001, Nichole Bialczyk wrote: > well, so the copy didn't work. it required me to place 'use File::Copy;' > in my

Re: MAIL::POP3

2001-06-01 Thread KeN ClarK
Fetchmail is working wonderfully, but I am going to give Mail::Audit a go. I appreciate everyone's advice. Ken On 1 Jun 2001, Piers Cawley wrote: > Paul Johnson <[EMAIL PROTECTED]> writes: > > > On Thu, May 31, 2001 at 08:58:40PM -0400, KeN ClarK wrote: > > >

MAIL::POP3

2001-05-31 Thread KeN ClarK
I haven't done much of anything yet. But of course figured out how fetchmail can do this and send it to my user locally. So that is working. BUT, if a perl script that is cron'd will use less resources, I'd prefer that. Plus, I need to learn Perl. It fails when it use Mail::POP3Client; because I

getting pop & forwarding it to local

2001-05-31 Thread KeN ClarK
Want to retrieve email from ISP pop server and view it locally. running sendmail. use PINE. Found module at CPAN but not sure it is what I want. MAIL::POP3Client was it. ANYone use this? Other ideas? I have tried it but had no luck. Not sure if I am barking up a wrong tree... As you see have pre

my own answer

2001-05-31 Thread KeN ClarK
post about whether syntax of snippet with mail data being correct--it is. I didn't read his mail but did change the script to send to me instead. It works!!! Thanks for everything else... Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ If

question

2001-05-31 Thread KeN ClarK
Acquired this script that will email data entered on form. Simple enough. Email does arrive but with what appeared as template information. So, I edited that part of the script. My question is (provided the rest of the script performs correctly) is the below snippet right? This is where the email