I am using Gatorhost right now, I bought one of the script in this DP forums and testing it. I get screw on the Sharehost account most of the time. it said I have limited 25 process. So I tried to access the SSH to kill the process by my own but the Problem is I already limit the account process, So even I can logon I can't do anything on it I tried top , ps -aux theses command It give me : fork: Resource temporarily unavailable 1) is there anyway I can kill all process without knowing their process ID or name. I have heard about some script, but have no idea how to load on the server, 2) I have read online I can use PHP funtion posix_getpid to get the PID, but then it ask me to configure the file on the etc/php.ini but I can't find this file on my ftp and I don't know how to configure as well. I found it in here http://www.modwest.com/help/kb20-328.html may be is becoz of different hosting company, things seem different.
Because you can't run new process (top, ps, ...) from your shell, you won't run kill from shell neither. But this could work: make an shell file (chmod 755) and put there your desired commands: ps, kill, ... and then run it with "dot" command: . ./mykill.sh Code (markup): If that doesn't work, maybe adding those commands on your .profile could work.
Sorry I am a newbie on SSH , just start to use last night So now I should use a notepad and type" #!/bin/sh ps " and save it as ps.sh After that where should I put the file ??? and how can I run it ? thx
Yes, ps.sh is ok. You can upload to your hosting machine via rcp or with any ftp program. Any directory with permission will work, and remember to add executable permission (+x), example: "chmod 755 ps.sh" Finally access to that directory with ssh, and run ps.sh shell. Example ssh user@machine.com cd testDirectory . ./ps.sh Code (markup):
You can find your process by doing ps -l | grep yourusername, to see all the process that you have started with your id. Then you can kill it.
there is nth u can do about it.. can't even run anything. alan8888@gator235 [~/test]# kill kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec] alan8888@gator235 [~/test]# . ./ps.sh : command not found PID TTY TIME CMD 9596 ? 00:00:00 bash 14519 ? 00:00:00 ps alan8888@gator235 [~/test]# . ./ps.sh -jailshell: fork: Resource temporarily unavailable alan8888@gator235 [~/test]# . ./ps.sh -jailshell: fork: Resource temporarily unavailable alan8888@gator235 [~/test]# ps -jailshell: fork: Resource temporarily unavailable alan8888@gator235 [~/test]# top -jailshell: fork: Resource temporarily unavailable alan8888@gator235 [~/test]# ps -aux |grep alan8888 -jailshell: fork: Resource temporarily unavailable alan8888@gator235 [~/test]#