container=$(docker container ls --format 'table {{.Names}}')
надо сделать container=$(docker container ls --format '{{.Names}}')
#!/bin/bash
container=$(docker container ls --format '{{.Names}}');
for i in $container
do
docker exec -u root -it $i netstat -natu | grep -c ESTABLISHED;
done
alter database DB_NAME owner to USER_NAME;
client-to-client
- name: For host1 and host2
hosts: host1,host2
roles:
- role1
- role2
- role3
- name: For host3
hosts: host3
roles:
- role2
- role4
$ ps ax | grep Telegram
71201 ? Sl 0:09 /home/user/Downloads/Telegram/Telegram -workdir /home/user/.local/share/TelegramDesktop/ --
71521 pts/4 S+ 0:00 grep --color=auto Telegram
$ ls /home/user/.local/share/TelegramDesktop/
log.txt tdata
push "redirect-gateway def1"
push "route x.x.x.x 255.255.255.255 net_gateway"
route x.x.x.x 255.255.255.255 net_gateway
/usr/etc/stunnel/
# /usr/bin/stunnel
[ ] Clients allowed=512000
[.] stunnel 5.56 on x86_64-pc-linux-gnu platform
[.] Compiled/running with OpenSSL 1.1.1 11 Sep 2018
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno_location ())
[.] Reading configuration from file /usr/etc/stunnel/stunnel.conf
...
TIMEOUTconnect = 20
в файл /usr/etc/stunnel/stunnel.conf