configuring xclock

  • Permalink
  • submit to reddit
  • Email
  • 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

See related articles to this posting


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
comp.unix.solaris 25762 articles. 87 followers. Post

5 Replies
549 Views

Similar Articles

[PageSpeed] 2


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

How to configure Solaris 10, to run remotely x window applications such as xclock, xcal in my local win 2000 computer?
Hi, I have two computers. One is a server computer with solaris 10 installed on it, and other one is a window 2000 with Exceed and PUTTY Tools installed. I can login remotely to my Solaris 10 server using PUTTY in my Window 2000, but I am not able to run the xclock command! I first ran the following command below, in my Window 2000: bash-3.00$ export DISPLAY="mylocalcomputername:0.0" And then I ran the xclock command, but it doesn't work: bash-3.00$ xclock The error I am getting is: bash-300$ xclock: command not found! Any ideas? Thanks in advance. Ed On Fri,...

pgsql-server/. configure configure.in
CVSROOT: /cvsroot Module name: pgsql-server Changes by: pgsql@svr1.postgresql.org 03/09/15 11:32:35 Modified files: . : configure configure.in Log message: tag her for beta3, as announced on Friday ... ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ...

how to configure fax server configuration
hi friends, I want to configure Fax Server means one pc have facilty to send fax using modem. but my other 500 client would be send fax using this 2003 server. so any body know about. please start this topic and give some solution. in further work i have find fax server is available in windows 2003 server i have installed. it provides fax sharing. when i am installing fax on other machine it ask. you need to restart fax service. when i am restarting it it ask for modem installed on machine. that thing i do not want. modem is installed on one machine other machine should be conn...

pgsql-server/. configure.in configure
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 03/10/15 19:23:57 Modified files: . : configure.in configure Log message: Cause the default CFLAGS to be -O2 -fno-strict-aliasing when using gcc, per recent pghackers discussions. Also ensure that explicitly setting CFLAGS in the configure environment will be honored. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@post...

different between configure libraries and configure JDKs
Hello all Could you please tell me the differences between them. Can I configure JDKs alone....and do not touch libraries. Thank you SH1 ...

Configuring BST/GMT without *Configure
Is there a way to *Configure GMT/BST without using *Configure? An ARM proggy of mine is falling over on machines with non UK territories. Thanks Jon. Hi, On 30 Dec 2003, Jon Ripley wrote: > Is there a way to *Configure GMT/BST without using *Configure? The DST bit is stored in the CMOS RAM. You can alter the CMOS RAM with OS_Byte 162 (PRM 1-365). According to StrongHelp, the DST bit is stored in bit 7 of CMOS byte 220.. http://www.drobe.co.uk/show_manual.php?manual=/sh-cgi?manual=OS%26page=os_bytecmos220> The bit is high when BST/DST is configured, and low when GMT is configured...

SuSe Network Configuration and Internet Configuration
Hi im Cyph3r and would like any available help on how to configure the network, its a SuSe 7.1 OS and it is an Ethernet Network, Please help me as quickly as possible.... thanks! Cyph3r :D -- Cypher Student On Sat, 29 Jan 2005 11:04:55 +0000, Cypher <Cypher.1jmajy@dev.null.thisishull.net> wrote: > >Hi im Cyph3r and would like any available help on how to configure the >network, its a SuSe 7.1 OS and it is an Ethernet Network, Please help >me as quickly as possible.... thanks! > >Cyph3r :D It's obvious that you're either a troll o...

pgsql-server/ /configure /configure.in onfig/a ...
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 03/09/07 00:43:58 Modified files: . : configure configure.in config : ac_func_accept_argtypes.m4 src/bin/pg_id : pg_id.c src/bin/pg_resetxlog: pg_resetxlog.c src/bin/psql : describe.c mbprint.c src/bin/scripts: Makefile common.c src/include : pg_config.h.in src/interfaces/libpq: Makefile Log message: Changes for MinGW/WIN32: o allow configure to see include/port/win32 include files o add matching Win32 accept() prototype o allow pg_id to comp...

pgsql-server/. configure configure.in #2
CVSROOT: /cvsroot Module name: pgsql-server Changes by: pgsql@svr1.postgresql.org 03/10/03 00:08:14 Modified files: . : configure configure.in Log message: brand her beta4 ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly ...

pgsql-server/. configure configure.in #3
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 03/10/13 21:48:09 Modified files: . : configure configure.in Log message: Add compile -O flag only for non-debug mode, per Tom ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster ...

pgsql-server/. configure configure.in #15
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/04/25 21:44:39 Modified files: . : configure configure.in Log message: Exit with non-zero error on thread test failures. ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend ...

pgsql-server/. configure configure.in #18
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/04/27 17:06:52 Modified files: . : configure configure.in Log message: Enable thread testing outside the source tree. ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org ...

pgsql-server/. configure configure.in #20
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/05/12 22:45:02 Modified files: . : configure configure.in Log message: Warn when MinGW fails to create symlinks during configure. Report already made to MinGW maintainers. Andrew Dunstan ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster ...

pgsql-server/. configure configure.in #21
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/05/13 19:59:14 Modified files: . : configure configure.in Log message: Refactor code to warn about configure link failures on MinGW. ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org ...

pgsql-server/. configure configure.in #22
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/05/17 16:14:47 Modified files: . : configure configure.in Log message: Improve configure win32 link test to run from config.status. Andrew Dunstan ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ...

pgsql-server/. configure configure.in #23
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/05/19 19:36:36 Modified files: . : configure configure.in Log message: Revert irix change to suppress configure warnings. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) ...

pgsql-server/ /configure /configure.in ontrib/ ...
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 03/08/07 18:11:58 Modified files: . : configure configure.in contrib/pg_autovacuum: pg_autovacuum.h contrib/pg_dumplo: main.c src/bin/pg_dump: pg_dump.c pg_dumpall.c pg_restore.c src/bin/psql : startup.c src/bin/scripts: common.h src/include : getopt_long.h pg_config.h.in Log message: Don't assume that struct option is available just because we can find a getopt_long(). This is more or less the same problem as we saw earlier with getaddrinfo() and struct add...

pgsql-server/. configure configure.in #4
CVSROOT: /cvsroot Module name: pgsql-server Changes by: pgsql@svr1.postgresql.org 03/10/22 01:16:39 Modified files: . : configure configure.in Log message: up configure to beta5 ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match ...

pgsql-server/. configure.in configure #2
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 03/10/28 16:26:51 Modified files: . : configure.in configure Log message: Guard against Ant versions that print CLASSPATH before the version number in -version output. Per report from Johann Uhrmann. ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org ...

pgsql-server/. configure configure.in #5
CVSROOT: /cvsroot Module name: pgsql-server Changes by: pgsql@svr1.postgresql.org 03/11/03 01:27:18 Modified files: . : configure configure.in Log message: tag it Release Candidate 1, as previously discussed ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org ...

pgsql-server/. configure.in configure #3
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 03/11/03 10:42:09 Modified files: . : configure.in configure Log message: Tag HEAD as 7.5devel. ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings ...

pgsql-server/. configure configure.in #6
CVSROOT: /cvsroot Module name: pgsql-server Changes by: petere@svr1.postgresql.org 03/11/27 14:14:02 Modified files: . : configure configure.in Log message: Make sure vpath_build is set correctly even if config.status --no-create was specified. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ...

pgsql-server/. configure configure.in #7
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/03/02 16:08:52 Modified files: . : configure configure.in Log message: Update bison warning to be clearer about its purpose. ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings ...

pgsql-server/. configure configure.in #8
CVSROOT: /cvsroot Module name: pgsql-server Changes by: momjian@svr1.postgresql.org 04/03/03 13:37:22 Modified files: . : configure configure.in Log message: Fix wording of new bison warning, per Peter. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html ...