Thanks. It runs properly when I run it from /var/hack/bin - I must have a rogue copy in my path somewhere.Verne said:Are you just typeing "ps" on its own? Try "ps aux" instead.
Where is your ps installed, /var/hack/bin? Is that in your PATH? Try running it from that directory if it's not.
Are you sure you transferred it in binary mode?
If you've got ls installed do "ls -l /var/hack/bin/ps" and post back what it lists. Is it executable?
Can't think of anything else to try. Hope this helps.
No, I think you misunderstood what I said. The error you get if a program is not in the path is "command not found". I do have /var/hack/bin in my path, but if I run it without prefixing ps with /var/hack/bin I get "no such file or directory". This is *not* the error you get if it can't find ps.healeydave said:you've answered your own question.
You had a duff ps at 0 bytes in /var/hack which you have now deleted hence the no such file or directory message.
The working version works from /var/hack/bin
Your .profile probably requires you to add the /var/hack/bin directory to your PATH statement so that you can run ps from elsewhere other than just the /var/hack/bin directory.
I suspect you have an exisitng path setup for /var/hack but not /var/hack/bin