• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Gun Forums

Help with a shell script question HELP PLEASE ??


Staff member
Gold Supporter
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.


New Member
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.


Active Member

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 http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_08_02.html

General bash tutorial : https://www.tldp.org/LDP/Bash-Beginners-Guide/html/

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

Latest posts