Re: function umask() and problem in GD::image->png

2010-03-31 Thread Shlomi Fish
Hi Kenneth, On Thursday 01 Apr 2010 05:49:06 CHAN, KENNETH 1 [AG/7721] wrote: > Thanks Shlomi, it's clear to me about the umask() now. Nice. > Regarding the perl version, I am using the perl come with the Suse Linux > in my company. Will it be a big job to update the Perl a

RE: function umask() and problem in GD::image->png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
Thanks Shlomi, it's clear to me about the umask() now. Regarding the perl version, I am using the perl come with the Suse Linux in my company. Will it be a big job to update the Perl and making sure other installed modules (dependencies) working fine? Can you please guide me to some good reso

Re: function umask() and problem in GD::image->png

2010-03-31 Thread John W. Krahn
CHAN, KENNETH 1 [AG/7721] wrote: Hi all, Hello, I have 2 simple questions (maybe be very trial): 1. I saw some code put "umask 022;" in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux. No, that is incorrect. umask()

Re: function umask() and problem in GD::image->png

2010-03-31 Thread Shlomi Fish
Hi Kenneth, On Wednesday 31 Mar 2010 11:34:37 CHAN, KENNETH 1 [AG/7721] wrote: > Hi all, > I have 2 simple questions (maybe be very trial): > 1. I saw some code put "umask 022;" in the near beginning of perl > script. I understand that umask is for changing the file perm

function umask() and problem in GD::image->png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put "umask 022;" in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux. However, if I put "umask 002" in the beginning of a perl script, after

Re: umask

2007-10-28 Thread Tom Phoenix
ompatible; although such old code may not be the best way to do something, it generally will get the job done.) > umask 0022; > The problem I'm having is that the permissions on the files being > created are 644 and not 755. I know it has something to do with octals > but I'

Re: umask

2007-10-27 Thread Gunnar Hjalmarsson
sam wrote: umask 0022; while ($exercises > 0) { open EXERCISE, ">exercise" .$lesson ."_" .$exercises .".pl"; The problem I'm having is that the permissions on the files being created are 644 and not 755. Then change them using the chmod() fun

Re: umask

2007-10-27 Thread Matthew Whipple
"How many exercises are there? "; > chop($exercises = ); > > #print "What is the date today?(MM/DD/YY) "; > #chop($date = ); > > ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = > localtime(time); > $year += 1900; > $year = sprintf("%02d&qu

umask

2007-10-27 Thread sam
); #print "What is the date today?(MM/DD/YY) "; #chop($date = ); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; $year = sprintf("%02d", $year % 100); $date = ++$mon ."/" .$mday ."/" .$year; umask 0022; while ($