Je suis en train de me connecter à un ssh
avec AppleScript comme suit :
tell application "iTerm2"
tell current window
create tab with default profile
end tell
tell first session of current tab of current window
split horizontally with default profile
split vertically with default profile
write text "ssh username@server"
write text "ls" -- I need to get the output of command
end tell
end tell
Comment puis-je obtenir la sortie de la commande sur la machine distante ?
Ce qui suit n'a pas fonctionné : set x to write text "ls"
0 votes
@user3439894 c'est fait, j'ai mis à jour le code
0 votes
@user3439894 Je n'arrive pas à compiler, veuillez noter que j'ai plusieurs volets dans la même fenêtre, pouvez-vous montrer un exemple de code ?