1NM-ONLINE(1) General Commands Manual NM-ONLINE(1)
2
3
4
6 nm-online - ask NetworkManager whether the network is connected
7
9 nm-online [ OPTIONS ]
10
11
13 nm-online is a utility to find out whether we are online. It is done by
14 asking NetworkManager about its status. When run, nm-online waits until
15 NetworkManager reports an active connection, or specified timeout
16 expires. On exit, the returned status code should be checked (see the
17 return codes bellow).
18
19
21 -t, --timeout <timeout_value>
22 Time to wait for a connection, in seconds. If the option is not
23 provided, the default timeout is 30 seconds.
24
25 -x, --exit
26 Exit immediately if NetworkManager is not running or connecting.
27
28 -q, --quiet
29 Don't print anything.
30
31
33 0 Success - already online or connection established within given
34 timeout
35
36 1 Offline or not online within given timeout
37
38 2 Unspecified error
39
40
42 nm-tool(1), nmcli(1), NetworkManager(8).
43
44
45
46 11 July 2013 NM-ONLINE(1)