Sponsored Content
Full Discussion: 7 segement LCD unix clock
Top Forums UNIX for Dummies Questions & Answers 7 segement LCD unix clock Post 183 by Astudent on Sunday 5th of November 2000 02:50:17 PM
Old 11-05-2000
Hi,
Anyone ever write a unix clock program that display the clock out in 7 segment LCD style.

I tried doing one with case statements:

!/usr/bin/ksh
clock=`date`
case $clock in
#This prints out the number 0
0)
echo " -"
echo "| |"
echo
echo "| |"
echo " -"
;;

#This prints out the number 1
1)
echo
echo "|"
echo
echo "|"
echo

Etc, to the rest of the number 2-9.
But I want the clock to print out line by not number by number.(5 lines) All with "-" and "|".
Including military format, hours, minutes, seconds.
So I thought of doing some sort of for loop which would have to execute 6 times(2 for every set - hours,minutes,seconds)
I am really confused.

Thanks,

A
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sincronization clock unix with windows server..

hi all... how i can sincronization clock solaris server with windows server....both servers i connected in the same network... thank you.... Best Regards... (4 Replies)
Discussion started by: chanfle
4 Replies

2. SCO

LCD, only 22 lines?

I have a client running SCO openserver 5.0.4, character based The old 17" tube monitor died, and I replaced with an LCD monitor. I can only see 22 lines of text on-screen at a time. The LCD's have setup adjustment for scrolling up and down, but not to zoom in and out to make it fit. I swapped... (3 Replies)
Discussion started by: waywardfool
3 Replies

3. AIX

LCD codes on a P570

Anyone out there know what the LCD code 0569 means. I have a list of codes but 569 is not on it. (5 Replies)
Discussion started by: johnf
5 Replies

4. UNIX for Dummies Questions & Answers

Clock in Unix using awk

Hey everyone! Can someone help me, i need to make a program using awk, that displays the current time (hh/mm/ss), i would really apreciate it! Thanks! Alex. (4 Replies)
Discussion started by: alex_omul
4 Replies

5. UNIX for Dummies Questions & Answers

Real time of a clock for every 60 seconds in unix

hi can any one guide me on how to display real time of a clock in unix for every 60 seconds (2 Replies)
Discussion started by: ramnadh_babu
2 Replies

6. Ubuntu

Webin cannot lcd

Hi all, I am using a ubuntu 9.4 server as ftps server. We have scripts that transfer files to our customers and it is scheduled by a cron job via webmin 1.510. Here is a sample of my script psftp user@hostname lcd /FolderA/Outgoing cd FolderREm mput * When I run a cron job manually the... (0 Replies)
Discussion started by: Marko75
0 Replies

7. UNIX for Advanced & Expert Users

The UNIX clock/timer interrupt

The book The Design of the Unix Operating System speaks of a clock or timer that is used in scheduling. The clock generates interrupts that update priority information for processes and preempt processes in a round-robin fashion. It's apparent that this "clock" is not the same thing as the CPU... (1 Reply)
Discussion started by: Ultrix
1 Replies
CLOCK(1)						      General Commands Manual							  CLOCK(1)

NAME
clock - display the time in an icon or window SYNOPSIS
clock AVAILABILITY
This command is available with the OpenWindows environment. For information about installing OpenWindows, refer to the OpenWindows Instal- lation and Start-Up Guide. DESCRIPTION
clock is an OpenWindows XView utility that displays the current time in a window or icon. When the window is open, clock can display the time in either analog or digital format. The clock window is scalable in either format. USAGE
When the clock window is open, it has a floating menu from which you can bring up a property window. From this property sheet, you can modify the display of the tool by selecting either the Analog or Digital choice box. Seconds: On the analog version, this selection starts a second hand on the face of the clock. On the digital version, it adds two dig- its to the digital readout. Date: Turns on a date display for both analog and digital versions of clock. BUGS
If you reset the system time, clock will not reflect the new time until you change its window state from open to icon, or vice versa. To reset the system time, see date (1V). The date display does not go well with the round clock face. Occasionally, when clock is uncovered, the face will be visually corrupted. Use the Refresh button from the frame menu to repair. 11 June 1990 CLOCK(1)
All times are GMT -4. The time now is 11:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy