table of contents
OBEXPUSHD(1) | User commands | OBEXPUSHD(1) |
NAME¶
obexpushd - receive files with OBEX protocol via Bluetooth or network connection
SYNOPSIS¶
obexpushd [-B [[[address]:]channel]] [-I[app]] [-N [[[address]:]port]] [-p file] [-A] [-a file] [-o directory] [-s file] [-n | -d] [-h | -v]
DESCRIPTION¶
obexpushd is a program that can be used to receive files using OBEX (OBject EXchange) protocol over Bluetooth or network connection. It can be used to receive files from mobile phones and other devices.
When run without -d or -n options obexpushd puts itself to the background and starts to listen for incoming connections via Bluetooth (default) and/or network connection(TCP). obexpushd saves all received files to it's current directory but can alternativly forward all received data to a script for further processing.
OPTIONS¶
-B
-N
-p
-A
-a
-o
-s
This requests data to be stored to a specific file. obexpushd is waiting for an acknoledge after the list of parameters. The script must either print a line with "OK" to stdout to get the data on stdin or a line with any other content to reject the transfer.
This requests a specific file to be sent to stdout. Just exit the script with a non-zero exit status to reject the transfer.
This requests a directory listing to be sent to stdout. You can use the provided obex-folder-listing to achieve a correctly formatted listing. Just exit the script with a non-zero exit status to reject the transfer.
This requests an obex capability object (XML formatted data) to be sent to stdout. Just exit the script with a non-zero exit status to reject the transfer.
This requests creation of a new directory. No data is transferred. Just exit the script with a non-zero exit status to reject the request.
This requests deletion of a file. No data is transferred. Just exit the script with a non-zero exit status to reject the request.
Further parameters are fed to the script via stdin. Parameters that are transmitted via stdin or stdout have the form "Parameter: value". The first empty line seperates parameters and data. The empty line can be the first line. In this case, no parameters are present. Line delimiter is system specific. The possible parameters are:
This specifies the client address. Currently, types can be "bluetooth", "tcp" or "usb".
Usage: always present on stdin.
This specifies the file name.
Usage: present on stdin for "put", "get" and "delete".
This specifies the amount of data in bytes in the data section that follows.
Usage: required on stdout for "get", else optional.
This specifies the mime type of the data.
Usage: completely optional.
This defines a time stamp where time-string is a time in ISO-8601 format (YYYYMMDDThhmmssZ).
Usage: completely optional.
This defines a relative path to the published base directory.
Usage: present on stdin for "put", "get", "listdir", "createdir" and "delete".
Unknown parameters shall be ignored.
-n
-d
-h
-v
AUTHORS¶
Hendrik Sattler <post@hendrik-sattler.de>
Eugeniy Meshcheryakov <eugen@debian.org>
2010-11-02 | obexpushd 0.11 |