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
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 }
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 }
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
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
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
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
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
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
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.
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:
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
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
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
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
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 } '
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
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
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 }
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 {
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 {
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
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
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.
24 matches
Mail list logo