The ps command - process showing up even after application is shut down

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications The ps command - process showing up even after application is shut down
# 1  
Old 05-22-2010
The ps command - process showing up even after application is shut down

Hi all,

I'm very new to unix, I'm developing an application in Java, part of which requires me to check if a certain application is still running. In windows, I just use tasklist - if the application has been shut down it won't appear in the task list. I've been trying to use the ps command to try to achieve a simlar result but what I've found is that even after this application has been shut down, the ps command will list it Smilie.

Does anyone have any ideas about how I might be able to see if a particular application is running?

Thanks

Katie

EDIT: OK I've realised that the reason ps still shows the application is because its in the dock. How can I exclude processes open in the dock? Or can I?

Last edited by ekatmcg; 05-22-2010 at 01:18 PM.. Reason: New Info
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Java process showing high virtual memory

Hi All, I have a java process which is showing high virtual memory utilization in client server. But the same process is showing comparitively lesser virtual memory consumption. I understand that virtual memory shown is not of much importance for the general user in normal condition, my client... (2 Replies)
Discussion started by: mritusmoi
2 Replies

2. Shell Programming and Scripting

Ps command showing different states for same process

I am using HP-UX,KSH $ jobs -l + 19377 Running nohup ksh cat_Duplicate_Records_Removal.ksh </dev/null >/dev/null 2>&1 & $ ps -p 19377 -fl F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD 401 S catmgr 19377 19491 ... (1 Reply)
Discussion started by: TomG
1 Replies

3. Programming

Application with communication between process

Hello I would like to create an application with communication between processes, application tightly coupled, have you please an idea about an API or a tool that allows me to generate such application? Thank you so much (11 Replies)
Discussion started by: chercheur857
11 Replies

4. UNIX for Advanced & Expert Users

Needs help in launching a console application with the help of daemon process

Hi All, I am facing problem in launching a application with the help of a daemon process. Actually the application is based on command line that reads various commands for controlling the application from the console and accordingly executes those commands. The application always interact with... (3 Replies)
Discussion started by: gopallinux
3 Replies

5. Shell Programming and Scripting

ps showing inconsistent process start time

Not sure if it makes a difference but "foo" is a java process. The start time reported by various flavors of ps seems to be flopping back and forth by a minute. I have many (a few hundred) "foo" like processes which tend to be somewhat unstable and get restarted somewhat frequently, I wrote a... (2 Replies)
Discussion started by: jstrangfeld
2 Replies

6. Shell Programming and Scripting

Shell Scripting not showing in process when it goes to sleep

Hi All, Here is my script: sleep_time=`echo "9.6 * $num_servers"|bc| cut -d. -f1` if ; then sleep_time=3600;fi ### Allow the compare script to kick in after 1 hour at the least logger "Sleeping for $sleep_time seconds ...Will call compare.sh thereon" $act_log sleep $sleep_time #sleep... (3 Replies)
Discussion started by: ntgobinath
3 Replies

7. Shell Programming and Scripting

cron for windows, process is OK, but application is not opening

Dear All, I need a help. i have an mapped drive application. I want to start this application using cron. I have downloaded cron setup from the below link: www.kalab.com/freeware/cron/cron.htm And it crontab file works fine. But if i want to start an application. Then process... (2 Replies)
Discussion started by: vasanth.vadalur
2 Replies

8. Programming

C++ application: how to access AIX process and cpu information?

Hi, may be this is an AIX noob question: my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (0 Replies)
Discussion started by: DarthVader77
0 Replies

9. Shell Programming and Scripting

Trying to shut down and start a Windows process

Hi , Good day people. I want to know if i can shut down a particular service that runs in windows from solaris through a script . Scenario : we have a distributed environment where we want to shut down a service that runs under windows through a shell script in solaris , is this kinda action... (3 Replies)
Discussion started by: vivsiv
3 Replies
Login or Register to Ask a Question
appclient(1M)						    Application Server Utility						     appclient(1M)

NAME
appclient - launches the Application Client Container and invokes the client application packaged in the application JAR file SYNOPSIS
appclient -client client_application_jar [-mainclass client_application_main_classname|-name display_name] [-xml sun-acc.xml file] [-tex- tauth] [-user username] [-password password] Use the appclient command to launch the application client container and invoke a client application that is packaged in an application JAR file. The application client jar file is psecified and created during deployment either by the deploytool or by using the asadmin deploy command. The application client container is a set of java classes, libraries and other files that are required to execute a first-tier application client program on a Java Virtual Machine (JVM). The application client container communicates with the Application Server using RMI-IIOP. The client.jar that is retrieved after deploying an application , should be passed with the -client option while running the appclient utility. The -mainclass and -name options are optional for a single client application. For multiple client applications use either the -classname option or the- name option. -client required; the name and location for the client application jar file. The application client JAR file is specified and created during deployment, either by the deploytool or by the asadmin deploy command. -mainclass optional; the full classname of the main client application main() method that will be invoked by the Application Client Container. Used for a single client application. By default, uses the class specified in the client jar. The class name must be the full name. For example, com.sun.test.AppClient -name optional; the display name for the client application. Used for multiple client applications. By default, the dis- play name is specified in the client jar application-client.xml file which is identified by the display-name attribute. -xml optional if using the default domain and instance, otherwise it is required; identifies the name and location of the client configuration XML file. If not specified, defaults to the value of $AS_ACC_CONFIG identified in asenv.conf file. -textauth optional; used to specify using text format authentication when authentication is needed. Example 1: Using the appclient command appclient -client appserv/bin/myclientapp.jar -mainclass com.sun.test.TestAppClient -xml sun-acc.xml scott sample Where: appserv/bin/myclientapp.jar is the full path for the client application .jar file, com.sun.text.TestAppClient is the full Java pack- age name of the main client application, scott and sample are arguments to pass to the application, and sun-acc.xml is the name of the client configuration XML file. If sun-acc.xml is not in the current directory, you must give the absolute path location; otherwise the rel- ative path is used. The relative path is relative to the directory where the command is being executed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Unstable | +-----------------------------+-----------------------------+ package-appclient(1M), asadmin(1M) Sun Java System Application Server March 2004 appclient(1M)