---
name: "dahdi_waitfor_span_assignments"
section: "8"
platform: "linux"
package: "dahdi"
version: "1:3.1.0-2.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dahdi_waitfor_span_assignments"
---

# dahdi\_waitfor\_span\_assignments(8)

wait for DAHDI spans to get (un)assigned

## NAME

dahdi\_waitfor\_span\_assignments - wait for DAHDI spans to get (un)assigned

## SYNOPSIS

**dahdi\_span\_assignments assigned**

**dahdi\_span\_assignments unassigned**

## DESCRIPTION

DAHDI spans get assigned / unassigned asynchronously.

**dahdi\_span\_assignments** is a helper script that allows running commands after all the spans have been assigned or unassigned.

It takes a single command: **assigned** or **unassigned** and waits (up until a timeout of 5 seconds) for all the DAHDI spans in the system to do so.

Note that if the system has a span that will not get assigned automatically (e.g.: it's not in assigned-spans.conf), this program does not know and will wait until a timeout.

## EXAMPLES

 modprobe wctdm24xxp\
  dahdi\_waitfor\_span\_assignments assigned\
  do\_something

 dahdi\_span\_assignments add\
  dahdi\_waitfor\_span\_assignments assigned\
  do\_something\_else

 dahdi\_span\_assignments remove\
  dahdi\_span\_assignments unassigned\
  do\_something\_completely\_different

## SEE ALSO

[dahdi\_span\_assignments(8)](/dahdi_span_assignments/8.md)

## AUTHOR

dahdi\_waitfor\_span\_assignments was written by Oron Peled.  This manual page was written by Tzafrir Cohen. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any  later version published by the Free Software Foundation.
