Jenda Krynicky wrote:
From: "Anish Kumar K." <[EMAIL PROTECTED]>
Is there any way in perl I can modify the permission of a directory
using perl scripts
It never ceases to amaze me how often people forget to specify their
operating system when asking apparently OS specific questions ...
Jenda
It
From: "Anish Kumar K." <[EMAIL PROTECTED]>
> Is there any way in perl I can modify the permission of a directory
> using perl scripts
It never ceases to amaze me how often people forget to specify their
operating system when asking apparently OS specific questions ...
Jenda
= [EMAIL PROTECTE
Anish Kumar K. wrote:
Is there any way in perl I can modify the permission of a directory using perl scripts
perldoc perlfunc
[snip]
Functions for filehandles, files, or directories
^^^
"-X", "chdir", "chmod", "chown", "chroot",
Anish Kumar K. <[EMAIL PROTECTED]> asked:
> Is there any way in perl I can modify the permission of a
> directory using perl scripts
Of course. Check out the builtins chmod and chown.
HTH,
Thomas
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<
Feb 3, 2005 kl. 12:32 PM skrev Anish Kumar K.:
Is there any way in perl I can modify the permission of a directory
using perl scripts
Anish
$dir = shift @ARGV;
$perms = ?? #Whatever you wan't
system('chmod', $perms,$dir) if -d $dir;
"Home is not where you are born, but where your heart finds peac