D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] run an sh script with php or perl



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 12 Feb 2003 4:52 pm, Mark Cubitt wrote:
> but it still doesn't fully work
> here is the build.sh file:
>
> #!/bin/csh
>
> cd /wsw
> chmod 770 /wsw/*.pl
> perl /wsw/alindex.pl
> perl /wsw/asindex.pl
> perl /wsw/lindex.pl
> perl /wsw/pindex.pl
> perl /wsw/places.pl
> cd /
>
> exit 0
>
> it now deletes the files but doesn't build them again
>

Isn't that chmod *.pl at fault? If you want the scripts to execute, they would 
need to be world-executable, 775 or 755. Like the comment Alex made, the 
permissions need to be suitable for the webserver, not the user.

Change the build.sh file to set the /wsw/*.pl files to 755 and let us know. 
(You can always change them back to 770 at the end of the script if 
necessary.)

- -- 

Neil Williams
=============
http://www.codehelp.co.uk
http://www.dclug.org.uk

http://www.wewantbroadband.co.uk/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SqCAiAEJSii8s+MRAnd5AJ9mI/H5LCStnzOWkuD7epOsKaD0SwCgqOnU
/QG22/kFRwPN90RFlMihS/I=
=KHN+
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly