![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Perl Location
What is the location of Perl 5+ on the server? Thanks.
Is it #!/usr/bin/perl ? |
|
#2
|
|||||||||||
|
|||||||||||
|
Perl
Yes it is.
|
|
#3
|
||||||||||||
|
||||||||||||
|
hostnet, does the server allow chmods of 777? (some systems don't).
|
|
#4
|
||||||||||||
|
||||||||||||
|
ramjet:
I've used 777 without any problem.
__________________
Regards to all
|
|
#5
|
||||||||||||
|
||||||||||||
|
matrix, is 777 restricted?
(i need an explanation of this as i've tried a test.pl that gives the absolute path of the server and it won't run on 777, but does on 755 - yet garreg says hes used 777. is there some rule as to when this 777 can't be used, and is this standard across all unix machines? merry xmas all. murray. |
|
#6
|
|||||||||||
|
|||||||||||
|
You can only use 755 for scripts in the cgi-bin directory. THis only applie sto like .cgp .pl and stuff. .txt coul dhave 777 if needed.
|
|
#7
|
||||||||||||
|
||||||||||||
|
Thanks Craig, but.....
if i make a new directory (nothing to do with the cgi-bin) and chmod it to 755, and place this simple script in it (also chmod 755) it works..... YAY ![]() #!/usr/bin/perl print "content-type:text/html\n\n"; print "Your absolute path is<br>"; print "$ENV{'DOCUMENT_ROOT'}"; ....but if i chmod the directory to 777 (the script is still 755), it doesn't work. (server error) BOO ![]() I guess what i'm trying to understand is why not... it seems the directory at 777 won't allow the script to execute even though I figure it should. I'm a complete novice at this so its probably something I'm missing, - (I have a Hotscripts perl script whose author says in case of problems just set everything to 777...but it still won't go) so knowing more re 777 on the Matrix system seems essential to my understanding. Any clues as to why a script wont execute in a 777 directory? |
|
#8
|
||||||||||||
|
||||||||||||
|
Perl Diver
|
|
#9
|
||||||||||||
|
||||||||||||
|
thanks obj, but its not the paths i'm having difficulty with, its chmod.
|
|
#10
|
|||||||||||
|
|||||||||||
|
Scripts can only execute from directories that are 755 and the files have to be 755.
|
|
#11
|
|||||||||||
|
|||||||||||
|
Oh and I am mike (Unix Administrator) not craig
|
|
#12
|
||||||||||||
|
||||||||||||
|
thanks Mike, and sorry about that, i got mixed up...
If a script is writing/reading from a .dat file, should this .dat be 666, and can it be within a directory that is 755? Also does the system need to know via the CP about the .dat, or is it as I suspect just a txt file really? Any overview on the whole CHMOD thing is really appreciated. Murray. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|