[Perl-unix-users] FW: [CGI] questions

2001-10-25 Thread Benjamin Eagle
> -Original Message- > From: Benjamin Eagle [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 11:45 PM > To: [EMAIL PROTECTED] > Subject: [CGI] questions > > > [Benjamin Eagle] I have a couple questionsremmeber I am new > to cgi > > to create a script

RE: [Perl-unix-users] Directory size

2001-10-25 Thread Salah, Yahya A
In Unix; the Perl line of code you need is: system("/usr/bin/du -ks $directory_name"); The size is in Kilobytes and it is recursive. I am not sure about NT. Regards -Original Message- From: Nikko Odiseos [mailto:[EMAIL PROTECTED]] Sent: Friday, 26 October 2001 13:03 To: [EMAIL PROTECTED

Re: [Perl-unix-users] Directory size

2001-10-25 Thread $Bill Luebkert
Nikko Odiseos wrote: > > I need to determine the size of a directory with potentially hundreds of > thousand of files. Ideally needs to work on both nt and unix. Should be > easy but I am struggling. Any ideas? The safest (may not be most efficient) would be to use File::Find and stat each f

[Perl-unix-users] Directory size

2001-10-25 Thread Nikko Odiseos
I need to determine the size of a directory with potentially hundreds of thousand of files. Ideally needs to work on both nt and unix. Should be easy but I am struggling. Any ideas? Thanks, Nikko ___ Perl-Unix-Users mailing list. To unsubscribe go

[Perl-unix-users] Update: need qw help

2001-10-25 Thread Craig Sharp
I tried running the script in Linux on perl v5.6.0. Runs fine. The script will actually be run on hpux with perl v5.6.0. There the script will not run. I get the syntax error. How about that for a wrench in the works? Craig ___ Pe

RE: [Perl-unix-users] need qw help

2001-10-25 Thread Fay Jason-W13246
I copy and pasted what you sent, and it works fine for me. Strange?!!? Jason -Original Message- From: Craig Sharp [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] need qw help Hi all, I have the following shor

[Perl-unix-users] need qw help

2001-10-25 Thread Craig Sharp
Hi all, I have the following short script that does not work: #!/usr/bin/perl @pvlist = qw{ /dev/dsk/c0t9d0 /dev/dsk/c0t10d0 /dev/dsk/c0t11d0 }; foreach (@pvlist) { print "$_\n"; } I am getting the following error: syntax error in file pvcfg at line