Permission denied error message.
Ray Parrish wrote:
> I am trying to run a script I wrote, and I get the following
> non-specific error message -
> ray@RaysComputer:~$ /home/ray/SoftwareReport/WriteHTML.sh "gedit"
> bash: /home/ray/SoftwareReport/WriteHTML.sh: Permission denied
> The script has been given permissions to execute for myself as user, and
> the group.
> The script is too big to paste in here, but maybe the main program can
> give someone a clue, as I have no idea what else could cause this error.
> Here is the main program for the script.
> # Main program starts here.
> # Declare global array.
> declare -a LineData
> # Declare global variables.
> declare -i LoopCount=0
> declare -i URLCount=0
> DirectoryName=`dirname $0`
> echo "Directory name - $DirectoryName"
> cd $DirectoryName
> # Get the passed in PackageName for this run of the script.
> # Load the array with lines from "dpkg -p $PackageName" output.
> # Get the section name for this package.
> # Generate filename for this section's HTML file.
> # Output results of this script to this package's HTML file.
> cat >>"$DirectoryName/$FileName" << EOF
> Can anyone please tell me some of the common causes for the Permission
> Denied error message please?
> Thank you, Ray Parrish
Never mind, I was checking the permissions on a similarly named file,
instead of the script I was trying to execute. Duuuuhhhh!!! 8-)
Later, Ray Parrish
The Future of Technology.
Ray's Links, a variety of links to usefull things, and articles by Ray.
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users