[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Kill a process

Posted on 2005-04-14
1
Medium Priority
?
351 Views
Last Modified: 2011-04-14
I have a VPS running Linux Redhat.  I SSH into the shell.  I don't have root access.  I started a java application that listens on a port.  I am testing this application so I let it go all night.  Today, I wanted to logini(via SSH) and kill it.  I started it like this ("java <someprogram>&") so it would run in the background and stay running even when I logged out.  So I go to kill it by, "ps" and then to look for the ID and "kill <id>"  But, the process is not listed.  I know it is still running because it is still listening on the port, which I can test by running my client java application(I wrote both btw).  So how do I kill this process?
0
Comment
Question by:turtletimer
1 Comment
 
LVL 23

Accepted Solution

by:
Mysidia earned 2000 total points
ID: 13787257
Try
ps x

to list processes with no terminal associated with them.

You might also try

ps axu |more

To list all processes on the system
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month19 days, 20 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question