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: X Forwarding requirements - comp.unix.solaris... SunOS 5.10 Generic January 2005 % setenv DISPLAY 192.168.1.101:0 % xclock 2 ... Rainer Beushausen wrote: > Probably you have to configure your Linux box to not start ... Unable to launch GUI from a Solaris 10 server - comp.unix.solaris ...did you also try for / usr/openwin/bin/xclock after setting up DISPLAY parameter ... Hello, I am attempting to configure a Solaris 10 server to do LDAP authentication to ... setting DISPLAY variable - comp.sys.hp.hpuxxclock fail with "Error: Can't open display:" on "ssh -X" - comp ... ssh x11 ... Solution Using Linux, and especially configuring Linux, normally require some insight ... comp.unix.solaris - page 428xclock source code 3 155 (4/3/2004 5:06:33 PM) Hello everyone, I'm writing a new ... please help with sunscreen configuration 0 63 (4/3/2004 9:57:39 AM) hi, I have a Sparc box ... SSH cannot login , remote system say /bin/bash: no such file or ...... OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration ... seconds it reports that it cannot open display on remote ... 101:0 % xclock 2 If ... [SOLVED] Configuring xclock in RHEL 5 - LinuxQuestions.orgHi All, I want to configure the xclock in RHEL 5 can any assist me in configuring the xclock option. Thanks Solaris Operating System: configuring xclock - software.itags.orgsoftware.itags.org: Solaris Operating System question: configuring xclock, created at:Sat, 17 May 2008 14:20:00 GMT with 543 bytes, last updated: Sunday, July 01 ... 7/9/2012 2:53:31 AM
|