You are not logged in.

#1 2010-10-31 16:41:14

limpio
Member
Registered: 2005-12-31
Posts: 52

[SOLVED] ps_mem.py

I used this instructions:

wget http://www.pixelbeat.org/scripts/ps_mem.py
su
mv ps_mem.py /usr/local/sbin/
chmod 755 /usr/local/sbin/ps_mem.py

after you do that...

as a user you can use the command
su -c ps_mem.py
to check memory usage

if you have sudo configured then as a user you can use the command
sudo ps_mem.py
to check memory usage

It works in my other machine with Debian but not in Arch it doesn'to work with sudo or as root, it gives this error:

luigi@foo ~$ sudo ps_mem.py
sudo: ps_mem.py: command not found
luigi@foo ~$ su
Password: 
[root@foo luigi]# ps_mem.py
bash: ps_mem.py: command not found

ps_mem.py IS at /usr/local/sbin

Am i doing something wrong?

Last edited by limpio (2010-10-31 21:28:01)

Offline

#2 2010-10-31 16:52:55

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] ps_mem.py

arch doesn't include /usr/local/bin and /usr/local/sbin in PATH by default

you can either make a package for the program/script, or edit /etc/profile and add those to PATH

PATH="/bin:/usr/bin:/sbin:/usr/sbin"

to

PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"

Offline

#3 2010-10-31 17:03:15

lymphatik
Member
From: Somewhere else
Registered: 2009-03-07
Posts: 119

Re: [SOLVED] ps_mem.py

Or just use the package in AUR http://aur.archlinux.org/packages.php?ID=29703

Offline

#4 2010-10-31 21:18:56

limpio
Member
Registered: 2005-12-31
Posts: 52

Re: [SOLVED] ps_mem.py

Thanks gents. I went for the easy package in AUR, but yaourt gave me this error mesage:

==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build ps_mem.

so i edited /etc/profile/, rebooted and is working perfectly, thank you guys!

Last edited by limpio (2010-10-31 21:24:44)

Offline

Board footer

Powered by FluxBB