ACCEL-CMD(1)

πŸ“¦ version 1.14.0, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

πŸŽ€ ACCEL-CMD(1) πŸŽ€

accel-cmd is the manual name, and it's the page for the General Commands Manual πŸ’… It's giving official, but I'm making it cute.

✨ NAME ✨

accel-cmd β€” send commands to accel-ppp πŸ“¨

πŸ’Œ SYNOPSIS πŸ’Œ

accel-cmd [-n] [-4] [-6] [-f FAMILY] [-H HOST] [-p PORT] [-i TIMEOUT]
[--] [COMMAND]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so accel-cmd is a client for accel-ppp's cli module 🧚 It sends your COMMANDs over accel-ppp's tcp interface and shows you the result on standard output. Literally that simple. If you don't give it a COMMAND, it reads and sends whatever comes in on standard input instead, so you can feed it a whole list πŸ’–

The help COMMAND is your bestie for figuring out which COMMANDs exist and how to write them. Use it whenever you're lost 🫢

🌸 OPTIONS 🌸

  • -f FAMILY, --family=FAMILY β€” picks the protocol family to connect with. You can choose inet (IPv4), inet6 (IPv6), or unspec (automatic) 🌈
  • -4 β€” shortcut for --family=inet πŸ“
  • -6 β€” shortcut for --family=inet6 πŸ“
  • -H HOST, --host=HOST β€” the host name or IP address you want to connect to. It defaults to localhost 🏠
  • -p PORT, --port=PORT β€” the service name or port number to connect on. It defaults to 2001 ✨
  • -n, --numeric β€” turns off name resolution for HOST and PORT. Since that's the case, HOST has to be an IP address and PORT has to be a numeric port number πŸ”’
  • -t TIMEOUT, --timeout=TIMEOUT β€” sets an inactivity timeout. TIMEOUT must be an integer and can be followed right away by a time unit: s (seconds), ms (milliseconds), or us (microseconds). The default unit is s. If you skip this option, or TIMEOUT is zero, then no timeout gets set ⏰
  • -P PASSWORD, --password=PASSWORD β€” sets the password πŸ”. If you supply it and PASSWORD isn't empty, that password gets used for client authentication πŸ”‘
  • -v, --verbose β€” verbose output, so you get all the tea πŸ«–
  • -V, --version β€” shows the version number and then exits πŸ¦‹
  • -h, --help β€” shows the help message and then exits πŸ’…

πŸ“ EXAMPLES πŸ“

Get information about available commands:

$ accel-cmd help

Send the "show sessions" command to accel-ppp on localhost and display the result on standard output:

$ accel-cmd show sessions

Execute commands stored in file "cmds":

$ accel-cmd < cmds

Same as above, but send commands to another host and timeout after 1.5 seconds of inactivity:

$ accel-cmd --timeout 1500ms --host accelppp.example.com < cmds

🚦 EXIT STATUS 🚦

  • 0 β€” success πŸ₯³
  • 1 β€” invalid command line option πŸ™ˆ
  • 2 β€” invalid parameter given to a command line option 🫠
  • 3 β€” connection to accel-ppp failed πŸ’€
  • 4 β€” timeout expired ⏰
  • 5 β€” COMMAND too big. Standard input can be used instead if you need to send big amounts of data πŸ“¦
  • 100 (or above) β€” internal error 😭
⚠️ bestie, if you're sending a huge amount of data, don't cram it into COMMAND. Pipe it in through standard input with accel-cmd < file instead, or you'll get exit status 5.

Written with love and a lot of πŸ’– for ACCEL-CMD(1), last updated January 2013 🌈 Stay iconic, stay hydrated, and keep those sessions shown πŸ’œβœ¨

πŸ“¦ where this page comes from