Help with a shell script question HELP PLEASE ??


New Member
Oct 23, 2019
Reaction score

Generally, we don't do homework/assignments/ paid work...

You have asked for HELP. What have YOU done? Otherwise, it is not HELP - it is us doing it for you - and you will learn little from that.
It is not homework it's a lab. I created a script to find files within root that had permissions of 722,733,744 or 777, and change those file permissions to 755. After this the next question is contained above.

I've struggled for hours and cannot seem to get anywhere close to understanding how to get input from the user for a PID and nice number to then change the processes nice number to the integer imputed by the user.

It is not homework it's a lab

Sorry but what's a lab ?

This is some very basic shell stuff you are asking here.
Get two variables and then launch a command with them.
You can get some documentation about bash input reading here

General bash tutorial :

Don't try to go too fast if your are learning by yourself. Follow the guide, play with the samples. This is the way you are going to get better.

Members online