Hi,
This is zulqarnain from dubai uae i hope you are fine over there i have some
problem regading ksh shell i wrote in ksh but it is not running in Linux suse
.so kindly tell what i will do before i have changed in bash shell scrit so it
is still not working please help in this prob.script is attached with my e-mail
.
#!/bin/ksh
LANG=ar_SA.UTF-8
LC_MONETARY=ar_SA.UTF-8
LC_NUMERIC=ar_SA.UTF-8
LC_MESSAGES=ar_SA.UTF-8
LC_COLLATE=ar_SA.UTF-8
LC_CTYPE=ar_SA.UTF-8
LC_TIME=ar_SA.UTF-8
DIR=`dirname $0`
DIR=/etc/opt/SUNWkio/sessions/moi
export LC_MONETARY LC_NUMERIC LC_MESSAGES LC_COLLATE LANG LC_CTYPE LC_TIME
MAC=`ls -l $UTDEVROOT | sed 's/.*\.//'`
DEFAULTWINTSHOST=`awk '/^default/ {print $2}' $DIR/wints.map`
WINTSHOST=`awk '/^'$MAC'/ {print $2}' $DIR/wints.map`
WINUSER=`/opt/SUNWut/sbin/utdesktop -o | awk -F, '/'$MAC'/ {print $3}'`
if [ ! "$WINTSHOST" ]; then WINTSHOST=$DEFAULTWINTSHOST; fi
if [ ! "$WINUSER" ]; then WINUSER=unknown; fi
OPTS="-D cursorshadow -D cursorsettings -D menuanimations -m -u $WINUSER"
lpstat -p $MAC >/dev/null 2>&1
if [ $? -eq 0 ]; then
/opt/SUNWuttsc/bin/uttsc $OPTS -r printer:$MAC='hp deskjet 990c' $WINTSHOST
else
/opt/SUNWuttsc/bin/uttsc $OPTS $WINTSHOST
fi
Thank in advance
Best Regards,
Zulqarnain
Jörg Barfurth <[EMAIL PROTECTED]> wrote:
Hi Greg,
Sorry for the late reply
Greg Rodenhiser schrieb:
> Hello all, I'm having an impossible (and frustrating) time to configure
> a Kiosk SunRay session. I want a basic console that runs Gnome and
> firefox. I want both to launch upon startup (ie the session will be a
> Gnome instance with a single firefox window open). I want both the
> Gnome session and the firefox window to be critical (if the user closes
> firefox or logs out of Gnome the session will restart. I've read
> through the man pages and older entries on this mailing list but I'm
> still missing something (the windows connector example doesn't help
> either). I found an Kiosk session someone made and tried making my
> changes from there. Here's what I have.
>
> session.conf
> KIOSK_SESSION_EXEC=/etc/opt/SUNWkio/sessions/hc/hc-kiosk
> KIOSK_SESSION_LABEL="HC Kiosk Session"
> KIOSK_SESSION_DESCRIPTION="Provides a blank X session for running a
> Kiosk script."
> KIOSK_SESSION_ARGS=/usr/bin/gnome-session
> KIOSK_SESSION_PROTOTYPE=hc-kiosk
> KIOSK_SESSION_APPLAUNCHER="/opt/SUNWkio/lib/kioskapplaunch"
>
Despite the similarities in names, "/opt/SUNWkio/lib/kioskapplaunch" is
not a suitable application launcher script.
An application launcher script must do the proper thing to launch an
application, if given the data from an application list entry.
Unfortunately the documentation for this in the man pages is not complete.
> hc-kiosk:
> #!/bin/sh
> $*
>
With this script presence of the KIOSK_SESSION_APPLAUNCHER entry is
misleading: the session must itself make sure that an application list
is processed. You can use the processApplicationList function in
/opt/SUNWkio/lib/utils.sh for this purpose.
Look at the predefined 'JDS3' and 'CDE' sessions in the solaris packes
on your install media for examples how a session that can act as an
application container can be constructed.
Or just make a script that starts the browser as critical (see below)
and then runs or execs the gnome-session (as your script now does via
the arguments).
> browser.conf:
> KIOSK_APP_EXEC=/usr/bin/firefox
> KIOSK_APP_ICON=/usr/share/pixmaps/firefox.png
> KIOSK_APP_POST=
> KIOSK_APP_PRE=
> KIOSK_APP_PROTOTYPE=
>
If you have this, you can launch the browser as critical from your
script as follows:
/opt/SUNWut/lib/kioskapplaunch -c browser
(Maybe you need /path/to/browser.conf instead of 'browser', not sure atm)
HTH
- Jörg Barfurth
--
Joerg Barfurth Phone: +49 40 23646662
Software Engineer mailto:[EMAIL PROTECTED]
Desktop Technology
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
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search._______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users