Bill,
Thanks. It is a permissions problem. The newbie is really
showing now. I am assuming that the script is running as
Nobody? I am also assuming that I would be creating a
security risk by adding Nobody to the Root group?
The company I work for is a startup company and when I
came in, I was the only one who knew the tech side well
enough to be in charge of the server. I have been trying
to learn linux as I go, and I am trying to learn how to
use perl to improve our productivity. Sometimes, I think
I am in over my head, but I always press onward.
Since it is a permissions problem, do you have any
suggestions you may offer to me?
Bill Platt
$Bill Luebkert wrote:
>
> Bill Platt wrote:
> >
> > Hello Everyone,
> >
> > I am sure that my pure ignorance is starting to show. Visual
> > Basic I do decent with. At times, I feel like I am really
> > starting to pick up on this perl stuff, then at other times,
> > like right now, I feel like someone needs to blow in my ear
> > to give me a refill.
> >
> > I am stuck on chmod inside a script now. I have seen several
> > references telling me to do it:
> >
> > chmod (0644, "/etc/aliases");
> >
> > OR
> >
> > chmod 0644, "/etc/aliases";
>
> Either should work. Why aren't you checking the error status ?
>
> chmod 0644, "/etc/aliases" or die "chmod /etc/aliases error: $!\n";
>
> Maybe a permissions problem ?
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users