Re: Queue Suggestions?

2003-04-05 Thread Jeff Westman
Rob, I think you're right. I think the idea would be to have the server name next-to-be-processed append to the file, then the next step call a single separate script (start it if not already running, otherwise simpley "wait") that would lock the "control file", and this script would be the singl

Re: unix permissions

2003-04-05 Thread Wiggins d'Anconia
R. Joseph Newton wrote: [EMAIL PROTECTED] wrote: I'm writing a file browser script. I've learned about chmod and unix permission numbers and what they represent. But how do I determine the owner, group and other permission settings. Is there a perl module that makes this chore easy? Thanks Tr

GD under Win32 - PPM missing?

2003-04-05 Thread Seldo
Hello everyone - I'm fairly new to Perl, using Win32. I want to use perl to create some graphs on the fly of data in a table in mySQL. Not so hard, huh? A million people must have done this already. But the problem is, I can't seem to get GD, short of compiling the bugger myself, which I would rea

Re: unix && windows permissions

2003-04-05 Thread Motherofperls
Does windows use the chmod command in the same manner as unix

Re: unix permissions

2003-04-05 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > I'm writing a file browser script. I've learned about chmod and unix > permission numbers and what they represent. But how do I determine the > owner, group and other permission settings. > > Is there a perl module that makes this chore easy? > > Thanks > Tricia Ther

Re: unix permissions

2003-04-05 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: I'm writing a file browser script. I've learned about chmod and unix permission numbers and what they represent. But how do I determine the owner, group and other permission settings. Is there a perl module that makes this chore easy? perldoc -f stat perldoc -f chmo

Re: Php perl?

2003-04-05 Thread George Schlossnagle
On Saturday, April 5, 2003, at 04:07 PM, R. Joseph Newton wrote: George Schlossnagle wrote: ... Answering FUD FUD = ? Fear, Uncertainty and Doubt. Basically unsubstantiated comments used to discredit a (competing) product. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Php perl?

2003-04-05 Thread R. Joseph Newton
George Schlossnagle wrote: > ... Answering FUD FUD = ? Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

unix permissions

2003-04-05 Thread Motherofperls
I'm writing a file browser script. I've learned about chmod and unix permission numbers and what they represent. But how do I determine the owner, group and other permission settings. Is there a perl module that makes this chore easy? Thanks Tricia

Re: Php perl?

2003-04-05 Thread R. Joseph Newton
Elias Assmann wrote: > On Tue, Apr 01, 2003 at 10:42:57PM -0800, R. Joseph Newton wrote: > > > Neither language is strongly typed, as C, Java, or VB are. Although > > both are type-sensitive, they still restrict identifiers only by > > contaiment class. > > Could you elaborate on that? What do yo

Re: Queue Suggestions?

2003-04-05 Thread Rob Dixon
Jeff Westman wrote: > I'm posed with a problem, looking for suggestions for possible resolution. I > have a script that has many steps in it, including telnet & ftp sessions, > database unloads, and other routines. This script will run on a server, > accessing a remote server. This works fine.

Re: sendmail not working

2003-04-05 Thread R. Joseph Newton
mel awaisi wrote: > Hello, > > i have the script below retest.pl, and whe i try to run it i get nothing. > > [EMAIL PROTECTED] cgi-bin]# perl retest.pl > [EMAIL PROTECTED] cgi-bin]# > > -retest.pl > # Open Sendmail > open(MAIL, "|/usr/lib/sendmail -t"); > #

Re: sendmail not working script

2003-04-05 Thread Wiggins d'Anconia
mel awaisi wrote: Hi, this is the whole script: #!/usr/bin/perl use strict; use warnings; # Open Sendmail open(MAIL, "|/usr/lib/sendmail -t"); # Write to the sendmail program print MAIL "To: [EMAIL PROTECTED]"; print MAIL "From: [EMAIL PROTECTED]"; print MAIL "Subject:Yoour Subject\n\n"; print MA

Re: Queue Suggestions?

2003-04-05 Thread Wiggins d'Anconia
Jeff Westman wrote: I'm posed with a problem, looking for suggestions for possible resolution. I have a script that has many steps in it, including telnet & ftp sessions, database unloads, and other routines. This script will run on a server, accessing a remote server. This works fine. I will l

Re: Queue Suggestions?

2003-04-05 Thread Stefan Lidman
Hello, maybe you can use flock perldoc -f flock I have never used this and dont know if it works in your case. /Stefan > I'm posed with a problem, looking for suggestions for possible resolution. I > have a script that has many steps in it, including telnet & ftp sessions, > database unloads,

sendmail not working script

2003-04-05 Thread mel awaisi
Hi, this is the whole script: #!/usr/bin/perl use strict; use warnings; # Open Sendmail open(MAIL, "|/usr/lib/sendmail -t"); # Write to the sendmail program print MAIL "To: [EMAIL PROTECTED]"; print MAIL "From: [EMAIL PROTECTED]"; print MAIL "Subject:Yoour Subject\n\n"; print MAIL "Your messsage

sendmail not working

2003-04-05 Thread mel awaisi
Hello, i have the script below retest.pl, and whe i try to run it i get nothing. [EMAIL PROTECTED] cgi-bin]# perl retest.pl [EMAIL PROTECTED] cgi-bin]# -retest.pl # Open Sendmail open(MAIL, "|/usr/lib/sendmail -t"); # Write to the sendmail program print MAI

Queue Suggestions?

2003-04-05 Thread Jeff Westman
I'm posed with a problem, looking for suggestions for possible resolution. I have a script that has many steps in it, including telnet & ftp sessions, database unloads, and other routines. This script will run on a server, accessing a remote server. This works fine. I will likely have several d

Re: random sub returns same results...

2003-04-05 Thread Rob Dixon
Meriwether Lewis wrote: > Hi Gurus! > > I have the following sub which creates a random > string. Each time I call the sub in my perl > script it returns a random string which is fine. > The problem is every time I run the script the > same strings are returned. I'm running perl > 5.001 on Windows

Re: random sub returns same results...

2003-04-05 Thread Li Ngok Lam
perldoc -f srand - Original Message - From: "meriwether lewis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 05, 2003 10:09 AM Subject: random sub returns same results... > Hi Gurus! > > I have the following sub which creates a random > string. Each time I call the

Re: Help needed: Simple HASHES question

2003-04-05 Thread Ciprian Morar
sorry for the spam - my question has been answered Hotmail was filtering the discussion list. C 1. What is the difference between Line #1 and Line #2? 2. Why is the Line #2 declaration incorrect? use strict; my %option; $option {'q'} = new CGI; #Line 1- $option{'Mon'} = 'Monday

Help needed: Simple HASHES question

2003-04-05 Thread Ciprian Morar
1. What is the difference between Line #1 and Line #2? 2. Why is the Line #2 declaration incorrect? use strict; my %option; $option {'q'} = new CGI; #Line 1- $option{'Mon'} = 'Monday'; #Line 2 - $option->{'Tue'} = 'Tuesday'; print $option{'q'} -> header(), $

random sub returns same results...

2003-04-05 Thread meriwether lewis
Hi Gurus! I have the following sub which creates a random string. Each time I call the sub in my perl script it returns a random string which is fine. The problem is every time I run the script the same strings are returned. I'm running perl 5.001 on Windows 2000. sub RandomStr { my $i=0; my

RE: How to measure Array or Hash's byte size ?

2003-04-05 Thread Scott R. Godin
Vincent Bufferne wrote: > What's about: > > my @foo = ( '1', '2' ,'3' ); > my $size = $#foo + 1; > print "table size $size\n"; > > Ouput: > table size 3 print "Table size: ", scalar(@foo), "\n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Php perl?

2003-04-05 Thread Scott R. Godin
Gary Stainburn wrote: > Just to put things into perspective here > > 1) I made the comment about the start-up speed. > 2) Although I use PHP frequently my feet are FIRMLY in the Perl camp > 3) Unix Fork/Load/Exec cycle *IS* slow because of the amount of work > involved. The MS equiv will be just