You are not logged in.
Pages: 1
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
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
Or just use the package in AUR http://aur.archlinux.org/packages.php?ID=29703
Offline
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
Pages: 1