Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate MML Commands
#10
Hi @wavic

output=subprocess.run(['ssh', '[email protected]'])
print(output.returncode)
While i used the above code to login to server The return code i got is 255.
any reason why this occurs?
I personally feel that Running a ssh command through subprocess doesnt provide the option to enter the password,as is the case here and hence i am getting 255(Correct me if wrong)
In my condition after logging in to [email protected], i need to execute a set of MML commands.But right now i am stuck with this first step only.
Reply


Messages In This Thread
Automate MML Commands - by saisankalpj - Oct-27-2022, 07:46 AM
RE: Automate MML Commands - by wavic - Oct-27-2022, 08:26 AM
RE: Automate MML Commands - by saisankalpj - Oct-27-2022, 09:48 AM
RE: Automate MML Commands - by saisankalpj - Oct-31-2022, 06:31 AM
RE: Automate MML Commands - by wavic - Oct-27-2022, 10:48 AM
RE: Automate MML Commands - by saisankalpj - Oct-27-2022, 01:42 PM
RE: Automate MML Commands - by wavic - Oct-27-2022, 02:04 PM
RE: Automate MML Commands - by saisankalpj - Oct-27-2022, 02:30 PM
RE: Automate MML Commands - by wavic - Oct-31-2022, 08:15 AM
RE: Automate MML Commands - by saisankalpj - Nov-09-2022, 12:46 PM
RE: Automate MML Commands - by saisankalpj - Dec-06-2022, 01:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  1. How can I automate this batch creation of documents? 2. How can I automate posting SamLearnsPython 2 3,522 Jul-02-2018, 11:36 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020