LINUX LITE 7.4 RC1 RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Program error
#1
Hello,

this is the script -

[Image: menu-driven.png]

this is the error message on option 3 only


[Image: menu-driven2.png]


I set the shell script permissions to -

Code:
chmod 755

As it was what the book specified to use in the first chapter of the shell scripting chapters.

I checked the "18G..." results with error , by changing lines #33 and #36 by adding

Code:
sudo

the program produces no error, but of course it needs the password to be typed, this confirmed the results of "18G...", as correct. In that the script, as in screenshot above, has the permission denied error but is producing the correct results shown on the next line in the terminal after the error, on the screenshot above.

Options 1, 2, and 0 work without any errors in the program.
The only changes I have made to the script from the book is to beautify the code alignment to my liking.
The error happens before this when run, and still does, so it has not affected the programs functioning.

I would like some help as to how to run this script on option3 without it producing the error.
Reply


Messages In This Thread
[SOLVED] Program error - by bitsnpcs - 02-15-2019, 10:11 AM
Re: [SOLVED] Program error - by firenice03 - 02-15-2019, 04:10 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 08:00 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 08:15 PM
Re: [SOLVED] Program error - by firenice03 - 02-15-2019, 11:10 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-15-2019, 11:28 PM
Re: [SOLVED] Program error - by firenice03 - 02-19-2019, 01:10 AM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 08:53 AM
Re: [SOLVED] Program error - by firenice03 - 02-19-2019, 04:42 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 08:51 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 10:17 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-19-2019, 11:07 PM
Re: [SOLVED] Program error - by bitsnpcs - 02-20-2019, 01:55 AM
Re: [SOLVED] Program error - by firenice03 - 02-20-2019, 02:02 AM
Re: [SOLVED] Program error - by bitsnpcs - 02-20-2019, 02:16 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)