Re: [CentOS] Unable to execute a script , Permission denied

2010-05-26 Thread John Doe
From: Jatin Davey jasho...@cisco.com I changed the file permissions such that any user could execute it using the chmod 777 filename command. Better use 755... JD ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-26 Thread Dale Dellutri
On Tue, May 25, 2010 at 8:27 AM, Jatin Davey jasho...@cisco.com wrote: On 5/25/2010 6:44 PM, Bowie Bailey wrote: 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 }

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-26 Thread m . roth
On Tue, May 25, 2010 at 8:27 AM, Jatin Davey jasho...@cisco.com wrote: On 5/25/2010 6:44 PM, Bowie Bailey wrote: 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 }

[CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Jatin Davey
Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that any user could execute it using the chmod 777 filename command. When i log out and

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Jakub Jedelsky
On 25.5.2010 14:27, Jatin Davey wrote: Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that any user could execute it using the chmod

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread kalinix
On Tue, 2010-05-25 at 17:57 +0530, Jatin Davey wrote: Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that any user could execute

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread James Hogarth
On 25 May 2010 13:27, Jatin Davey jasho...@cisco.com wrote: Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that any user could execute

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 6:20 PM, Jakub Jedelsky wrote: On 25.5.2010 14:27, Jatin Davey wrote: Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Jakub Jedelsky
On 25.5.2010 14:57, Jatin Davey wrote: On 5/25/2010 6:20 PM, Jakub Jedelsky wrote: On 25.5.2010 14:27, Jatin Davey wrote: Hi I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread James Bensley
How are you trying to execute the script, ./my script or sh ./my_script? -- Regards, James. http://www.jamesbensley.co.cc/ - There are only 10 kinds of people in the world, those who understand trinary, those who don't understand trinary and those who don't understand trinary.

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bowie Bailey
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:

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 6:44 PM, Bowie Bailey wrote: 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

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread James Hogarth
On 25 May 2010 14:14, Bowie Bailey bowie_bai...@buc.com wrote: 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

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Les Mikesell
Bowie Bailey wrote: 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

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Whit Blauvelt
On Tue, May 25, 2010 at 05:57:46PM +0530, Jatin Davey wrote: I have a linux box which has CentOS running in it. I logged into the box using root and wrote a script in the /home/proc_threads directory. saved the file and quit. I changed the file permissions such that any user could execute

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bob Beers
On Tue, May 25, 2010 at 9:42 AM, Les Mikesell lesmikes...@gmail.com wrote: Bowie Bailey wrote: 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 } '

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bowie Bailey
Bob Beers wrote: On Tue, May 25, 2010 at 9:42 AM, Les Mikesell lesmikes...@gmail.com wrote: Bowie Bailey wrote: 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

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread m . roth
Bowie wrote: Bob Beers wrote: On Tue, May 25, 2010 at 9:42 AM, Les Mikesell lesmikes...@gmail.com wrote: Bowie Bailey wrote: 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

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bowie Bailey
m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are counting processes, the original is counting threads. $ ps -C java -o thcount | awk ' { total += $1 }

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread m . roth
m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are counting processes, the original is counting threads. $ ps -C java -o thcount | awk ' { total += $1 } END {

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread m . roth
m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are counting processes, the original is counting threads. $ ps -C java -o thcount | awk ' { total += $1 } END {

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Les Mikesell
On 5/25/2010 9:55 AM, m.r...@5-cent.us wrote: m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are counting processes, the original is counting threads. $ ps -C

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread Bowie Bailey
Les Mikesell wrote: On 5/25/2010 9:55 AM, m.r...@5-cent.us wrote: m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are

Re: [CentOS] Unable to execute a script , Permission denied

2010-05-25 Thread m . roth
Les wrote: On 5/25/2010 9:55 AM, m.r...@5-cent.us wrote: m.r...@5-cent.us wrote: Bowie wrote: ps -C java -o thcount | awk ' { total += $1 } END { print total } ' Now, as dearly as I love awk, ps -C java --no-heading | wc -l You are counting processes, the original is counting threads.