Re: POSIX 'strftime'

2003-04-06 Thread John W. Krahn
David Gilden wrote: > > Hello, Hello, > How can get the date formatted to include the day of the week (plus one) man 3 strftime [snip] %a The abbreviated weekday name according to the curĀ­ rent locale. %A The full weekday name according to the current

POSIX 'strftime'

2003-04-06 Thread David Gilden
Hello, How can get the date formatted to include the day of the week (plus one) '04-07-2003-1013' Thanks, Dave ( kora musician / audiophile / web master @ cora connection / Ft. Worth, TX, USA) The following misses the day of week!! #!/usr/bin/perl -w use POSIX 'strftime'; print strftime('%m-

Re: unix && windows permissions

2003-04-06 Thread Motherofperls
I'm afraid to use `ls -al` now because unix sytems may vary. I'm going to try the module suggested: http://search.cpan.org/author/MJD/Stat-lsMode-0.50 and insert the $^O to test for windows or unix. Then to test for windows permissions I can just use -r and -w, right? Somehow I would have to

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread simran
Stat::lsMode would probably be of interest as well. http://search.cpan.org/author/MJD/Stat-lsMode-0.50/lsMode.pm On Mon, 2003-04-07 at 10:41, R. Joseph Newton wrote: > [EMAIL PROTECTED] wrote: > > > > > Hello Mother, > > > > While not knowing exactly what you want to do, > > in general you can

File::Stat vers system('ls -al')

2003-04-06 Thread Motherofperls
http://www.rubycentral.com/book/ref_c_file__stat.html Ive read the above page which explains File::Stat methods. I'm just not sure how this translates to the various unix forms of drwxrwxrwx. Another thing I'm not clear on is the real user and the effective user.

Re: maching end of a line with $

2003-04-06 Thread Jose Malacara
Thanks for the help! You are correct, a string equality test is easier. My main problem was that I realized that I wasn't splitting my line of input (containing the IP addresses and other values) before I was trying to match, so I had: if ($array[0] eq $value) { @array = split(/,/, $line); inste

Re: unix && windows permissions

2003-04-06 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > Does windows use the chmod command in the same manner as unix No. There is no chmod in the system itself. And the builtin chmod() function is almost a NOOP under windows. The ony thing chmod() does under Windows is that it sets the "READONLY" attribute on the file acco

Re: why 2 r's in Owner permission: drwxr-xr-x

2003-04-06 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > I've read about 10 pages on unix permissions. > > So far I've learned that a directory is a file with a listing of > subdirectories and files. And the d in drwxr-xr-x indicates the file is a > directory. And if it begins with -, it's a file -rwxr-xr-x.Also the - > s

Re: Getting Image data

2003-04-06 Thread beau
On 6 Apr 2003 at 10:13, Mike Blezien wrote: > Hello. Hello, Mike > > hoping to find someone fimilar with using ImageMagick. I haven't used this too > much and need to get the image that's uploaded, it's pixel size(width x heigth) > > I can do this using the Image::Size module, but I assume, s

Getting Image data

2003-04-06 Thread Mike Blezien
Hello. hoping to find someone fimilar with using ImageMagick. I haven't used this too much and need to get the image that's uploaded, it's pixel size(width x heigth) I can do this using the Image::Size module, but I assume, somehow I do the same the same using the ImageMagick too. In the docs i

Re: 'Soft' link 'real; filename

2003-04-06 Thread beau
On 6 Apr 2003 at 5:27, John W. Krahn wrote: > [EMAIL PROTECTED] wrote: > > > > Hi - > > Hello, > > > A little OT, but, with Perl runing under Linux, > > is there any way to get the 'target' file name > > of a 'soft' link? > > my $actual_file = readlink $soft_link; > ... Thanks John - I don't

Re: why 2 r's in Owner permission: drwxr-xr-x

2003-04-06 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >I've read about 10 pages on unix permissions. > >So far I've learned that a directory is a file with a listing of >subdirectories and files. And the d in drwxr-xr-x indicates the file is a >directory. And if it begins with -, it's a

Re: why 2 r's in Owner permission: drwxr-xr-x

2003-04-06 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I've read about 10 pages on unix permissions. > > So far I've learned that a directory is a file with a listing of > subdirectories and files. And the d in drwxr-xr-x indicates the file is a > directory. And if it begins with -, it's a file -rwxr-xr-x.Also the -

Re: what's the mode number represent with stat()[2]?

2003-04-06 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I've learned alot from all this. Thanks for the info! > This is what I pulled from the learning perl book. > ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$b > > locks) = stat(...) > > I tried this to access the mode but it puts out a

why 2 r's in Owner permission: drwxr-xr-x

2003-04-06 Thread Motherofperls
I've read about 10 pages on unix permissions. So far I've learned that a directory is a file with a listing of subdirectories and files. And the d in drwxr-xr-x indicates the file is a directory. And if it begins with -, it's a file -rwxr-xr-x.Also the - separates permissions of the Ow

what's the mode number represent with stat()[2]?

2003-04-06 Thread Motherofperls
I've learned alot from all this. Thanks for the info! This is what I pulled from the learning perl book. ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$b locks) = stat(...) I tried this to access the mode but it puts out a number 16877 that I don't konw how to de

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > I'm trying to put the string from the system("ls -al") into a variable. It > simply prints to the page and puts 1 in the variable. > > I wan't to use this variable to determine the permissions for the files on a > linux machine. Is there an easier way? Hi Tricia. Ther

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > I'm trying to put the string from the system("ls -al") into a variable. It > simply prints to the page and puts 1 in the variable. perldoc -f system > I wan't to use this variable to determine the permissions for the files on a > linux machine. Is there an easier w

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Paul Johnson
On Sun, Apr 06, 2003 at 07:01:02AM -0400, [EMAIL PROTECTED] wrote: > I wan't to use this variable to determine the permissions for the files on a > linux machine. Is there an easier way? opendir readdir stat closedir perldoc -f each of those for the docs. -- Paul Johnson - [EMAIL PROTECTED]

Re: 'Soft' link 'real; filename

2003-04-06 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi - Hello, > A little OT, but, with Perl runing under Linux, > is there any way to get the 'target' file name > of a 'soft' link? my $actual_file = readlink $soft_link; > Or even determine a filename > is a 'soft' link? print "$file_name is a 'soft' link.\n" if -

RE: accessing the string from system("ls -al") / browse dir scri pt

2003-04-06 Thread Halkyard, Jim
@ls = `la -al`; will do it. $ls = system("ls -al"); will save the exit status of the command, rather than the output. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 06 April 2003 12:01 To: [EMAIL PROTECTED] Subject: accessing the string from system("l

Re: accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Li Ngok Lam
> I'm trying to put the string from the system("ls -al") into a variable. @list = `ls -al`; > It simply prints to the page and puts 1 in the variable. What's that mean '1' anyway ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

accessing the string from system("ls -al") / browse dir script

2003-04-06 Thread Motherofperls
I'm trying to put the string from the system("ls -al") into a variable. It simply prints to the page and puts 1 in the variable. I wan't to use this variable to determine the permissions for the files on a linux machine. Is there an easier way? Tricia

'Soft' link 'real; filename

2003-04-06 Thread beau
Hi - A little OT, but, with Perl runing under Linux, is there any way to get the 'target' file name of a 'soft' link? Or even determine a filename is a 'soft' link? (By 'soft' I mean a link created so: ln -s target link). Aloha => Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Php perl?

2003-04-06 Thread Scott R. Godin
George Schlossnagle wrote: > > On Friday, April 4, 2003, at 01:56 PM, Scott R. Godin wrote: >> The question I have is with the current Apache (2.x) > > First off, Apache 2.x is highly beta software. Almost no-one is > running it in production. The questionable thread-safety of many third > pa