GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
piano(1) FreeBSD General Commands Manual piano(1)

pianoCommand interface to pianod(1).

piano [-cdvgm] [-r] [-s] [-h host] [-p port] [-U username] [-P password] [command [Arguments ...]]

piano issues commands to and retreives data from pianod(1), allowing shell scripts or interactive access without having to go through telnet(1) or nc(1). Options allow formatting data in various ways, either convenient for reading (interactive use) or in more raw forms (for further processing).

If no command is given, retrieves the playback status (playing, paused, stopped, etc.) instead of issuing a command; status is indicated only by exit status unless -v is given.

In output, include numeric status codes.
Data only; in output, strip the field names.
Verbose. Output status text instead of just returning a status code. Applies to checking status or playlist.
Report diagnostic information (3xx messages).
Multiple record format. Includes pianod's end-of-data message at the end of the output, which is extraneous for single records but useful when processing multiple records.
Report remaining time in current track. Returned as a number of seconds, suitable for passing to sleep(1).
Use a secure connection.
host
The host on which pianod is running. Defaults to localhost, or $PIANOD_HOST if set.
port
The port at which to connect to pianod. By default, connections are attempted at 4445. piano can connect to either the line or HTTP port.
user
The user to authenticate on the server. Not all commands require authentication; if neither this option or the corresponding environment variable are indicated, then authentication is not performed.
password
The password to authenticate with.

The exit statuses are:

0
Success, or the server is playing (including between tracks or stalled).
1
Command or query error, or the server is paused or stopped.
254
A transport mechanism cannot be found.
255
Server cannot be reached, did not respond, or otherwise did something unexpected

The pianod host to connect to.
The port at which to connect to pianod.
The username to authenticate with.
The password with which to authenticate.

None.

Perette Barella <perette@deviousfish.com>.

Copyright Perette Barella. piano is available under the MIT license.

pianod(1), runmix(1), football(3)

2013-04-21 UNIX/Linux/Darwin

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.