Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6573505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:08:31+00:00 2026-05-25T15:08:31+00:00

I am using Java API to connect my Remote Machine so I can see

  • 0

I am using Java API to connect my Remote Machine so I can see the running processes.

One of the requirements is to be able to kill any of the processes.

Now I am executing command

ps aux | grep java which return list of the running processes.

eg.

root       330  0.2  0.0     0    0 pts/0    Z    08:42   0:11 [java] 

Does anyone know what is the spec is used for above output ? I’ll need to convert above line into an object where 330 will the process id.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:08:32+00:00Added an answer on May 25, 2026 at 3:08 pm

    If you are only intresseted in the pid of the processes with that name check pgrep.


    Example:

    $ pgrep sshd
    791
    22956
    23060
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to publish message on Facebook's fan page using JAVA/GWT API. Any one
I want to connect to a my facebook application using the facebook java api
I'm using the Smack API for Java to connect to ejabberd and gtalk servers.
You can see an example of accessing LDAP using the InitialLdapContext class in Java
I'm using the Java Mail API for the first time and I can't get
I am developing a chat client using java. I was able to connect to
I am using Java Mail api to access a gmail account (not fixed). I
Situation: I need to make an imap client (using java mail api) that if,
I'm working on a 3D graphical application in Java using the Java 3D API.
I'm using Java for accessing Alfresco content server via it's web service API for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.