Sponsored Content
Special Forums UNIX and Linux Applications The ps command - process showing up even after application is shut down Post 302423794 by ekatmcg on Saturday 22nd of May 2010 11:59:27 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Gnome2::Wnck::Tasklist(3pm)				User Contributed Perl Documentation			       Gnome2::Wnck::Tasklist(3pm)

NAME
Gnome2::Wnck::Tasklist - a tasklist widget, showing the list of windows as a list of buttons HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gnome2::Wnck::Tasklist INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable METHODS
widget = Gnome2::Wnck::Tasklist->new ($screen) o $screen (Gnome2::Wnck::Screen) $tasklist->set_button_relief ($relief) o $relief (Gtk2::ReliefStyle) $tasklist->set_grouping_limit ($limit) o $limit (integer) $tasklist->set_grouping ($grouping) o $grouping (Gnome2::Wnck::TasklistGroupingType) $tasklist->set_icon_loader ($func, $data=undef) o $func (scalar) o $data (scalar) $tasklist->set_include_all_workspaces ($include_all_workspaces) o $include_all_workspaces (boolean) integer = $tasklist->get_minimum_height $tasklist->set_minimum_height ($size) o $size (integer) integer = $tasklist->get_minimum_width $tasklist->set_minimum_width ($size) o $size (integer) $tasklist->set_screen ($screen) o $screen (Gnome2::Wnck::Screen) list = $tasklist->get_size_hint_list Returns a list of integers. $tasklist->set_switch_workspace_on_unminimize ($switch_workspace_on_unminimize) o $switch_workspace_on_unminimize (boolean) ENUMS AND FLAGS
enum Gnome2::Wnck::TasklistGroupingType o 'never-group' / 'WNCK_TASKLIST_NEVER_GROUP' o 'auto-group' / 'WNCK_TASKLIST_AUTO_GROUP' o 'always-group' / 'WNCK_TASKLIST_ALWAYS_GROUP' enum Gtk2::ReliefStyle o 'normal' / 'GTK_RELIEF_NORMAL' o 'half' / 'GTK_RELIEF_HALF' o 'none' / 'GTK_RELIEF_NONE' SEE ALSO
Gnome2::Wnck, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team. This software is licensed under the LGPL. See Gnome2::Wnck for a full notice. perl v5.14.2 2011-11-16 Gnome2::Wnck::Tasklist(3pm)
All times are GMT -4. The time now is 10:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy