restrict ps output to root user

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2015-05-30 01:15:20 +02:00
parent d0d388a8a2
commit 2085e1d487

View file

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
ps_command=$(command -v ps)
ps_args='-U root -u root -f'
# Returns the absolute path of a given string # Returns the absolute path of a given string
abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; } abspath () { case "$1" in /*)printf "%s\n" "$1";; *)printf "%s\n" "$PWD/$1";; esac; }