On 5/25/2010 6:20 PM, Jakub Jedelsky wrote:
On 25.5.2010 14:27, Jatin Davey wrote:Here is the script that i am trying to execute as a non-root user: #!/bin/sh ps -C java -o thcount > /home/proc_threads/tempfile awk ' { total += $1 } END { print total } ' /home/proc_threads/tempfile here is the output when i try to execute as a non-root user: ./javathreads: line 2: /home/proc_threads/tempfile: Permission denied awk: cmd. line:1: fatal: cannot open file `/home/proc_threads/tempfile' for reading (Permission denied) Thanks Jatin |
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos