Scon » History » Version 5
Per Amundsen, 02/16/2023 03:12 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */scon [-arstN] <N> [command]* |
||
4 | |||
5 | 3 | Per Amundsen | Changes the active connection for a script to connection id N, where N is the Nth connection. |
6 | 1 | Per Amundsen | All commands after the /scon command will be performed on the new connection id. |
7 | If you specify the command parameter, the connection id is set only for that command. |
||
8 | |||
9 | *Switches* |
||
10 | |||
11 | 5 | Per Amundsen | table(ktable). |
12 | |*Switch*|*Description*| |
||
13 | | -a | Perform the command on all connection id's. | |
||
14 | | -r | Resets the connection to the original id. | |
||
15 | | -s | makes any called commands or identifiers show their results. | |
||
16 | | -tN | limits the command to being performed only on servers with a certain connection status, where N is an "OR'd":https://en.wikipedia.org/wiki/Bitwise_operation#OR value of 1 = server connected, 2 = not connected, 4 = connecting, 8 = not connecting. | |
||
17 | 1 | Per Amundsen | |
18 | 3 | Per Amundsen | *Parameters* |
19 | 1 | Per Amundsen | |
20 | 5 | Per Amundsen | table(ktable). |
21 | |*Parameter*|*Description*| |
||
22 | | <N> | The Nth connection id. | |
||
23 | | [command] | Command to execute on the connection. | |