Est-il possible d'ouvrir à distance (via ssh) une session graphique
locale sur une machine ? Il m'arrive de devoir me connecter via ssh sur
ma machine et d'y lancer des applications graphiques (avec la commande
"open"). Or parfois aucune session n'est ouverte (i.e. la machine est à
l'écran de login). J'aimerais donc pouvoir ouvrir une session depuis
ssh. Je ne cherche pas à déporter l'affichage, juste à ouvrir la session.
Merci,
Patrick
--
Patrick Stadelmann <Patrick.Stadelmann@unine.ch>
Est-il possible d'ouvrir à distance (via ssh) une session graphique locale sur une machine ?
De mémoire, j'avais joué avec ça en 10.3 :
osascript -e 'tell application "System Events" to keystroke "NOM_UTILISATEUR"'
osascript -e 'tell application "System Events" to keystroke tab'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke "MOT_DE_PASSE"'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke return'
-- Politically Correct Unix - UTILITIES The "touch" command has been removed from the standard distribution due to its inappropriate use by high-level managers.
Patrick Stadelmann <Patrick.Stadelmann@unine.ch> wrote:
Est-il possible d'ouvrir à distance (via ssh) une session graphique
locale sur une machine ?
De mémoire, j'avais joué avec ça en 10.3 :
osascript -e 'tell application "System Events" to keystroke
"NOM_UTILISATEUR"'
osascript -e 'tell application "System Events" to keystroke tab'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke
"MOT_DE_PASSE"'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke return'
--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.
Est-il possible d'ouvrir à distance (via ssh) une session graphique locale sur une machine ?
De mémoire, j'avais joué avec ça en 10.3 :
osascript -e 'tell application "System Events" to keystroke "NOM_UTILISATEUR"'
osascript -e 'tell application "System Events" to keystroke tab'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke "MOT_DE_PASSE"'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke return'
-- Politically Correct Unix - UTILITIES The "touch" command has been removed from the standard distribution due to its inappropriate use by high-level managers.
Patrick Stadelmann
In article <1hpoznv.sqksuxu0heeeN%, (Laurent Pertois) wrote:
Patrick Stadelmann wrote:
Est-il possible d'ouvrir à distance (via ssh) une session graphique locale sur une machine ?
De mémoire, j'avais joué avec ça en 10.3 :
osascript -e 'tell application "System Events" to keystroke "NOM_UTILISATEUR"'
osascript -e 'tell application "System Events" to keystroke tab'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke "MOT_DE_PASSE"'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke return'
Je viens d'essayer en 10.4.8, et ça marche ! Il faut juste utiliser "sudo".
Merci !
Patrick -- Patrick Stadelmann
In article <1hpoznv.sqksuxu0heeeN%laurent.pertois@alussinan.org>,
laurent.pertois@alussinan.org (Laurent Pertois) wrote:
Patrick Stadelmann <Patrick.Stadelmann@unine.ch> wrote:
Est-il possible d'ouvrir à distance (via ssh) une session graphique
locale sur une machine ?
De mémoire, j'avais joué avec ça en 10.3 :
osascript -e 'tell application "System Events" to keystroke
"NOM_UTILISATEUR"'
osascript -e 'tell application "System Events" to keystroke tab'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke
"MOT_DE_PASSE"'
osascript -e 'tell application "System Events" to delay 0.5'
osascript -e 'tell application "System Events" to keystroke return'
Je viens d'essayer en 10.4.8, et ça marche ! Il faut juste utiliser
"sudo".
Merci !
Patrick
--
Patrick Stadelmann <Patrick.Stadelmann@unine.ch>
Oui en fait : << ouvrir à distance une session graphique locale >>
Je dois dire honnètement que ça m'a fait rire quand je l'ai lu. ;-)
(Pardon !)
JPaul. -- /==/==- Jean-Paul BLANC / /--/--// quelque-part (somewhere) |/| L | en (in) /|| = ||| FRANCE
laurent.pertois
Patrick Stadelmann wrote:
Je viens d'essayer en 10.4.8, et ça marche ! Il faut juste utiliser "sudo".
Ah oui, pardon, j'avais stocké ça dans mes trucs et astuces ARD et dans ce cas je peux choisir de l'exécuter en tant que root et je ne mets surtout pas sudo.
Merci !
Plaisir :)
-- Politically Correct Unix - UTILITIES The "touch" command has been removed from the standard distribution due to its inappropriate use by high-level managers.
Patrick Stadelmann <Patrick.Stadelmann@unine.ch> wrote:
Je viens d'essayer en 10.4.8, et ça marche ! Il faut juste utiliser
"sudo".
Ah oui, pardon, j'avais stocké ça dans mes trucs et astuces ARD et dans
ce cas je peux choisir de l'exécuter en tant que root et je ne mets
surtout pas sudo.
Merci !
Plaisir :)
--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.
Je viens d'essayer en 10.4.8, et ça marche ! Il faut juste utiliser "sudo".
Ah oui, pardon, j'avais stocké ça dans mes trucs et astuces ARD et dans ce cas je peux choisir de l'exécuter en tant que root et je ne mets surtout pas sudo.
Merci !
Plaisir :)
-- Politically Correct Unix - UTILITIES The "touch" command has been removed from the standard distribution due to its inappropriate use by high-level managers.