Help with a shell script question HELP PLEASE ??

GeraldH98

New Member
Joined
Oct 23, 2019
Messages
2
Reaction score
0
Credits
0
4514
 


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.
 
Hello,

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.
 

Staff online


Top