Help with a shell script question HELP PLEASE ??



arochester

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

GeraldH98

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

JulienCC

Active Member
Credits
0
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.
 


Members online


Latest posts

Top