CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
chmod

 



ultimategamer2k
User

Feb 1, 2001, 10:33 PM

Post #1 of 3 (340 views)
chmod Can't Post

okay, is there any way, that when my script creats a file, it can chmod the file itself?
and i mean a .txt file (on a unix server)

visit my web site at http://ultimategamer.cjb.net


sleuth
Enthusiast

Feb 2, 2001, 12:18 AM

Post #2 of 3 (335 views)
Re: chmod [In reply to] Can't Post

 Sure is Mate,

But actually you already knew enough information to find something on that before you posted here. if you went to The Perl Doc you could have searched for Chmod and come up with something. Next time you may find that helpfull.

To Chmod a file just do,

chmod 0777, "file.txt";

You may need a full path.

Also you can use the system to chmod files.

system("chmod 777 file.txt");

I find that easier sometimes,

Tony



ultimategamer2k
User

Feb 2, 2001, 10:05 AM

Post #3 of 3 (332 views)
Re: chmod [In reply to] Can't Post

thanks
it worked great!
but it didnt seem to solve my problem :-(

visit my web site at http://ultimategamer.cjb.net

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives