lunes, 10 de marzo de 2008

PRACTICA EN CLASE

Matar los programas de compu del prof o volver a abrirlos
1. Se entra a la compu del prof con: alumno$ ssh darwin@192.10.2.250
2. con: ps -U darwin : Para ver los procesos que se tienen dentro de esa compu
3. kill 1250 : se cierra ese programa
4. open /Applications/iTunes.app : para volver a abrir ese programa


Last login: Mon Mar 10 10:25:03 on console
Welcome to Darwin!
L523:~ alumno$ ssh@192.10.2.250
-bash: ssh@192.10.2.250: command not found
L523:~ alumno$ ssh darwin@192.10.2.250
Password:
Last login: Mon Mar 10 10:36:56 2008 from 192.10.2.129
Welcome to Darwin!
L5Maestro:~ darwin$ who
darwin console Mar 10 09:27
darwin ttyp1 Mar 10 10:36 (192.10.2.129)
darwin ttyp2 Mar 10 10:37 (192.10.2.136)
darwin ttyp3 Mar 10 10:25 (192.10.2.135)
darwin ttyp4 Mar 10 10:26 (192.10.2.116)
darwin ttyp5 Mar 10 10:28 (192.10.2.133)
darwin ttyp6 Mar 10 10:30 (192.10.2.130)
darwin ttyp7 Mar 10 10:37 (192.10.2.151)
darwin ttypb Mar 10 09:46 (192.10.2.123)
L5Maestro:~ darwin$ who am i
darwin ttyp2 Mar 10 10:37 (192.10.2.136)
L5Maestro:~ darwin$ ps -U darwin
PID TT STAT TIME COMMAND
64 ?? Ss 0:02.98 /System/Library/Frameworks/ApplicationServices.framew
295 ?? Ss 0:00.57 /System/Library/CoreServices/loginwindow.app/Contents
305 ?? S 0:00.62 /System/Library/CoreServices/RemoteManagement/ARDAgen
311 ?? Ss 0:00.30 /System/Library/CoreServices/pbs
316 ?? S 0:01.12 /System/Library/CoreServices/Dock.app/Contents/MacOS/
317 ?? S 0:01.86 /System/Library/CoreServices/SystemUIServer.app/Conte
319 ?? S 0:02.83 /System/Library/CoreServices/Finder.app/Contents/MacO
324 ?? S 0:06.14 /System/Library/PreferencePanes/UniversalAccessPref.p
580 ?? S 0:00.03 /usr/sbin/sshd -i
829 ?? S 0:00.06 /System/Library/Services/AppleSpell.service/Contents/
1123 ?? S 0:00.09 /usr/sbin/sshd -i
1132 ?? S 0:00.03 /usr/sbin/sshd -i
1149 ?? SNs 0:00.72 /System/Library/Frameworks/CoreServices.framework/Ver
1156 ?? S 0:00.11 /usr/sbin/sshd -i
1171 ?? S 0:00.10 /usr/sbin/sshd -i
1205 ?? S 0:00.05 /usr/sbin/sshd -i
1209 ?? S 0:00.02 /usr/sbin/sshd -i
1216 ?? S 0:00.02 /usr/sbin/sshd -i
1220 ?? S 0:00.82 /Applications/Address Book.app/Contents/MacOS/Address
1224 ?? S 0:02.19 /Applications/iTunes.app/Contents/MacOS/iTunes -psn_0
1233 ?? S 0:00.01 /usr/sbin/sshd -i
1206 p1 Ss+ 0:00.04 -bash
1210 p2 Ss 0:00.03 -bash
1124 p3 Ss+ 0:00.07 -bash
1133 p4 Ss+ 0:00.03 -bash
1157 p5 Ss+ 0:00.06 -bash
1172 p6 Ss+ 0:00.06 -bash
1217 p7 Ss+ 0:00.02 -bash
1234 p8 Ss+ 0:00.02 -bash
581 pb Ss+ 0:00.03 -bash
L5Maestro:~ darwin$ open /Applications/Safari.app
L5Maestro:~ darwin$ open /Applications/Firefox.app
L5Maestro:~ darwin$ ps -U darwin
PID TT STAT TIME COMMAND
64 ?? Ss 0:03.17 /System/Library/Frameworks/ApplicationServices.framew
295 ?? Ss 0:00.58 /System/Library/CoreServices/loginwindow.app/Contents
305 ?? S 0:00.63 /System/Library/CoreServices/RemoteManagement/ARDAgen
311 ?? Ss 0:00.30 /System/Library/CoreServices/pbs
316 ?? S 0:01.18 /System/Library/CoreServices/Dock.app/Contents/MacOS/
317 ?? S 0:01.89 /System/Library/CoreServices/SystemUIServer.app/Conte
319 ?? S 0:02.85 /System/Library/CoreServices/Finder.app/Contents/MacO
324 ?? S 0:06.24 /System/Library/PreferencePanes/UniversalAccessPref.p
580 ?? S 0:00.03 /usr/sbin/sshd -i
829 ?? S 0:00.06 /System/Library/Services/AppleSpell.service/Contents/
1123 ?? S 0:00.10 /usr/sbin/sshd -i
1132 ?? S 0:00.05 /usr/sbin/sshd -i
1149 ?? SNs 0:01.03 /System/Library/Frameworks/CoreServices.framework/Ver
1156 ?? S 0:00.11 /usr/sbin/sshd -i
1171 ?? S 0:00.10 /usr/sbin/sshd -i
1205 ?? S 0:00.05 /usr/sbin/sshd -i
1209 ?? S 0:00.06 /usr/sbin/sshd -i
1216 ?? S 0:00.06 /usr/sbin/sshd -i
1233 ?? S 0:00.02 /usr/sbin/sshd -i
1243 ?? S 0:00.02 /usr/sbin/sshd -i
1246 ?? S 0:07.84 /Applications/Safari.app/Contents/MacOS/Safari -psn_0
1250 ?? S 0:02.30 /Applications/Firefox.app/Contents/MacOS/firefox-bin
1206 p1 Ss+ 0:00.04 -bash
1210 p2 Ss 0:00.04 -bash
1124 p3 Ss+ 0:00.07 -bash
1133 p4 Ss+ 0:00.04 -bash
1157 p5 Ss+ 0:00.06 -bash
1172 p6 Ss+ 0:00.06 -bash
1217 p7 Ss+ 0:00.04 -bash
1234 p8 Ss+ 0:00.02 -bash
1244 p9 Ss+ 0:00.02 -bash
581 pb Ss+ 0:00.03 -bash
L5Maestro:~ darwin$ kill 1250
L5Maestro:~ darwin$

No hay comentarios: