for i in file1 file2 post-form.scss post-form.js; do touch ${i}; done
mkdir dirname && touch dirname/file{1..5}
/System/Library/Frameworks/Python.framework/Versions/2.7/bin
такое используется чтобы скрипт или программа запускалась с конкретной версией питона, но тут лучше использовать python environment, что позволит ставить нужные библиотеки для каждого проекта отдельно, почитать тут или тут. А ещё перейти на python3 пора бы уже. import telebot
from time import sleep
from threading import Thread
from random import choice
import string
admin_id = 534905 # your id
bot = telebot.TeleBot(TOKEN) # your token
@bot.message_handler(commands=['help'])
def helper(message):
bot.send_message(message.from_user.id, f'You are {message.from_user.username}, {message.from_user.first_name}'
f'with id = {message.from_user.id}')
def check_email():
while True:
bot.send_message(admin_id, 'Check e-mail')
mails = [choice(string.ascii_letters) for i in range(5)]
if mails:
for mail in mails:
bot.send_message(admin_id, mail)
sleep(60)
Thread(target=check_email, args=()).start()
if __name__ == '__main__':
try:
bot.polling(none_stop=True)
except Exception as e:
print(e)