I am trying to create an RPA based automation for running a vbscript in Secure CRT. In that, I am uploading vbscript to Secure CRT using pyautogui module. Now, my code ends even before all the logs download from vbscript is completed. How can I ensure that my python ends only after vbscript has run successfully and all the download is completed so that I can close secure CRT?
How to ensure python code is terminated with vbscript when I am uploading vbscript to secure crt using pyautogui module?
196 Views Asked by HobbyCoder At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PYAUTOGUI
- Automatic inputs in Chromium are filled randomly
- Trouble finding an installed version of PyAutoGui
- What is the difference between Python's pyautogui.PAUSE and time.sleep?
- How can I on mac using python press keys in other applications?
- Storing/Retrieving array images with Pyautogui (AttributeError: 'Image' object has not attribute 'read')
- Execute PyAutoGUI code on second MacBook Pro desktop
- how do you extract an the shape of an object?
- Is there a shorter way to check a condition before each line of code without repeating the condition?
- Can PyGetWindow help Screenshot?
- Click on every circle on screen with python
- Python Modules/Libraries to correctly work in CronJobs
- press "_" or ":" with pyautgui (python3)
- Trouble installing PyAutoGUI on Python 3.8 (64-bit Windows)
- How do I fix the error FileNotFoundError: [Errno 2] No such file or directory?
- Double clicking a python file doesn't have the same result as running through cmd
Related Questions in SECURE-CRT
- Object CRT in VB script
- SecureCRT vertical scroll speed using Trackpad is too fast on MacBook Pro
- Can someone help me with a Python command for ctrl + c
- How to ensure python code is terminated with vbscript when I am uploading vbscript to secure crt using pyautogui module?
- Basic use of strcpy_s , strcat_s
- Need to run SecureCRT session from the CMD
- .GetSaveAsFilename dialog opens in background
- how decrypt password from SecureCRT Session ini file
- how would i need to write a java script on keypress for Alt+2 and Alt+1?
- Secure CRT send command to an host VBS
- VBScript Permission Denied
- Run a script in remote UNIX using windows command prompt
- How to SSH to a server then to another within same tab?
- secureCRT VBS using WaitForStrings() and Switch Case
- Mobaxterm, "Execute Command" Configuration
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I solved this problem in following ways:
Instead of using pyautogui module to upload vbscript on secureCRT, I used subprocess module as secureCRT has command line abilities to run vbscript:
For ensuring that python script exits only after the vbscript has been run completely, I created a text file at the end of vbscript which was continuously scanned by python script. On finding the text file created by vbscript, python script would terminate: