Forums

Error running ps command

Hi,

When I run the ps command in the shell, I get:

Error, do this: mount -t proc proc /proc

Only root can run this.

I have a script that runs that command to figure out if a scheduled task that I want to run hourly, is already running, so its obviously a problem. I know there are other ways to determine what I'm trying to do, but I'm curious why proc is not mounted given is a very common thing on Ubuntu.

Thanks!

It's a consequence of the way our virtualisation works.

We could update it so that you could get a process list for the stuff running on the current machine. But your consoles can all be on different machines, so that wouldn't necessarily help.

Right now your scheduled tasks are guaranteed to be on the same machine, but that might change in the future. But in the meantime, perhaps this page might help?

Great, I'll implement the checking mechanism that is suggested on your page.

Thanks for the support (y)