Exemple #1
0
def create_oracle(s_name, u_name, passwd):
    window2 = tk.Tk()
    window2.title("Mphasis Automation App")
    window2.geometry("440x410")
    login1 = rlogin.login(s_name, u_name, passwd)
    try:
        a = login1.getconnect()
        tk.Label(window2, text="Connection successful to remote server").pack()
    except Exception, e:
        tk.Label(window2, text="Connection failed to remote server").pack()
        return
Exemple #2
0
import remotelogin as rlogin

login1=rlogin.login('192.168.56.26','root','Symantec@123')
a=login1.getconnect()

stdin, stdout, stderr = a.exec_command("touch /tmp/abcd3.txt")