RE: Perl -d

2004-03-15 Thread David le Blanc
Check out 'ddd'. I've heard it allows you to attach a remote console debugger to a parl script. Hence you could web browse to http://whatever and trap the CGI invocation when it starts up and attaches to the debugger. Not sure about the details though. > -Original Message- > From: Mi

Re: Modifying STDIN

2004-03-15 Thread Randy W. Sims
On 03/16/04 00:06, James Taylor wrote: I'm modifying a script someone wrote that basically reads a file file into STDIN, and I was curious if there was anyway of modifying the stdin value without having to first open the file, modify it, close the file, and then open it into stdin. I think what

RE: Perl -d

2004-03-15 Thread David le Blanc
> -Original Message- > From: Mike Ni [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 16 March 2004 3:46 PM > To: [EMAIL PROTECTED] > Subject: Perl -d > > Hey everyone, > > > While I was playing with perl's built-in debuger > (perl -d), I notice that debugger doesn't seem > care too much

Modifying STDIN

2004-03-15 Thread James Taylor
I'm modifying a script someone wrote that basically reads a file file into STDIN, and I was curious if there was anyway of modifying the stdin value without having to first open the file, modify it, close the file, and then open it into stdin. Basically, looks like: open(STDIN,$filename) || di

Perl -d

2004-03-15 Thread Mike Ni
Hey everyone, While I was playing with perl's built-in debuger (perl -d), I notice that debugger doesn't seem care too much about whether a variable is declared? For example, I would get response of "empty hash" if I do a "x \%dummy" regardless dummy hasn't been delcared yet. The same res

Re: DBI, DBD question

2004-03-15 Thread Randy W. Sims
Please post to the list when possible so others can contribute/benefit. Thanks. Comments inline below: On 03/15/04 22:56, [EMAIL PROTECTED] wrote: I tried running the install commands in PPM and got this: 'Retrieving package 'DBD'... Error installing package 'DBD' : Could not locate a PPD file f

Re: %ENV?

2004-03-15 Thread Randy W. Sims
On 03/15/04 22:25, Mike Ni wrote: Hey Randy, Am I right to think that each hasing pair are made of "name of environment variable" such as "PATH" and the "value" of the env variable? Yes, the environment variable names are the keys in the hash, and the value of each hash element is the value of

Re: Folder Clean-up

2004-03-15 Thread Randy W. Sims
On 03/15/04 20:22, Norman Zhang wrote: I generated the script with "find2perl testfl/ -mtime +30 > rmoldshares.pl", but it seems File::Find doesn't recognize foldernames with spaces. 8( Anyone know other solutions beside using manual opendir, readdir, closedir? Here is a routine I wrote a while b

Re: Folder Clean-up

2004-03-15 Thread Norman Zhang
Is there a specific reason you're using perl for this task? You can accomplish the same with: find /share_folder -mtime +30 | xargs rm but you should probably verify the correctness of the command first with find /share_folder -mtime +30 | xargs ls Thank you so much. Your simple script does pre

Re: Folder Clean-up

2004-03-15 Thread Wiggins d'Anconia
Randy W. Sims wrote: On 03/15/04 15:00, Wiggins d Anconia wrote: Not necessarily true. perldoc expects POD, which can be internal or external to a particular module's source code, it is possible to remove the documentation and still have the module installed. Slightly better would be to just invo

Re: %ENV?

2004-03-15 Thread Randy W. Sims
On 03/15/04 17:37, Mike Ni wrote: Hey friends, Could anyone tell me where to find the man page for the "%ENV"? I didn't have too muck luck on www.perl.org nor with CPAN site. Perhaps I got the wrong ideal about perl's man page. Yet, I just can't seem to find the man page about "%ENV". I nee

Re: Folder Clean-up

2004-03-15 Thread Randy W. Sims
On 03/15/04 17:34, Norman Zhang wrote: Randy W. Sims wrote: Is there a specific reason you're using perl for this task? You can accomplish the same with: find /share_folder -mtime +30 | xargs rm but you should probably verify the correctness of the command first with find /share_folder -mtime +

Re: %ENV?

2004-03-15 Thread Wiggins d Anconia
> Hey friends, > > Could anyone tell me where to > find the man page for the "%ENV"? > > I didn't have too muck luck on www.perl.org > nor with CPAN site. Perhaps I got the wrong ideal > about perl's man page. Yet, I just can't seem > to find the man page about "%ENV". > > I need to finut w

%ENV?

2004-03-15 Thread Mike Ni
Hey friends, Could anyone tell me where to find the man page for the "%ENV"? I didn't have too muck luck on www.perl.org nor with CPAN site. Perhaps I got the wrong ideal about perl's man page. Yet, I just can't seem to find the man page about "%ENV". I need to finut what are included by th

Question: Perl/CGI AIX

2004-03-15 Thread Mulder
Not being a web developer, I'm a DBA by profession, I am attempting to write a web application that will perform a simple (in my mind) database process. What I want to know how, if possible, can I pop-up a window or open the initial web-page and gather a user_name and password but use the AIX auth

Re: not getting the syntax

2004-03-15 Thread Charlotte Hee
On Fri, 12 Mar 2004, R. Joseph Newton wrote: > > Charlotte Hee wrote: > > > > > For a single record I can see how that works but let's say I have > > 4 or 5 employees and I have the employee information for each one > > (assumed). Now I want to build a record for each employee in a loop like > >

Re: Folder Clean-up

2004-03-15 Thread Randy W. Sims
On 03/15/04 15:00, Wiggins d Anconia wrote: Not necessarily true. perldoc expects POD, which can be internal or external to a particular module's source code, it is possible to remove the documentation and still have the module installed. Slightly better would be to just invoke the perl interprete

RE: Folder Clean-up

2004-03-15 Thread Wiggins d Anconia
Please bottom post > Not the prettiest way but here is how I check if File::Find is installed: > > perldoc -X File::Find > > > Like I said, it's not pretty. I figure there wouldn't be a doc on the machine if the module wasn't there. Bad presumtion I know. Still, maybe someone can help e

Re: Folder Clean-up

2004-03-15 Thread John W. Krahn
Norman Zhang wrote: > > Hi, Hello, > I've /share_folder with many user folders. > > e.g., > > /share_folder/user_a > /share_folder/user_b > ... > > I would like to scan all user folders for files that are older than 30 > days and delete them. Is this doable with Perl? Something like this (un

Re: chown-ing symlink

2004-03-15 Thread Kenton Brede
On Mon, Mar 15, 2004 at 12:57:08PM -0800, John W. Krahn ([EMAIL PROTECTED]) wrote: > Wiggins D'Anconia wrote: > > > > What is the OP really doing? Why the need to change the ownership of a > > link, and why wasn't it created with the "correct" ownership to begin with? > > The ownership on a syml

Re: getting variables used in a file

2004-03-15 Thread John W. Krahn
Guruguhan N wrote: > > Hi All, Hello, > Is there any way we can get the list of variables used in a perl > file without opening it? Any help in this regard is welcome. perldoc B::Xref John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Folder Clean-up

2004-03-15 Thread Radhika Sambamurti
On Mon, 15 Mar 2004 13:47:09 -0700 "Wiggins d Anconia" <[EMAIL PROTECTED]> wrote: > > Boy that must have been "music" to your ears ;-) those gude spelers in > the croud will get mi meaning Ah, of course!!! sarcasm. I get it. So all we need now is a spell checker parser program, which Im

Re: chown-ing symlink

2004-03-15 Thread John W. Krahn
Wiggins D'Anconia wrote: > > What is the OP really doing? Why the need to change the ownership of a > link, and why wasn't it created with the "correct" ownership to begin with? The ownership on a symlink should be irrelevant because the permissions are set to rwxrwxrwx by default. Just to spec

Re: Folder Clean-up

2004-03-15 Thread Wiggins d Anconia
> On Mon, 15 Mar 2004 14:11:44 -0500 > "Randy W. Sims" <[EMAIL PROTECTED]> wrote: > > > You can use the perl utility 'find2perl' to generate the code for you: > > > > find2perl /share_folder -atime +30 > rmoldshares.pl > > This is great! I am a newbie... and i tried using the find2perl utility,

Re: Folder Clean-up

2004-03-15 Thread Radhika Sambamurti
On Mon, 15 Mar 2004 14:11:44 -0500 "Randy W. Sims" <[EMAIL PROTECTED]> wrote: > You can use the perl utility 'find2perl' to generate the code for you: > > find2perl /share_folder -atime +30 > rmoldshares.pl This is great! I am a newbie... and i tried using the find2perl utility, and viola! it do

Re: Folder Clean-up

2004-03-15 Thread Randy W. Sims
On 03/15/04 14:24, Norman Zhang wrote: I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this doable with Perl? What do you mean by "older than 30 days"?

Re: Folder Clean-up

2004-03-15 Thread Norman Zhang
I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this doable with Perl? What do you mean by "older than 30 days"? I mean files that were created 30 days a

Re: Folder Clean-up

2004-03-15 Thread Norman Zhang
I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this doable with Perl? Use File:Find and you can do all that you need to accomplish. See the doc. Wags

RE: Folder Clean-up

2004-03-15 Thread u235sentinel
Not the prettiest way but here is how I check if File::Find is installed: perldoc -X File::Find Like I said, it's not pretty. I figure there wouldn't be a doc on the machine if the module wasn't there. Bad presumtion I know. Still, maybe someone can help educate us. I'm a sorta perl-newbi

RE: Folder Clean-up

2004-03-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Norman Zhang wrote: >>> I've /share_folder with many user folders. >>> >>> e.g., >>> >>> /share_folder/user_a >>> /share_folder/user_b >>> ... >>> >>> I would like to scan all user folders for files that are older than >>> 30 days and delete them. Is this doable with Perl? >> >> Use File:F

Re: Folder Clean-up

2004-03-15 Thread u235sentinel
I know this doesn't fully answer you question but I'm wondering, do you mean files that your users haven't accessed in 30 days? What if they are using it like once a week? I'm reading through the "Learning Perl 3rd Edition" and on page 159 there are a number of file tests available. If your u

Re: Folder Clean-up

2004-03-15 Thread Randy W. Sims
On 03/15/04 13:52, Norman Zhang wrote: Hi, I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this doable with Perl? What do you mean by "older than 30 day

RE: Folder Clean-up

2004-03-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Norman Zhang wrote: > Hi, > > I've /share_folder with many user folders. > > e.g., > > /share_folder/user_a > /share_folder/user_b > ... > > I would like to scan all user folders for files that are older than 30 > days and delete them. Is this doable with Perl? Use File:Find and you can

Folder Clean-up

2004-03-15 Thread Norman Zhang
Hi, I've /share_folder with many user folders. e.g., /share_folder/user_a /share_folder/user_b ... I would like to scan all user folders for files that are older than 30 days and delete them. Is this doable with Perl? Regards, Norman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: using Expect to change password

2004-03-15 Thread Andrew Gaffney
Andrew Gaffney wrote: I've read through the Expect.pm documentation and looked at what few examples I could find, but I still can't figure out how to use Expect to interact with the 'passwd' program. Can anyone point me to an example that does this? Thanks. I figured it out, mostly. I can get it

using Expect to change password

2004-03-15 Thread Andrew Gaffney
I've read through the Expect.pm documentation and looked at what few examples I could find, but I still can't figure out how to use Expect to interact with the 'passwd' program. Can anyone point me to an example that does this? Thanks. -- Andrew Gaffney Network Administrator Skyline Aeronautics,

Weekly list FAQ posting

2004-03-15 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

AW: AW: Problem using require()

2004-03-15 Thread B. Fongo
I've checked cpan AppConfig. I may get back to it. Thanks Randy -Ursprüngliche Nachricht- Von: Randy W. Sims [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. März 2004 12:36 An: B. Fongo Cc: [EMAIL PROTECTED] Betreff: Re: AW: Problem using require() On 03/15/04 06:19, B. Fongo wrote:

export of getopts

2004-03-15 Thread Christian Stalp
Hello together, Im looking for a method to tell my program that it has to put out debug statements. With getopts("d") I allready managed that my main-routine does this. But the subroutines I realized as packages in their own files. So when I call my subroutines via package::methode() they don't

Re: chown-ing symlink

2004-03-15 Thread Paul Johnson
On Mon, Mar 15, 2004 at 11:32:47AM +, Ohad Ohad wrote: > Ugh. Could you please try and persuade hotmail not to do that? > 3. What's the status of adding lchown to POSIX ?  I suppose it's just waiting for someone to do it. It doesn't look too complicated. If someone produces a reasonable

Re: AW: Problem using require()

2004-03-15 Thread Randy W. Sims
On 03/15/04 06:19, B. Fongo wrote: The idea of creating a package is clear, but it doesn't solve the problem at hand. What I want is a possibility for non programmers to change the global variable to reflect to their server (e.g. path to sendmail, email address, currency symbol etc.) environment wi

AW: Problem using require()

2004-03-15 Thread B. Fongo
The idea of creating a package is clear, but it doesn't solve the problem at hand. What I want is a possibility for non programmers to change the global variable to reflect to their server (e.g. path to sendmail, email address, currency symbol etc.) environment without messing with the perl codes.

Re: getting variables used in a file

2004-03-15 Thread Randy W. Sims
On 03/15/04 02:30, N, Guruguhan (GEAE, Foreign National, EACOE) wrote: Hi All, Is there any way we can get the list of variables used in a perl file without opening it? Any help in this regard is welcome. By "opening", I assume you mean without executing; otherwise the answer is a definate no. =)

Re: DBI, DBD question

2004-03-15 Thread Randy W. Sims
On 03/14/04 22:12, [EMAIL PROTECTED] wrote: To whom it may concern: I'm new to PERL programming and am trying to get my PERL application to connect to an Access database. The PERL I've been using was a free copy you find in the Learning PERL (Dietel). I don't know what version comes with the bo

DBI, DBD question

2004-03-15 Thread Jsevi00
To whom it may concern: I'm new to PERL programming and am trying to get my PERL application to connect to an Access database. The PERL I've been using was a free copy you find in the Learning PERL (Dietel). I've registered the database in ODBC and I've installed Python on my PC (I'm using Wi