EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Open .opi file from command line with CSS Display Builder?
From: "J. Lewis Muir" <[email protected]>
To: "Kasemir, Kay" <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Tue, 29 May 2018 11:02:35 -0500
On 05/29, Kasemir, Kay wrote:
> Hi:
> 
> The file path must be a workspace path, i.e. something valid within the Eclipse/CSS workspace.
> 
> Start  CSS.
> 
> Invoke the menu CS-Studio, Utilities, Install Samples, select both the BOY and Display Builder examples
> 
> Now this will open the start of the BOY examples in the previously started CSS instance:
> 
>     ./css --launcher.openFile '/BOY Examples/main.opi'
> 
> .. and this will open the start of the display builder examples:
> 
>    ./css --launcher.openFile '/Display Builder/01_main.bob'^C
> 
> The single quotes are required because of the space in the file names.

Hi, Kay!
 
Thanks for this explanation.  So it can only open a .opi file from the
command line if it's already open in CSS?  That's not very useful to me.

> Note that in practice I've found this to be fragile. The open-from-command-line mechanism is technically based on a SWT locating the already running instance by looking for its main window.
> In our control room, the command-line mechanism fails to find an already running instance of CS-Studio that has been running for a while.
> I believe that's related to us having several operator interface computers all use the same generic "operator" login with the same NFS-mounted home directory,  and X11/GTK storing some information in the $HOME directory.
> So going forward, for the 'phoebus' update project that aims to remove Eclipse from CS-Studio, we simply listen on a TCP port for files to open, which so far seems easier, faster, more reliable, and can also used by e.g. 'telnet' or 'nc' to open files.

Thanks for all of this!  And (the question I'm sure you get all the
time) when will Phoebus be ready for production use? :-)  It seems like
a very positive update project; I really look forward to it!  Thanks for
your effort on it!

Lewis

Replies:
Re: Open .opi file from command line with CSS Display Builder? Kasemir, Kay
References:
Open .opi file from command line with CSS Display Builder? J. Lewis Muir
Re: Open .opi file from command line with CSS Display Builder? Kasemir, Kay

Navigate by Date:
Prev: Re: tvx for pilatus randomic crash over ssh Gabriel de Souza Fedel
Next: Re: Open .opi file from command line with CSS Display Builder? Kasemir, Kay
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Open .opi file from command line with CSS Display Builder? Kasemir, Kay
Next: Re: Open .opi file from command line with CSS Display Builder? Kasemir, Kay
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 29 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·