Andy,
If you launch the screens with medm's -attach option then screens should try to attach to an already running medm process. This should help reduce the number of Medm parent windows floating around.
John
------------------------------------
John Hammonds
Sent from my mobile office
On Mar 17, 2011, at 6:37 PM, Andy Foster <[email protected]> wrote:
>
> To all MEDM experts,
>
> I may have missed something but is there an MEDM exit button?
>
> I'm in a situation where I'm starting MEDM screens from an
> EDM shell command. When I've finished with the MEDM screen,
> just clicking on the "X" (close window) in the top right-hand
> corner, leaves behind the parent "medm" application. Obviously,
> after a while, my desktop is littered with "medm" processes and
> it also has the effect of not letting me start-up the same screen
> twice (with the shell command from EDM - saying that it's already active).
>
> I've got round this, by adding a shell command to the MEDM screen called
> EXIT, which does this:
>
> kill $(ps aux | grep 'medm' | awk '{print $2}')
>
> However, this is very brutal, killing all instances of MEDM on
> my machine.
>
> Is there a more elegant solution?
>
> Cheers,
>
> Andy
>
- References:
- MEDM Andy Foster
- Navigate by Date:
- Prev:
MEDM Andy Foster
- Next:
Codeathon Postponed Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
MEDM Andy Foster
- Next:
Codeathon Postponed Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|