Help - Search - Members - Calendar
Full Version: Bash builtins locked down?
The Planet Forums > System Administration > Web Hosting
Documatrix
One of the sites I'm trying to migrate to my server (all self-owned and managed sites, btw) uses the Bash builtin . (period) to read and execute fully-pathed files. However, the scripts using . to execute these pathed files doesn't read them and therefore the pages never succeed.

Is this read & execute builtin shut down on RHEL 5? Or is there an obscure permissions problem I haven't found?
James Jhurani
QUOTE (Documatrix @ Jan 1 2009, 03:11 PM) *
One of the sites I'm trying to migrate to my server (all self-owned and managed sites, btw) uses the Bash builtin . (period) to read and execute fully-pathed files. However, the scripts using . to execute these pathed files doesn't read them and therefore the pages never succeed.

Is this read & execute builtin shut down on RHEL 5? Or is there an obscure permissions problem I haven't found?


Personally I haven't noticed any of my RHEL4 shell scripts failing on RHEL5. But, a good way to try and troubleshoot this is to run the script using "bash -x" it will spit out some debug info as it executes.
Documatrix
Thanks for the tip, James. We can use that for debugging for sure.

Turns out we had a syntax error in a source file that was being picked up. Bash builtins are workin' fine. rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.