Hi Alan, the full command-line is split up into pieces, where argv0 is the name of the script that is being run and argv the list of command-line arguments - so a trifle different than the C convention. The name of the executable is found in [info nameofexecutable]. While that could be anything, within PLplot we can be reasonably sure it is "plserver" or something else.
Yes, that might be the way to implement the distinction. I will definitely keep this in mind! Regards, Arjen > -----Original Message----- > From: Alan W. Irwin [mailto:[email protected]] > Sent: Friday, November 15, 2013 2:42 PM > To: Arjen Markus > Cc: PLplot development list; Maurice LeBrun > Subject: RE: Status of Tcl and friends > > On 2013-11-14 07:17-0000 Arjen Markus wrote: > > > I will have a look at the color issues and the hack in tkdemos. > > Hi Arjen: > > Before I sign off to get some delayed sleep, I have just had an idea about a > replacement for that hack. If tkdemos.tcl has access to the wish and plserver > command line, then the 0 index argument value should include "wish" somewhere > in > the string and otherwise "plserver" > somewhere in the string. But I don't have a clue whether the command line > arguments are accessible, and if they are what the Tcl syntax would be to find > whether wish or plserver is a substring of the first > (zero) argument. But if that is possible, I am looking forward to you > fleshing out the > idea with actual Tcl logic so I can replace the hack in tkdemos.tcl and and > associated > logic bits elsewhere (e.g., see FIXME in examples/CMakeLists.txt) that help to > support that. > > Alan > > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state implementation for > stellar interiors (freeeos.sf.net); the Time Ephemerides project > (timeephem.sf.net); > PLplot scientific plotting software package (plplot.sf.net); the libLASi > project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the > Linux Brochure > Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
