Created
November 8, 2021 19:39
-
-
Save Lukas-Praxedes/340d8401a9af82b8dfecf7be072f4bb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
import cx_Freeze | |
import datetime | |
from datetime import date | |
data_atual = date.today() | |
print(data_atual) | |
data_atual.strftime('%d/%m/%Y') | |
print(type(data_atual)) | |
#dataFormatada = data.strftime('%d/%m/%Y') | |
pyautogui.alert('POR FAVOR NÃO MEXA NO TECLADO/MOUSE ENQUANTO O ROBÔ ESTÁ SENDO EXECUTADO....\n' | |
'clique em "ok" para iniciar') | |
pyautogui.PAUSE = 3 | |
pyautogui.press('winleft') | |
pyautogui.PAUSE = 3 | |
pyautogui.write('PuttY') | |
pyautogui.PAUSE = 3 | |
pyautogui.press('enter') | |
pyautogui.PAUSE = 2 | |
pyautogui.write('192.168.1.201') | |
pyautogui.PAUSE = 2 | |
pyautogui.press('enter') | |
pyautogui.PAUSE = 2 | |
pyautogui.write('root') | |
pyautogui.PAUSE = 3 | |
pyautogui.press('enter') | |
pyautogui.PAUSE = 4 | |
pyautogui.write('123456') | |
pyautogui.PAUSE = 5 | |
pyautogui.press('enter') | |
pyautogui.PAUSE = 5 | |
pyautogui.write('cd /posnet/NFCEBKP/43505319000181/'+data_atual) | |
pyautogui.PAUSE = 0.9 | |
pyautogui.press = 'enter' | |
pyautogui.write = 'scp *.xml retag@ipdokw:/servidor/NFCECONT' | |
pyautogui.PAUSE = 0.9 | |
pyautogui.press = 'enter' | |
pyautogui.PAUSE = 0.9 | |
pyautogui.write = '123456' | |
pyautogui.PAUSE = 0.9 | |
pyautogui.press = 'enter' | |
pyautogui.PAUSE = 20 | |
pyautogui.write = 'exit' | |
pyautogui.alert = 'FINALIZADO!' | |
# pyinstaller --onefile nomeDoArquivo.py | |
## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment