LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2005, 10:01 PM   #1
Brian114
LQ Newbie
 
Registered: Apr 2005
Distribution: suse
Posts: 2

Rep: Reputation: 0
Unhappy Kill specific Wine program from Command Line


Hey Guys!
Here's my problem, I'm running Internet Call Manager (when I'm on the internet it monitors for incoming calls and notifies me) under wine.

Problem: I have it start when I'm connected, but need it to end when I disconnect (otherwise I get multiple 'your connection is broken' messages)

I can kill wine to end it, but if I have another wine program running it kills it too.

Can I 'kill' a specific wine program without killing the entire emulator? or can i start the process with a certain pid?


Any ideas?
Thanks
 
Old 04-17-2005, 11:49 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
As a workaround, you can start each programs in a different terminal, then control+c to kill each separately...
 
Old 04-18-2005, 01:06 AM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
answer:

ps axwww | grep wine

that will bring up a list of processes that have wine in them. look for the lowest number process id (the first column) that says something like '/usr/bin/wine-pthread some_windows_program.exe'.

example (killing IconEdit.exe)
Code:
[vjong@Tron vjong]$ ps axwww | grep wine
 2126 ?        S      0:00 /bin/bash /usr/bin/IconEdit_wine.sh
 2127 ?        S      0:09 /usr/bin/wine-pthread IconEdit.exe
 2131 ?        S      0:02 /usr/bin/wineserver
 2136 ?        S      0:00 /usr/bin/wine-pthread IconEdit.exe
 2137 ?        S      0:00 /usr/bin/wine-pthread IconEdit.exe
 2139 ?        S      0:03 /usr/bin/wine-pthread winrar.exe
 2144 ?        S      0:00 /usr/bin/wine-pthread winrar.exe
[vjong@Tron vjong]$ kill -9 2127
[vjong@Tron vjong]$ ps axwww | grep wine
 2131 ?        S      0:02 /usr/bin/wineserver
 2139 ?        S      0:04 /usr/bin/wine-pthread winrar.exe
 2144 ?        S      0:00 /usr/bin/wine-pthread winrar.exe
[vjong@Tron vjong]$
it looks like that works.

Last edited by megaspaz; 04-18-2005 at 01:07 AM.
 
Old 04-18-2005, 06:46 AM   #4
Brian114
LQ Newbie
 
Registered: Apr 2005
Distribution: suse
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the quick replies,

But how can I do this from a script?

I need my 'run on disconnect' script to end the program automatically, not do it manually.
Doing it manually works, but how do I write a script to find the right pid?

I trying to make Linux 'Wife friendly'
 
Old 06-07-2011, 04:02 AM   #5
uptoeleven
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Wine has a task manager

1.) click the "new terminal" icon - (provide one for your users if you don't have one!)
2.) type "wine taskmgr" then hit enter.

Windows Task Manager starts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill an idle user via the command line? goemon Linux - General 7 12-01-2005 06:01 PM
Please dont kill me for asking.. Command line? (I AM i n00b) Nox_hand Linux - Newbie 17 09-17-2005 03:59 PM
How can I see what process are running and how to I kill them? (command line). brynjarh Linux - Newbie 4 07-07-2004 03:01 PM
kill program command line demmylls Linux - General 7 02-09-2004 08:55 PM
one-line kill command using process name julianop Linux - Newbie 6 12-22-2003 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration