Peter K Anderson schrieb:
Greetings All :)

On a fully patched Solaris 10 U5 (sparc) system with SRSS 4.0 (+patch
127553-02) we've been having a bit of 'fun' trying to set up a kiosk
session script where some command line arguments need to have values
containing space characters.


[...]

Now, if we run the script interactively as per these two examples:

        /etc/opt/SUNWkio/sessions/testarg/testarg -o 'Spaced Out'
        /etc/opt/SUNWkio/sessions/testarg/testarg -o "Spaced Out"

...we get this output in our OUTFILE:

        CommandArgs: -o Spaced Out
        OPTo=[Spaced Out]

However, when the same script is executed (via the kiosk session
environment) using the same command line arguments we get varying and
unexpected output where

        -o 'Spaced Out'

...produces this output:

        CommandArgs: -o 'Spaced Out'
        OPTo=['Spaced]


Prior to the upcoming kiosk patch, kiosk processing would have resulted in your script being called as (essentially)
   /etc/opt/SUNWkio/sessions/testarg/testarg "-o" "'Spaced" "Out'"

...and

        -o "Spaced Out"

...produces this output:

CommandArgs: OPTo=[]


Even with the upcoming kiosk patch, there will still be an issue with argument lines containing double quotes, if set through the web administration GUI.

...leading us to suspect the kiosk environment is somewhat
'different'???


It is. Much of that should be improved with the upcoming kiosk patch.

So, am open to any suggestions re what to try next?


1. Wait for the upcoming kiosk patch - should be out Real Soon Now.

2. Use single quotes to delimit arguments containing whitespace, if you are using the web administration GUI.

Placing the options in a configuration file is one possible solution but
isn't desirable with multiple SRS ...and the web interface is obviously
the best place for this.  Also, we just don't have a choice with some of
the argument values having space characters.

Does anyone  know if the forthcoming kiosk patch might prove beneficial
in this case?


Yes, it should.

- Jörg

--
Joerg Barfurth
Software Engineer        mailto:[EMAIL PROTECTED]
Desktop Technology
Thin Client Software     http://www.sun.com/software/sunray/
Sun Microsystems GmbH    http://www.sun.com/software/javadesktopsystem/

Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to