Operating systems, development tools, and professional services
for connected embedded systems

Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation

QNX Community Resources

pwmclock
[Previous] [Contents] [Index] [Next]

pwmclock

Position a system clock

Syntax:

pwmclock [-S i|n] [-s server] [-x x_pos] [-y y_pos]

Options:

-S i|n
Specify initial window state (i - iconify, n - normal).
-s server
Specify server node or device name to display clock on.
-x x_pos
Initial x_pos position of window.
-y y_pos
Initial y_pos position of window.

Description:

This utility lets you display and set the system time. To set the time, double-click on the clock on the Taskbar.

The RTC option sets the clock chip by invoking the rtc utility. For more information see the QNX Utilities Reference.


Note: The pwmclock utility runs as setuid root. If you don't want users to be able to set the time, you can remove the pwmclock utility from /usr/photon/bin, or change the permission e.g.
chmod -s pwmclock.

Examples:

Run a clock using Photon server on node 4:

pwmclock -s4

Or

pwmclock -s//4/dev/photon

Run a clock at initial position (10,10) with an initial dimension of 200*300:

pwmclock -x10 -y10 -h200 -w300


[Previous] [Contents] [Index] [Next]