Jay,
This works for me on solaris:
command[0]{
label=”mycommand”
name=”xterm -e”
args=”test.sh abc”
}
Tim
----- Original Message -----
> From: "Jay Steele" <[email protected]>
> To: [email protected]
> Cc: "Claus Flachenecker" <[email protected]>
> Sent: Thursday, January 27, 2011 6:33:29 PM
> Subject: problem running bash script with MEDM on Windows/Cygwin
> Hi EPICS community,
>
> I’m running EPICS 3.14.11 on Windows XP and using windows extensions
> 32 MEDM as the GUI. I’m trying to run bash scripts from MEDM. I’m able
> to launch a xterm from a button created using MEDM’s shell command
> palette. The xterm window runs cygwin and I’m trying to use an
> argument to xterm to run the bash script. My problem is that the
> command line arguments are not parsed correctly when I specify two
> command-line arguments for xterm. I can run the following from a
> windows DOS window: xterm –e “dxpflyscan.sh
> /cygdrive/c/epics/bash/mca1.txt”. This works to create the cygwin
> xterm window and launches the dxpflyscan.sh script with
> /cygdrive/c/epics/bash/mca1.txt as an argument. However, the following
> does not work with MEDM. I just get a flash of a DOS window.
>
>
>
> “shell command” {
>
> object {
>
> x=70
>
> y=167
>
> width=127
>
> height=42
>
> }
>
> command[0]{
>
> label=”dxp-flyscan”
>
> name=”xterm”
>
> args=”-e “dxpflyscan.sh /cygdrive/c/epics/bash/mca1.txt””
>
> }
>
>
>
> Has anybody had better success at getting bash scripts to work with
> MEDM on windows/cygwin? MEDM does work when I only specify the shell
> script name as an argument to xterm.
>
>
>
> Cheers,
>
> Jay Steele
>
> Xradia Corporation
>
> The information in this email, including any attachments, is
> confidential and intended only for the recipient(s) listed. Any use of
> this email for any other purpose is prohibited. If you have received
> this email in error, please notify me immediately by reply email,
> delete this email, and do not disclose its contents to anyone.
--
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
- References:
- problem running bash script with MEDM on Windows/Cygwin Jay Steele
- Navigate by Date:
- Prev:
epicsMessageQueue Linux PREEMPT_RT james.rowland
- Next:
Re: problem running bash script with MEDM on Windows/Cygwin 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:
problem running bash script with MEDM on Windows/Cygwin Jay Steele
- Next:
Re: problem running bash script with MEDM on Windows/Cygwin 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
|