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
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-
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
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
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.
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
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
[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
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
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
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
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
[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 -
[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
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
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
[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
[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
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]
[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 -
@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
> 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]
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
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
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
25 matches
Mail list logo