发布于2022-01-09
拉取镜像
mkdir -p ~/data/docker_data/haxCartTGChecker ## 在docker_data文件夹下创建Ward文件夹
cd ~/data/docker_data/haxCartTGChecker ## 进入文件夹
git clone https://github.com/Misaka-blog/haxCartTGChecker.git ## 在创建的文件夹下克隆项目并构建镜像
安装教程
先去botfather获取bot token,然后在vps内使用一下命令安装bot
apt-get update
apt-get upgrade -y
apt install -y python3 python3-pip
pip3 install -r requirements.txt
运行方式
建议使用screen工具托管本bot,运行命令为:python3 bot.py
安装 screen 工具
参考:https://zhuanlan.zhihu.com/p/355579932
sudo apt install screen -y
- 在 CentOS 中,你需要先安装 epel-release 才可以安装 screen( 在 CentOS 中安装软件使用 yum 或者 dnf )
会话共享
在 A 主机上创建一个名为 it 的 screen 会话
it@serverc:~$ screen -S it
在 B 主机上,通过 ssh 连接到 A 主机,并查通过 -ls 选项看当前已经存在的 screen 会话
it@workstation:~/ansible$ ssh it@10.10.10.108
it@10.10.10.108's password:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-60-generic x86_64)
... ... ... ...
... ... ... ...
Last login: Thu Jan 14 13:57:32 2021
it@serverc:~$ screen -ls
There is a screen on:
2107.it (01/14/21 07:30:27) (Attached)
1 Socket in /run/screen/S-it.
然后加入到该会话
it@serverc:~$ screen -x it
这样就可以两边共享一个 screen 会话,不管谁运行什么命令,另一个都可以看到;
当你需要退出会话时,你可以运行 exit 来退出会话(当运行 exit 时,两边都会退出 screen 会话。),也可以通过 Ctrl + A, D (Ctrl + A 然后按 D,退出单个会话)。
当网络中断或窗口意外关闭后,任务继续运行
在 Linux 打开两个终端窗口,我们分部称他们为 A 窗口和 B 窗口,在 A 窗口中运行 ping
it@workstation:~$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=1.21 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=1.22 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=1.19 ms
... ... ... ...
... ... ... ...
然后在 B 窗口,运行 ps aux 获取系统进程,然后通过 grep 进行筛选
it@workstation:~$ ps aux | grep ping
it 2336 0.0 0.2 317144 8740 ? Ssl 2020 0:17 /usr/libexec/gsd-housekeeping
it 153585 0.0 0.0 12764 872 pts/3 S+ 14:53 0:00 ping 10.10.10.1
it 153646 0.0 0.0 12108 736 pts/2 S+ 14:56 0:00 grep --color=auto ping
我们看到 ping 正在运行
当关掉 A 窗口后,我们再到 B 窗口(此时就只有一个窗口了)运行之前的 ps aux 命令
it@workstation:~$ ps aux | grep ping
it 2336 0.0 0.2 317144 8740 ? Ssl 2020 0:17 /usr/libexec/gsd-housekeeping
it 153651 0.0 0.0 12108 2964 pts/2 S+ 14:57 0:00 grep --color=auto ping
此时 ping 命令已经结束了
重新打开一个新的终端窗口,作为 A 窗口,运行 screen
it@serverc:~$ screen -S test
然后在 screen 窗口中运行 ping 命令
it@workstation:~$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=1.21 ms
64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=1.15 ms
64 bytes from 10.10.10.1: icmp_seq=3 ttl=64 time=1.21 ms
... ... ... ...
... ... ... ...
然后关闭 A 窗口,回到 B 窗口,运行 ps aux 命令;
it@workstation:~$ ps aux | grep ping
it 2336 0.0 0.2 317144 8684 ? Ssl 2020 0:17 /usr/libexec/gsd-housekeeping
it 154964 0.0 0.0 12768 940 pts/3 S+ 15:02 0:00 ping 10.10.10.1
it 154986 0.0 0.0 12108 736 pts/4 S+ 15:05 0:00 grep --color=auto ping
我们发现 ping 命令还在继续运行
当我们想回到之前的 ping 会话,可以通过 screen -r 恢复会话
it@workstation:~$ screen -r test
- 如果只有一个 screen 会话,后面的会话名称可以省略不写,如果你不知道,或者忘了会话命令,你可以通过 screen -ls 查看当前主机运行的 screen 会有。
Car Phone Holder 游客 2023-11-30 09:24 回复
Car Aromatherapy
Bimetallic Lugs
PG Clamp
Telecom Drop Wire Clamp
treatec.myjino.ru
Car Air Pump
Car Phone Holder
Window Hammer 游客 2023-11-30 06:33 回复
ksdure.or.kr
Acetic Acid Vinegar
Powder Coating Garden Euro Panel Fence
Seaweed Extract
Automotive Tools
Dent Puller
Window Hammer
Recyclable Chew ETPU Toys 游客 2023-11-30 02:08 回复
Interactive Rope Chew Dog Toy
Bouncy ETPU Chewing Toys
Variable Speed Controller For Dc Motor
me.mondomainegratuit.com
Single Phase Speed Control Motor
Three Phase Induction Motor
Recyclable Chew ETPU Toys
Poly Bag 游客 2023-11-29 13:00 回复
Retort Pouch
sceaindia.org
Cookie Resealable Bags
Fiber Reinforced Composite Light Pole
FRP Street Light Pole
Fiber Glass Reinforced Composite Poles
Poly Bag
Plastic Detangling Brush 游客 2023-11-29 04:19 回复
Carbon Stee Pipe
LSAW Tubes
Round Plastic Hair Brush
API 5L LSAW
Plastic Paddle Hair Brush
www.zolybeauty.nl
Plastic Detangling Brush
www.sp-plus1.com 游客 2023-11-27 23:52 回复
OEM Cold Drawn Seamless
Ultra Bright 800lm Flexible Mechanic s Inspection Work Light
Motor Accessories
China Cold Drawn Factory
Octg Pipe
Oak Coffee Table
www.sp-plus1.com
Disperse Rubine WF-PUD 游客 2023-11-27 18:42 回复
Pneumatic Slurry Pump
Sb6x5 Centrifugal Pump
Self Priming Slurry Pump
Disperse Yellow Brown SY-YET
sudexspertpro.ru
Disperse Blue RW-SE
Disperse Rubine WF-PUD
Swiss Cnc Lathes 游客 2023-11-27 15:35 回复
Chinese Edm
R&S FPL1000 Spectrum Analyzer
R&S FPC Spectrum Analyzer
R&S FSVR Real-time Spectrum Analyzer
provino.com.kz
Bench Drilling Machine
Swiss Cnc Lathes
Tachyon 100G PCB 游客 2023-11-26 14:44 回复
EM-888 7MM Thick PCB
Megtron6 step PCB
www.transhol.pl
E-light IPL SHR OPT Machine
Nd Yag Laser Buy
Co2 Scar Removal Machine
Tachyon 100G PCB
Recording Microphone 游客 2023-11-26 10:51 回复
Desk Microphone Stand
www.zeroboard4.asapro.com
Ro4003CLoPro PCB
Taconic High Frequency PCB
RO3003 PCB
Round Base Microphone Stand
Recording Microphone
Wholesale Lithium Solar Batteries 游客 2023-11-26 05:30 回复
Working principle and troubleshooting of Solenoid Valve
Brass Waterproof connector
Lithium Ion Solar Battery Manufacturers
Electric Golf Cart Batteries
www.catrinapuchary.pl
Seamless Capri Fleece Leggings
Wholesale Lithium Solar Batteries
Chicken Herbal Medicine In China 游客 2023-11-24 23:13 回复
www.sailingteam43.it
PTFE Sheets
Layer Premix
Compression Gasket Sheet Materials
Spiral Wound Gaskets
Poultry Drugs Distributors Factory
Chicken Herbal Medicine In China
Cup With Straw 游客 2023-11-24 18:08 回复
Pastry Bag
40% Bronze Filled PTFE Teflon Bearing Guide Strip
Water Gun Toy
www.optselmash.myjino.ru
Gold Yellow PTFE Bronze Bearing Wear Strip Tape
60% Bronze Filled PTFE Guide Wear Tape
Cup With Straw
Rubber Gasket Sheeting 游客 2023-11-24 15:16 回复
Industrial Sewing Machine
Electric Loader
Rubber Gaskets
sailingteam43.it
4 Head Embroidery Machine
Rubber-Steel Gaskets
Rubber Gasket Sheeting
Machine for Spiral Wound Gasket Metal Ring 游客 2023-11-24 10:13 回复
www.speelmrgreen.nl
Double Wall Paper
Pe Coated Paper Roll
Spiral Wound Gasket Machines
Kammprofile Grooving Gasket Machine
Paper Portion Cups
Machine for Spiral Wound Gasket Metal Ring
Paint Spraying Machine 游客 2023-11-24 07:44 回复
Crinkled Flexible Graphite Tape with Self-adhesive
Industrial Painting Machine
licom.xsrv.jp
Flexible Graphite Tape Filler for Spiral Wound Gasket
Vermiculite Strip for Spiral Wound Gasket
Liquid Paint Machine
Paint Spraying Machine
How to choose a right Gym Sports Fitness Shoulder Bag 游客 2023-11-23 05:46 回复
haedang.vn
Industrial Parts Supply
Precision Equipment Parts CNC Machine Part
Industrial Parts Supply
Small Heavy Duty Casters
Main classification of power cables
How to choose a right Gym Sports Fitness Shoulder Bag
Widespread Use of HPMC in Plastering Plaster 游客 2023-11-22 19:23 回复
What are the Different Types of Door Locks
ip65 curtain led strip light for backlit billboard
www.fines.co.jp
3.5mm Push Fit Microduct Straight Connector
Brass Pneumatic Fitting
8.5mm Gas Block Connector
Widespread Use of HPMC in Plastering Plaster
wine.thinksmall.vn 游客 2023-11-22 16:21 回复
Plastic Cases
Paperboard Made From 100% Sugarcane Bagasse Fibres
Excavator Mats
Custom Logo Cup Fan
Wholesale PE Coated Paper Cup Fan
Sealing Rings
wine.thinksmall.vn
China Construction Decoration Material 游客 2023-11-22 13:58 回复
Outdoor Pvc Paneling
auto wheel bearing kits vkba1358
How to choose a solar panel for camping
www.bwheater.co.kr
Th role of Centrifugal Pump
Multiport Wall Charger
China Construction Decoration Material
Disposable Surgical Booties 游客 2023-11-22 04:23 回复
R&S FSW8 Signal and Spectrum Analyzer
jazzmouth.org
Medical Scrub Caps
Blue Isolation Gowns
R&S FSVA3050 Signal and Spectrum Analyzer
R&S FSW13 Signal and Spectrum Analyzer
Disposable Surgical Booties
Stainless Steel 316+435 Roofing Bi-Metal Self-Drilling Screw 游客 2023-11-21 18:29 回复
Stainless Steel 316 Scm435 Solar Photovoltaic System Hexagon Flange Bi-Metallic Screw with EPDM Washer
SUS304+410 Bi-metal Ruspert Hex Head Self Drilling Screw
Solid Ceramic Carbide Cutting Tools
Aluminum Sheet Wood Lathe
www.cse-formations.com
CCMT060204 VP15TF Carbide Inserts
Stainless Steel 316+435 Roofing Bi-Metal Self-Drilling Screw
Features of high speed punch 游客 2023-11-20 16:32 回复
deshengst.com
Rullo compressore per costruzione strade
Filter Saturation Alarms
How Laser Cutter Work
Rullo compressore italiano
Rullo compressore alta qualità
Features of high speed punch
Frozen Parsley 游客 2023-11-19 03:23 回复
dongfeng rear brake pad
Frozen Onion Rings For Cooking
What is the function of ski glasses
Ground Garlic
The advantage of Sponge Cutting Machine
thinkplus.tv
Frozen Parsley
High Entropy Alloys Properties 游客 2023-11-18 21:40 回复
28mm Carbon Brush DC Motor
Mercedes All Weather Mats
26mm Carbon Brush DC Motor
30mm Carbon Brush DC Motor
Tungsten Alloys Sputtering Target
www.haedang.vn
High Entropy Alloys Properties
Silver Color 游客 2023-11-18 13:54 回复
Pan Clay Roof Tile
Flat Clay Roof Tile
China Shower Control System factory
Solid Wood Furniture
S Clay Roof Tile
www.rccgvic.com
Silver Color
Drug Declaration Registration English To Chinese 游客 2023-11-18 07:37 回复
Movie Translation Agency
Stamping Parts
www.dinhvisg.com
High Precision CNC Machining Parts
Medicine Translation Service
3 Axis 4 Axis 5 Axis CNC Turning and Milling Machining Parts
Drug Declaration Registration English To Chinese
Air Pressure Regulator Parts 游客 2023-11-17 20:30 回复
Air Dryer And Regulator
Luggage Carts
Pneumatic Solenoid Valve
Folding Luggage Carts
sgceris.com
Laundry Carts
Air Pressure Regulator Parts
Schottky Bridge Rectifier 游客 2023-11-16 20:29 回复
knf.kz
Ip68 Waterproof Solar Junction Box
Tuv Certificate 1500v Universal Mc 4 Connector
Electro-Hydraulic Directional Valve
Four Axis Dual station Plane Milling Machine
Machine Tools Cross Slide Work Table
Schottky Bridge Rectifier
Sweatshirt Aglets 游客 2023-11-16 14:44 回复
What protective measures should be taken for Digital Signage
Aglets Rubber White
Brass Aglet
Architecture Division and Function Introduction of Digital Audio Processor
yumemiya.co.jp
Insoles Arch Sport Support Unisex
Sweatshirt Aglets
Anti UV Colored Medium Tenacity Polyester Industrial Yarn 游客 2023-11-16 12:22 回复
Snowblower Auger Gearbox
Angle Gear
Bevel Planetary Gearbox
Total Bright Colored Medium Tenacity Polyester Industrial Yarn
Anti UV Black High Tenacity Polyester Industrial Yarn
qa.singarea.org
Anti UV Colored Medium Tenacity Polyester Industrial Yarn
Weatherproof Sockets 游客 2023-11-16 10:05 回复
White No Noise OPP Packing Tape
1 inch Super Clear OPP Packing Tape
LED Operation Lamps
Brown No Noise OPP Packing Tape
mihanovichi.hram.by
Weatherproof High Bay Led Lighting Fixtures
Weatherproof Sockets
Brush Flosser 游客 2023-11-16 02:11 回复
Characteristics of Plain Bush Bearing
Solar Pump Submersible Use for House
2288Z Animal full digital ultrasonic machine
Digital Toothbrush
kino-laz.ru
Sonic Waterpik Toothbrush
Brush Flosser
8a Cubic Zirconia Stone 游客 2023-11-15 21:02 回复
925 Silver Gemstone Pendant
Suspension Stabilizer Link 48802-60090
Suspension Stabilizer Link 6G915C486XAB
www.userv.su
Cz Stone Cubic Zirconia 6a
Stabilizer Ball Head 48830-0E020
8a Cubic Zirconia Stone
T Slot Nut 游客 2023-11-15 17:10 回复
Solar PV Tile Slate Solar Roof Hooks Stainless Steel Pressing Parts
High Tensile Stainless Steel Ss304 Solar Accessories Gasket / Washer for Solar Cell Panel
Thread Forming Screws
New Energy Product Photo Voltaic Stainless Steel SUS 304 Solar Panel Mount Roof Hook
Flange Bolt
www.plot28.com
T Slot Nut
Tissue Box 游客 2023-11-15 11:36 回复
Kennel Manufacture
Modern Wooden Dog House
yumemiya.xsrv.jp
Paper Lunch Box
Small Playhouse
Paper Tray
Tissue Box
123 游客 2023-11-15 04:45 回复
www.antheminfotech.com
ASTM A193 B7 /B7m /B16 DIN975 DIN976 Carbon Steel /Stainless Steel Hot DIP Galvanized HDG Stud Bolt Threaded Rod Fully Thread
DIN975 Carbon Steel / Stainless Steel Hot-DIP Galvanized HDG Full Thread Thread Rod Bolt
ASTM A193 DIN975 Stainless Steel/ Carbon Steel Zinc Plated HDG Grade 8.8 Threaded Rod Bolt
Diesel House Generator
35kva Generator
123
www.jofu.tw 游客 2023-11-14 23:12 回复
Connected Cities
Intelligent Street Lighting System For Smart City
M6 M10 DIN603 INOX A4 Stainless Steel 314 316 INOX A2 Carriage Bolt
Stainless Steel 304 Cross Recessed Hexagon Flange Bolt
M5 M6 DIN603 INOX A4 INOX A2 Stainless Steel 314 316 Square Neck Carriage Bolt
Iot Smart City
www.jofu.tw
brancher.com.pl 游客 2023-11-14 12:53 回复
304 316 Stainless Steel DIN 975 DIN976 Stud Bolts Thread Rod
Cryogenic Insulated Tube
M14 Stainless Steel SS304 SS316 DIN976 Thread Rod
Stainless Steel DIN976 Threaded Rods And Nuts Full Threaded Rod
Natural Gas Compressor
China Lng Filling Station
brancher.com.pl
Netural Protease 游客 2023-11-13 13:45 回复
Introduction of new energy battery
www.nunotani.co.jp
120 Grit Aluminum Oxide Blasting Media
What is WRP Ratchet Puller
White Aluminium Oxide
Brown Aluminum Oxide Abrasives
Netural Protease
Superb Fuel Pump 2008-2015 游客 2023-11-13 11:04 回复
Clean Room Panel
Golf/Variant/4Motion Fuel Pump 2009-2014
Color Steel Panel Air Shower Room
fpmontserratroig.cat
Chain Clean Room Door
Yeti Fuel Pump 2010-2013
Superb Fuel Pump 2008-2015
Man Truck Light 游客 2023-11-11 22:05 回复
beta.carrara.poznan.pl
Clutch Part
14 Layer IC Test Board
Cross Blind Buried Hole PCB
Scania Brake Pads
Pressfit Hole PCB
Man Truck Light
How to choose a printing paper box 游客 2023-11-10 18:56 回复
Next Level Shift
auto parts brake pad oem nay0 33 23za brake pads disc kits for mazda
Tri State Level Shifter
automotive shock absorber parts
Op Amp Level Shifter Calculator
www.wiryei.co.kr
How to choose a printing paper box
Bamboo Charcoal Veneer 游客 2023-11-10 09:50 回复
Ceiling Grid Components
www.skylets.or.jp
Pbt Resin
Peek Resin
Medical Grade Peek
Ceiling Grid T Bar
Bamboo Charcoal Veneer
Tiller Machine 游客 2023-11-09 07:03 回复
Yard Tiller
Elastic Moleskin Cloth Cover Notebook Printing
Spiral Bound Note Printing
smkn3cimahi.sch.id
Wire-O Spiral Planner Printing
Gasoline Engine Water Pump
Tiller Machine
Tubular Knit Fabric Machine 游客 2023-11-08 12:10 回复
Standard Laundry Carts With Double Pole Rack
Top Circular Knitting Machines
Large Capacity Rolling Wire Utility Laundry Carts
Folding Portable Luggage Carts
www.opaleimpressions.com
Latest Circular Knitting Machines
Tubular Knit Fabric Machine
www.smkn3cimahi.sch.id 游客 2023-11-07 18:27 回复
N5245B PNA-X Network Analyzers
Metal Control Panel Enclosure
Waterproof Control Panel
N5244B PNA-X Network Analyzers
Motor Control Center
N5242B PNA-X Network Analyzers
www.smkn3cimahi.sch.id
Caster Of Wheel 游客 2023-11-07 15:15 回复
www.inovstart.pt
Castor For Furniture
What are the characteristics of metal stamping parts
Commerical Disposable Shower Curtains
Function of the Waterjet Intensifier
Furniture Casters And Wheels
Caster Of Wheel
N9912A FieldFox Handheld Microwave Spectrum Analyzer 游客 2023-11-07 12:13 回复
N9925A FieldFox Handheld Microwave Spectrum Analyzer
Small Folding Dining Table
Narrow Folding Table
Personal Folding Table
www.modecosa.com
N9923A FieldFox Handheld Microwave Spectrum Analyzer
N9912A FieldFox Handheld Microwave Spectrum Analyzer
Window Ac Controller 游客 2023-11-07 04:04 回复
Pro Central Air Thermostat
FieldFox Handheld RF and Microwave Analyzers
X-Series Signal Analyzers
Pro Central Air Thermostat
Signal and Spectrum Analyzers
www.portal.knf.kz
Window Ac Controller
Performance of Super Duplex Steel Plate Flanges 游客 2023-11-06 22:00 回复
Lever Lock
Smart Deadlock
40ft 4 axles flatbed semi trailers with BPW 13T axle
Digital Knob Lock
Type of Screw PCB Terminal Block
www.slserwis.pl
Performance of Super Duplex Steel Plate Flanges
Dry Coater For Burger 游客 2023-11-06 11:55 回复
A3 Fuel Pump 2015-2021
ブランドコピー激安アクセサリー
Dry Coater For Burger
Dee Shackle with Round Pin 游客 2023-11-02 15:31 回复
Single Room Ventilation System
iphone8ケースブランドコピー激安
Dee Shackle with Round Pin
https://jobs42.ru 游客 2023-10-07 05:52 回复
Работа в Новокузнецке
Roubbogma 游客 2023-05-21 20:30 回复
cialis online prescription ASCO is supported by its affiliate organization, the Conquer Cancer Foundation
Roubbogma 游客 2023-05-06 00:46 回复
buy priligy 020; adjusted hazard ratio, 2
prienly 游客 2022-09-20 02:18 回复
cialis online without prescription Headache, flushing, stuffy runny nose, or dizziness may occur