No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
|
Re:
I want to write a shell script that finds files in a directory that are (owner permissions) readable, writeable, or executable for the owner. But I don't know the command to list files with certain permissions (rwx)... I'm sure it has something to do with ls, but I just can't … |
Re:
I am using the below code to return the pid. But it works only if the pid is 4-digit. It returns nothing if the pid is 5-digit (see the examples). How do I fix this code for both the instances. Thanks in advance! Mamtha pid =ps -fu truecomp | grep … |
|
I doing a proof of concept script to automate getting a field from ps. Currently, the script takes 2 imputs and I'm almost there but cannot get awk to recognize $2. I want to invoke it like this: #./script init 2 (search for init and get PID). Obviously, $2 to … |