Graviton – no mail client

Here is how to install the mail client on AWS Graviton EC2 instance Note:  mutt not available.   You can install Alpine.  I think you will have to find a mutt rpm online if you really want mutt.   [ec2-user@graviton_host]$ mail -bash: mail: command not found [ec2-user@ip-172-31-67-136 weather_obs]$ sudo bash [root@graviton_host]# find / -name mail /var/mail /var/spool/mail /usr/local/lib/python3.7/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail [root@graviton_host]# exit exit […]

Python – generator example

Here is a generator that basically goes forever in a circular list from 1 to 12 def get_next_month(month): i_month = month while True: if i_month == 12: i_month = 1 else: i_month = i_month+1 yield i_month Here is how to use it.   def month_current_and_next(month, count = 1 ): if month == 0: time_t = datetime.now() current_month = time_t.month else: […]

Monitoring io performance with IOTOP

IOTOP: Shows real-time stats for disk.  I attached a SC1 device and wanted to see how it ran on AWS root@jaws /]# yum install iotop Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00 amzn-updates | 3.8 kB 00:00 Resolving Dependencies –> Running transaction check —> Package iotop.noarch 0:0.3.2-7.6.amzn1 will be installed –> Finished Dependency Resolution Dependencies Resolved ================================================================================ […]