![]() |
| Le forum de référence en programmation et développement. Articles, cours et tutoriels du débutant au chef de projet et DBA confirmé. | |||||||
|
|||||||
| Contribuez Vos contributions pour la rubrique Unix |
![]() |
|
|
Outils de la discussion |
|
|
#1 (permalink) |
![]() Date d'inscription: mars 2004
Localisation: Parti pour de bon
Âge: 28
Messages: 3 041
|
Bonjour,
Vu l'interet porté par plusieurs d'entre vous sur Solaris 10, je vous propose la création d'une FAQ sur cet OS. Qui peut y participer ? Bah tout le monde évidemment ! Comment ? Poster en dessous votre Q/Rs comme ci dessous : Question : Comment atteindre l'OBP ? Réponse : L'OBP n'est disponible que sur les ordinateurs à technologie SPARC (les non-PCs) Il existe plusieurs façon d'atteindre l'OBP Soit en faisant simplement : halt en root Soit sur un clavier solaris via la touche STOP A Soit sur une console vt, avec la combinaison : CTRL+SHIFT+B A vos claviers |
|
|
|
|
|
#2 (permalink) |
|
Membre Confirmé
![]() Date d'inscription: mars 2005
Messages: 249
|
Question : comment monter ses partitions FAT?
Réponse : faire d'abord : Code :
prtvtoc /dev/dsk/c0d0p0 le résultat vous donne le numéro des partitions montables ou non ensuite : Code :
mount -Fpcfs /dev/dsk/c0d0p0:1 /mnt/point_de_montage
__________________
Gronux, distribution Linux grolandaise par excellence |
|
|
|
|
|
#3 (permalink) |
![]() Date d'inscription: juin 2006
Localisation: Luxembourg
Âge: 23
Messages: 5 428
|
Question : Comment tracer les appels systèmes d'un programme
Réponse : Utilisez la commande truss Il est possible d'utiliser l'option -u pour ajouter des bibliothèques contenant des fonctions supplémentaires à tracer. Code :
[millie@localhost:~/dvp]# uname -a
SunOS localhost 5.9 Generic_118558-08 sun4u sparc SUNW,Ultra-4
[millie@localhost:~/dvp]# truss date
execve("/usr/bin/date", 0xFFBFF85C, 0xFFBFF864) argc = 1
resolvepath("/usr/bin/date", "/usr/bin/date", 1023) = 13
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
stat("/usr/bin/date", 0xFFBFF630) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat("/opt/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R6/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/net/solaris/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/openwin/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R5/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R6/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/local/lib/libc.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/lib/libc.so.1", 0xFFBFF138) = 0
resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
open("/usr/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF3A0000
mmap(0x00010000, 802816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF280000
mmap(0xFF280000, 701788, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF280000
mmap(0xFF33C000, 24664, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF33C000
munmap(0xFF32C000, 65536) = 0
memcntl(0xFF280000, 117372, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
stat("/opt/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R6/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/net/solaris/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/openwin/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R5/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/X11R6/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/opt/local/lib/libdl.so.1", 0xFFBFF138) Err#2 ENOENT
stat("/usr/lib/libdl.so.1", 0xFFBFF138) = 0
resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
open("/usr/lib/libdl.so.1", O_RDONLY) = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00002000, 8192, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3FA000
mmap(0xFF3FA000, 1894, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3FA000
close(3) = 0
stat("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", 0xFFBFEF28) = 0
resolvepath("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", "/usr/platform/sun4u/lib/libc_psr.so.1", 1023) = 37
open("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0xFF3A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3A0000
mmap(0x00002000, 16384, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3E6000
mmap(0xFF3E6000, 13544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF3E6000
close(3) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
munmap(0xFF3A0000, 8192) = 0
getustack(0xFFBFF46C)
getrlimit(RLIMIT_STACK, 0xFFBFF464) = 0
getcontext(0xFFBFF2A0)
setustack(0xFF343A5C)
brk(0x00022508) = 0
brk(0x00024508) = 0
time() = 1196500531
brk(0x00024508) = 0
brk(0x00026508) = 0
brk(0x00026508) = 0
brk(0x00028508) = 0
open("/usr/share/lib/zoneinfo/MET", O_RDONLY) = 3
fstat64(3, 0xFFBFF608) = 0
read(3, " T Z i f\0\0\0\0\0\0\0\0".., 755) = 755
close(3) = 0
ioctl(1, TCGETA, 0xFFBFF59C) = 0
fstat64(1, 0xFFBFF4B8) = 0
Sat Dec 1 10:15:31 MET 2007
write(1, " S a t D e c 1 1".., 29) = 29
_exit(0)
__________________
Je ne répondrai à aucune question technique en privé |
|
|
|
|
|
#4 (permalink) |
|
Membre Confirmé
![]() Date d'inscription: mars 2005
Messages: 249
|
Question : comment afficher toutes les informations sur votre materiel?
Réponse : en root, utilisez Code :
/etc/X11/bin/scanpci
__________________
Gronux, distribution Linux grolandaise par excellence |
|
|
|
![]() |
![]() |
||
Création d'une FAQ Solaris!
|
||
| Outils de la discussion | |
|
|