---
name: "ptal-device"
section: "8"
platform: "linux"
package: "hpoj"
version: "0.91-14"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ptal-device"
---

# ptal-device(8)

## NAME

hpoj reference: `"ptal-device"`

## SYNOPSIS

ptal-device

## DESCRIPTION

The `"ptal-device"` command-line utility lists device names which have been registered with "ptal-init setup".

## EXAMPLES

To list the device ID strings of all devices:

for dev in \`ptal-device\` ; do echo echo `$dev` echo ptal-devid `$dev` echo done

To set the clocks of all devices:

for dev in \`ptal-device\` ; do ptal-hp `$dev` clock -set done

## NOTES

Device names are listed on standard output, one per line, with no indention or other extraneous information.  It is therefore useful for scripting purposes, as demonstrated by `"ptal-cups"`. Running `"ptal-init"` with no parameters is another way to list known device names, but it provides more information so doesn't lend itself as well to scripting.
