kihei/i-02af60f0c0418fd8f
by SadServersMore by SadServers
-rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-03a2a2fdd7cb0df14:~$ ls /proc/571/ arch_status cmdline environ limits root smaps_rollup task/ attr/ comm exe loginuid _adj sched stack timens_offsets autogroup coredump_filter fd/ map_files/ schedstat stat timers auxv cpu_resctrl_groups fdinfo/ maps te sessionid statm timerslack_ns cgroup cpuset gid_map mem ty setgroups status uid_map clear_refs cwd io mountinfo p smaps syscall wchan admin@i-03a2a2fdd7cb0df14:~$ ls /proc/571/fd
paris/i-03a2a2fdd7cb0df14 01:31
by SadServersMain PID: 579 (python3) Tasks: 1 (limit: 521) Memory: 21.9M CPU: 329ms CGroup: /system.slice/flaskapp.service └─579 /usr/bin/python3 /home/admin/webserver.py Nov 29 16:17:05 i-0658b8fdee95eb0b6 systemd[1]: Started Flask Application. Nov 29 16:17:06 i-0658b8fdee95eb0b6 python3[579]: * Serving Flask app 'webserveNov 29 16:17:06 i-0658b8fdee95eb0b6 python3[579]: * Debug mode: off Nov 29 16:17:06 i-0658b8fdee95eb0b6 python3[579]: WARNING: This is a developmentNov 29 16:17:06 i-0658b8fdee95eb0b6 python3[579]: * Running on http://127.0.0.1Nov 29 16:17:06 i-0658b8fdee95eb0b6 python3[579]: Press CTRL+C to quit Nov 29 16:17:35 i-0658b8fdee95eb0b6 python3[579]: 127.0.0.1 - - [29/Nov/2023 16:admin@i-0658b8fdee95eb0b6:~$ > /home/admin/.bash_history
paris/i-0658b8fdee95eb0b6 00:51
by SadServers# Establish a connection to RabbitMQ connection = pika.BlockingConnection(parameters) channel = connection.channel() # Declare a queue channel.queue_declare(queue=QUEUE) # Publish a message to the queue channel.basic_publish(exchange='', routing_key=QUEUE, body=MESSAGE) print("Message sent to RabbitMQ") # Close the connection connection.close() admin@i-0ffa8982dfb2f3217:~$ grep RMQ_QUEUE