configuring xclock

  • Follow


Recently upgraded to Solaris 9, and trying to figure out how to
replace my OWclock, which I had set up to give me nice little box with
Zulu time, digital format, showing seconds.

Trying to figure out how to configure the x resources or the command
line to get xclock to show me what I need... specifically, a display
format other than the standard 'date' or 'date +%C' output.  I need
output that looks (ideally) like
'date "+ %y/%j%n%T"'

Thanks in advance for your kind assistance.
0
Reply lewis 2/10/2004 9:13:04 PM

Lewis wrote:
> Recently upgraded to Solaris 9, and trying to figure out how to
> replace my OWclock, which I had set up to give me nice little box with
> Zulu time, digital format, showing seconds.
> 
> Trying to figure out how to configure the x resources or the command
> line to get xclock to show me what I need... specifically, a display
> format other than the standard 'date' or 'date +%C' output.  I need
> output that looks (ideally) like
> 'date "+ %y/%j%n%T"'
> 
> Thanks in advance for your kind assistance.

You can't.  The man page clearly states your only options are "-analog"
and "-digital".  No resources are listed for further formatting.
You'll need another clock app to get the kind of control over the
format you want.  Don't know of one off the top of my head.

                                 Chris Mattern

0
Reply Chris 2/10/2004 9:55:26 PM


Lewis wrote:
> Recently upgraded to Solaris 9, and trying to figure out how to
> replace my OWclock, which I had set up to give me nice little box with
> Zulu time, digital format, showing seconds.

If you have another machine running an older Solaris, copy
the openwindow's clock program to your machine, it should work fine.
It should also be in the Solaris 8 CDs (or older)

0
Reply Oscar 2/10/2004 11:02:06 PM

lewis@city-net.com (Lewis) writes in comp.unix.solaris:
|Recently upgraded to Solaris 9, and trying to figure out how to
|replace my OWclock, which I had set up to give me nice little box with
|Zulu time, digital format, showing seconds.
|
|Trying to figure out how to configure the x resources or the command
|line to get xclock to show me what I need... specifically, a display
|format other than the standard 'date' or 'date +%C' output.  I need
|output that looks (ideally) like
|'date "+ %y/%j%n%T"'

It's undocumented, but if you're in any locale other than C it will
honor the CFTIME environment variable, so you can do something like
	env LC_ALL="en_US" CFTIME="%y/%j %T" xclock

(%n will just insert a space, not a line break - you can't get it
to go to multiple lines in the Solaris version.)

-- 
________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/       aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.
0
Reply Alan 2/11/2004 12:23:49 AM

Alan Coopersmith <alanc@alum.calberkeley.org> writes in comp.unix.solaris:
|It's undocumented, but if you're in any locale other than C it will
|honor the CFTIME environment variable, so you can do something like
|	env LC_ALL="en_US" CFTIME="%y/%j %T" xclock

There should be a -d or -digital on the end of that of course.

-- 
________________________________________________________________________
Alan Coopersmith                              alanc@alum.calberkeley.org
http://www.CSUA.Berkeley.EDU/~alanc/       aka: Alan.Coopersmith@Sun.COM
  Working for, but definitely not speaking for, Sun Microsystems, Inc.
0
Reply Alan 2/11/2004 2:20:30 AM

Alan Coopersmith <alanc@alum.calberkeley.org> wrote in message news:<c0c3he$1nkf$1@agate.berkeley.edu>...
> Alan Coopersmith <alanc@alum.calberkeley.org> writes in comp.unix.solaris:
> |It's undocumented, but if you're in any locale other than C it will
> |honor the CFTIME environment variable, so you can do something like
> |	env LC_ALL="en_US" CFTIME="%y/%j %T" xclock
> 
> There should be a -d or -digital on the end of that of course.

Thanks, Alan, that answer works for me.  I put together a shell script,

#!/bin/sh
env TZ=Zulu LC_ALL="en_US" CFTIME="%y/%j %T" xclock -d -update 1 &

which gives me just what I need.  Thanks again!
0
Reply lewis 2/11/2004 7:01:51 PM

5 Replies
324 Views

(page loaded in 0.074 seconds)

Similiar Articles:








7/9/2012 2:53:31 AM


Reply: