I use securecrt under Ubuntu, upload files used to use the RZ command. Each time you upload the dialog box to select the file is determined before uploading, it feels very laborious. Finally, I'm trying to sort out a script.
By using the "Run ..." button on the "Script" menu, then select the script "Run" to upload it automatically. Very convenient ~
#$language = "Python"#$interface = "1.0"defMain (): CRT. Screen.synchronous=True CRT. Screen.send ("RM-RF demofile\n")#delete old files firstCrt. Screen.waitforstring ("[email protected] xx]$") Crt. Filetransfer.addtozmodemuploadlist ("/your_path/bin/demofile")#Add file to upload listCrt. Filetransfer.zmodemuploadascii = True#Add this implementation RZ will not play the Select File dialog box. CRT. Screen.send ("rz\n") Crt. Screen.waitforstring ("[email protected] xx]$") Crt. Filetransfer.zmodemuploadascii= False#set up recall toMain ()
Technology is still relatively weak slag AH ~ ~ ~ won't use those Tmux
SECURECRT automatically upload file python script