Dhana Posted February 20, 2020 Posted February 20, 2020 Hi All, we are trying to automate the gcloud auth login behavior where we have to open command prompt and execute"gcloud auth login" which will give URL and waits for verification code input. I want to read the URL from my window
Dhana Posted February 20, 2020 Author Posted February 20, 2020 post got submitted by mistake before i complete.. below is the code which i am trying and also tried adding $STDERR_CHILD + $STDOUT_CHILD but then it is giving error. i think because the command is still waiting for user input. $logincmdToExecute = "gcloud auth login --no-launch-browser" $iPID = Run(@ComSpec & " /c " & $logincmdToExecute, @WindowsDir, @SW_SHOW) ConsoleWrite($iPID) ConsoleWrite(StdoutRead ( $iPID )) can someone provide any pointers on how can we execute command in DOS and read response without errors or closing window
Moderators JLogan3o13 Posted February 20, 2020 Moderators Posted February 20, 2020 (edited) Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Edited February 20, 2020 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Nine Posted February 20, 2020 Posted February 20, 2020 Please read help file for Run function, you are missing the last parameter... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now