I just wanted the result when the user is issuing ps aux is same as when they're doing ps x like this:
Quote:
[psycho@server /usr/bin]$ ps x
PID TT STAT TIME COMMAND
13474 ?? S 0:00.02 sshd: coder@ttyp0 (sshd)
13475 p0 Ss 0:00.01 -bash (bash)
13528 p0 T 0:00.08 top
13565 p0 R+ 0:00.00 ps x
1527 p1- S 1:13.53 ./script
[psycho@server /usr/bin]$
(which shows result on user's current background process only)
The OP wants to actually make the command output 'ps x' even if run as 'ps aux'. That will probably require changing the source code for 'ps'. This is BSD, so if you can, just open up the source and make the changes. You might also be able to search for a ps that is modified to do this, but I don't know where you might find that. Check with BSD communities - you may get help.
perhaps I'm missing something obvious here but surely you could just do something like follows:
1. Rename ps to ps_orig
2. Create a 2 line shell script called ps in the same directory as ps was like follows:
3. Chmod 555 ps (same as ps_orig or whatever you want)
I just did it, albeit on a FC5 box, and it works...
Good morning all,
This is the file name in question OD_Orders_2019-02-19.csv
I am trying to create a bash script to read into files with yesterdays date on the file name while retaining the rest of the files name. I would like for $y to equal, the name of the file with a formula output with... (2 Replies)
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Hello,
I seem to be having a problem with accumulation of root CRON jobs occuring when I have a user's cron job(s) running.
Here is an example of a user's crontab file:
*/1 * * * * echo "hello" > /dev/nullps aux|grep CRON
root 14333 0.0 0.0 91236 2172 ? S ... (12 Replies)
Hi Gurus,
is there a possibility to show where a user can write to?
i want to see all directories where a user has permissions to write to.
Kind Regards
FranzB (0 Replies)
I have found an excellent OS X pref pane that allows you to output log files or terminal commands/scripts onto the desktop in the background.
What I want to do is create a script that outputs the following...
- Mac OS X Version and Build (As shown in the about this mac)
- Current username
-... (6 Replies)