[+] Jak sprawi

Potrzebujesz pomocy z C, C++, perl, python, itp.
Awatar użytkownika
DaVidoSS
Junior Member
Posty: 875
Rejestracja: 06 marca 2010, 11:26
Lokalizacja: ~/

[+] Jak sprawić aby czytelny był tekst przekierowany do pliku?

Post autor: DaVidoSS »

Witam!

Mam takie coś:

Kod: Zaznacz cały

davidoss-sid@debian-sid:~$ cat sys-check.sh 
#!/bin/bash
logfile="$PWD/syscheck.log"
lista() {
arch
uname -r
cat /proc/version
su -c "dmidecode"
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/swaps
cat /proc/mounts
lspci -tv
lsusb -tv
}
echo $(lista) > $logfile

Wykonanie tego robi mi takie coś:

Kod: Zaznacz cały

davidoss-sid@debian-sid:~$ cat syscheck.log 
x86_64 2.6.38-2-amd64 Linux version 2.6.38-2-amd64 (Debian 2.6.38-5) ([email protected]) (gcc version 4.4.6 (Debian 4.4.6-3) ) #1 SMP Sun May 8 13:51:57 UTC 2011 # dmidecode 2.9 SMBIOS 2.5 present. 62 structures occupying 2294 bytes. Table at 0x0009F000. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: American Megatrends Inc. Version: 2104 Release Date: 06/28/2010 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 1024 kB Characteristics: ISA is supported PCI is supported PNP is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed ESCD support is available Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 KB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported LS-120 boot is supported ATAPI Zip drive boot is supported BIOS boot specification is supported Targeted content distribution is supported BIOS Revision: 8.15 Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: System manufacturer Product Name: System Product Name Version: System Version Serial Number: System Serial Number UUID: C09A44F6-A7FE-D511-B4AA-90E6BAE38401 Wake-up Type: Power Switch SKU Number: To Be Filled By O.E.M. Family: To Be Filled By O.E.M. Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: ASUSTeK Computer INC. Product Name: M4A77TD Version: Rev X.0x Serial Number: MF70A1G05903741 Asset Tag: To Be Filled By O.E.M. Features: Board is a hosting board Board is replaceable Location In Chassis: To Be Filled By O.E.M. Chassis Handle: 0x0003 Type: Motherboard Contained Object Handles: 0 Handle 0x0003, DMI type 3, 21 bytes Chassis Information Manufacturer: Chassis Manufacture Type: Desktop Lock: Not Present Version: Chassis Version Serial Number: Chassis Serial Number Asset Tag: Asset-1234567890 Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: None OEM Information: 0x00000001 Height: Unspecified Number Of Power Cords: 1 Contained Elements: 0 Handle 0x0004, DMI type 4, 40 bytes Processor Information Socket Designation: AM3 Type: Central Processor Family: <OUT OF SPEC> Manufacturer: AMD ID: 42 0F 10 00 FF FB 8B 17 Version: AMD Phenom(tm) II X4 925 Processor Voltage: 1.5 V External Clock: 200 MHz Max Speed: 2800 MHz Current Speed: 2800 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: 0x0005 L2 Cache Handle: 0x0006 L3 Cache Handle: 0x0007 Serial Number: To Be Filled By O.E.M. Asset Tag: To Be Filled By O.E.M. Part Number: To Be Filled By O.E.M. Core Count: 4 Core Enabled: 4 Characteristics: 64-bit capable Handle 0x0005, DMI type 7, 19 bytes Cache Information Socket Designation: L1-Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Varies With Memory Address Location: Internal Installed Size: 512 KB Maximum Size: 512 KB Supported SRAM Types: Pipeline Burst Installed SRAM Type: Pipeline Burst Speed: Unknown Error Correction Type: Single-bit ECC System Type: Data Associativity: 4-way Set-associative Handle 0x0006, DMI type 7, 19 bytes Cache Information Socket Designation: L2-Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Varies With Memory Address Location: Internal Installed Size: 2048 KB Maximum Size: 2048 KB Supported SRAM Types: Pipeline Burst Installed SRAM Type: Pipeline Burst Speed: Unknown Error Correction Type: Single-bit ECC System Type: Unified Associativity: 4-way Set-associative Handle 0x0007, DMI type 7, 19 bytes Cache Information Socket Designation: L3-Cache Configuration: Enabled, Not Socketed, Level 3 Operational Mode: Varies With Memory Address Location: Internal Installed Size: 6144 KB Maximum Size: 6144 KB Supported SRAM Types: Pipeline Burst Installed SRAM Type: Pipeline Burst Speed: Unknown Error Correction Type: Single-bit ECC System Type: Unified Associativity: 4-way Set-associative Handle 0x0008, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: PS/2 Keyboard/Mouse Internal Connector Type: None External Reference Designator: PS/2 Keyboard/Mouse External Connector Type: PS/2 Port Type: Other Handle 0x0009, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB56 Internal Connector Type: None External Reference Designator: USB56 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: LPT 1 Internal Connector Type: None External Reference Designator: LPT 1 External Connector Type: DB-25 male Port Type: Parallel Port ECP/EPP Handle 0x000B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: COM 1 Internal Connector Type: None External Reference Designator: COM 1 External Connector Type: DB-9 male Port Type: Serial Port 16550A Compatible Handle 0x000C, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SPDIF_O Internal Connector Type: None External Reference Designator: SPDIF_O External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x000D, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB34 Internal Connector Type: None External Reference Designator: USB34 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: LAN Internal Connector Type: None External Reference Designator: LAN External Connector Type: RJ-45 Port Type: Network Port Handle 0x000F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB12 Internal Connector Type: None External Reference Designator: USB12 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x0010, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Line_In Internal Connector Type: None External Reference Designator: Audio_Line_In External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0011, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Line_Out Internal Connector Type: None External Reference Designator: Audio_Line_Out External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0012, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Mic_In Internal Connector Type: None External Reference Designator: Audio_Mic_In External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0013, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Center/Sub Internal Connector Type: None External Reference Designator: Audio_Center/Sub External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0014, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Rear Internal Connector Type: None External Reference Designator: Audio_Rear External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0015, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Audio_Side Internal Connector Type: None External Reference Designator: Audio_Side External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x0016, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: PRI IDE Internal Connector Type: On Board IDE External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0017, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA1 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0018, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA2 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0019, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA3 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA4 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA5 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001C, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SB_SATA6 Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001D, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: CPU FAN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: CHA FAN Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x001F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB910 Internal Connector Type: Access Bus (USB) External Reference Designator: Not Specified External Connector Type: None Port Type: USB Handle 0x0020, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB1112 Internal Connector Type: Access Bus (USB) External Reference Designator: Not Specified External Connector Type: None Port Type: USB Handle 0x0021, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: USB78 Internal Connector Type: Access Bus (USB) External Reference Designator: Not Specified External Connector Type: None Port Type: USB Handle 0x0022, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: PANEL Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0023, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SPDIF OUT Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0024, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: AAFP Internal Connector Type: Other External Reference Designator: Not Specified External Connector Type: None Port Type: Other Handle 0x0025, DMI type 9, 13 bytes System Slot Information Designation: PCIE16X Type: 32-bit PCI Express Current Usage: In Use Length: Short ID: 2 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x0026, DMI type 9, 13 bytes System Slot Information Designation: PCIE1X_1 Type: 32-bit PCI Express Current Usage: Available Length: Short ID: 7 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x0027, DMI type 9, 13 bytes System Slot Information Designation: PCIE1X_2 Type: 32-bit PCI Express Current Usage: Available Length: Short ID: 9 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x0028, DMI type 9, 13 bytes System Slot Information Designation: PCI1 Type: 32-bit PCI Current Usage: Available Length: Short ID: 12 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x0029, DMI type 9, 13 bytes System Slot Information Designation: PCI2 Type: 32-bit PCI Current Usage: Available Length: Short ID: 13 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x002A, DMI type 9, 13 bytes System Slot Information Designation: PCI3 Type: 32-bit PCI Current Usage: Available Length: Short ID: 14 Characteristics: 3.3 V is provided Opening is shared PME signal is supported Handle 0x002B, DMI type 10, 6 bytes On Board Device Information Type: Other Status: Enabled Description: To Be Filled By O.E.M. Handle 0x002C, DMI type 10, 6 bytes On Board Device Information Type: Ethernet Status: Enabled Description: To Be Filled By O.E.M. Handle 0x002D, DMI type 10, 6 bytes On Board Device Information Type: Sound Status: Enabled Description: To Be Filled By O.E.M. Handle 0x002E, DMI type 10, 6 bytes On Board Device Information Type: Other Status: Enabled Description: To Be Filled By O.E.M. Handle 0x002F, DMI type 11, 5 bytes OEM Strings String 1: 90E6BAE38401 String 2: To Be Filled By O.E.M. String 3: To Be Filled By O.E.M. String 4: To Be Filled By O.E.M. Handle 0x0030, DMI type 13, 22 bytes BIOS Language Information Installable Languages: 1 en|US|iso8859-1 Currently Installed Language: en|US|iso8859-1 Handle 0x0031, DMI type 15, 35 bytes System Event Log Area Length: 4 bytes Header Start Offset: 0x0000 Header Length: 2 bytes Data Start Offset: 0x0002 Access Method: Indexed I/O, one 16-bit index port, one 8-bit data port Access Address: Index 0x046A, Data 0x046C Status: Invalid, Not Full Change Token: 0x00000000 Header Format: No Header Supported Log Type Descriptors: 6 Descriptor 1: End of log Data Format 1: OEM-specific Descriptor 2: End of log Data Format 2: OEM-specific Descriptor 3: End of log Data Format 3: OEM-specific Descriptor 4: End of log Data Format 4: OEM-specific Descriptor 5: End of log Data Format 5: OEM-specific Descriptor 6: End of log Data Format 6: OEM-specific Handle 0x0032, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 16 GB Error Information Handle: Not Provided Number Of Devices: 4 Handle 0x0033, DMI type 19, 15 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0007FFFFFFF Range Size: 2 GB Physical Array Handle: 0x0032 Partition Width: 0 Handle 0x0034, DMI type 17, 27 bytes Memory Device Array Handle: 0x0032 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM0 Bank Locator: BANK0 Type: Unknown Type Detail: None Speed: Unknown Manufacturer: Manufacturer0 Serial Number: SerNum0 Asset Tag: AssetTagNum0 Part Number: PartNum0 Handle 0x0035, DMI type 126, 19 bytes Inactive Handle 0x0036, DMI type 17, 27 bytes Memory Device Array Handle: 0x0032 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM1 Bank Locator: BANK1 Type: Unknown Type Detail: None Speed: Unknown Manufacturer: Manufacturer1 Serial Number: SerNum1 Asset Tag: AssetTagNum1 Part Number: PartNum1 Handle 0x0037, DMI type 126, 19 bytes Inactive Handle 0x0038, DMI type 17, 27 bytes Memory Device Array Handle: 0x0032 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 1024 MB Form Factor: DIMM Set: None Locator: DIMM2 Bank Locator: BANK2 Type: Other Type Detail: Synchronous Speed: 1333 MHz (0.8 ns) Manufacturer: Manufacturer2 Serial Number: SerNum2 Asset Tag: AssetTagNum2 Part Number: PartNum2 Handle 0x0039, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0003FFFFFFF Range Size: 1 GB Physical Device Handle: 0x0038 Memory Array Mapped Address Handle: 0x0033 Partition Row Position: 1 Handle 0x003A, DMI type 17, 27 bytes Memory Device Array Handle: 0x0032 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 1024 MB Form Factor: DIMM Set: None Locator: DIMM3 Bank Locator: BANK3 Type: Other Type Detail: Synchronous Speed: 1333 MHz (0.8 ns) Manufacturer: Manufacturer3 Serial Number: SerNum3 Asset Tag: AssetTagNum3 Part Number: PartNum3 Handle 0x003B, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00040000000 Ending Address: 0x0007FFFFFFF Range Size: 1 GB Physical Device Handle: 0x003A Memory Array Mapped Address Handle: 0x0033 Partition Row Position: 1 Handle 0x003C, DMI type 32, 20 bytes System Boot Information Status: No errors detected Handle 0x003D, DMI type 127, 4 bytes End Of Table processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 925 Processor stepping : 2 cpu MHz : 2812.489 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save bogomips : 5624.97 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 925 Processor stepping : 2 cpu MHz : 2812.489 cache size : 512 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save bogomips : 5625.10 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 2 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 925 Processor stepping : 2 cpu MHz : 2812.489 cache size : 512 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save bogomips : 5625.13 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 3 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 925 Processor stepping : 2 cpu MHz : 2812.489 cache size : 512 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save bogomips : 5625.12 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate MemTotal: 2051980 kB MemFree: 577540 kB Buffers: 13136 kB Cached: 584812 kB SwapCached: 784 kB Active: 970996 kB Inactive: 299284 kB Active(anon): 482696 kB Inactive(anon): 192364 kB Active(file): 488300 kB Inactive(file): 106920 kB Unevictable: 3540 kB Mlocked: 3540 kB SwapTotal: 4882556 kB SwapFree: 4879872 kB Dirty: 92 kB Writeback: 0 kB AnonPages: 675316 kB Mapped: 182128 kB Shmem: 100 kB Slab: 120988 kB SReclaimable: 97760 kB SUnreclaim: 23228 kB KernelStack: 3112 kB PageTables: 31564 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 5908544 kB Committed_AS: 2899668 kB VmallocTotal: 34359738367 kB VmallocUsed: 308452 kB VmallocChunk: 34359417852 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 124096 kB DirectMap2M: 1964032 kB DirectMap1G: 0 kB Filename Type Size Used Priority /dev/mapper/pdc_dcghgdffc9 partition 4882556 2684 -1 rootfs / rootfs rw 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,relatime,size=1019980k,nr_inodes=254995,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=410396k,mode=755 0 0 /dev/disk/by-uuid/e8cf72d7-7918-4fa1-a0e6-3fea4010a08c / ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 /dev/mapper/pdc_dcghgdffc3 /boot ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=192,data=ordered 0 0 /dev/mapper/pdc_dcghgdffc10 /home ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0 /dev/mapper/pdc_dcghgdffc1 /mnt/squeeze_boot ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=192,data=ordered 0 0 /dev/mapper/pdc_dcghgdffc6 /mnt/squeeze_system ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=48,data=ordered 0 0 /dev/mapper/pdc_dcghgdffc2 /mnt/wheezy_boot ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=192,data=ordered 0 0 /dev/mapper/pdc_dcghgdffc7 /mnt/wheezy_system ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=48,data=ordered 0 0 /dev/sdd6 /mnt/linux_backup xfs rw,nosuid,nodev,noatime,attr2,logbufs=8,noquota 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 /dev/mapper/pdc_dcghgdffc5 /mnt/windows_d vfat rw,nosuid,nodev,noexec,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=lower,quiet,errors=remount-ro 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 /dev/disk/by-uuid/e8cf72d7-7918-4fa1-a0e6-3fea4010a08c /run ext4 rw,relatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0 /dev/disk/by-uuid/e8cf72d7-7918-4fa1-a0e6-3fea4010a08c /run/lock ext4 rw,relatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0 tmpfs /run/shm tmpfs rw,nosuid,nodev,relatime 0 0 -[0000:00]-+-00.0 ATI Technologies Inc RX780/RX790 Chipset Host Bridge +-02.0-[01]----00.0 nVidia Corporation G92 [GeForce GTS 250] +-0a.0-[02]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller +-11.0 ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [Non-RAID5 mode] +-12.0 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller +-12.1 ATI Technologies Inc SB7x0 USB OHCI1 Controller +-12.2 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller +-13.0 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller +-13.1 ATI Technologies Inc SB7x0 USB OHCI1 Controller +-13.2 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller +-14.0 ATI Technologies Inc SBx00 SMBus Controller +-14.1 ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller +-14.2 ATI Technologies Inc SBx00 Azalia (Intel HDA) +-14.3 ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller +-14.4-[03]-- +-14.5 ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller +-18.0 Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration +-18.1 Advanced Micro Devices [AMD] Family 10h Processor Address Map +-18.2 Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller +-18.3 Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control \-18.4 Advanced Micro Devices [AMD] Family 10h Processor Link Control /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/2p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M |__ Port 2: Dev 2, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M |__ Port 2: Dev 2, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M |__ Port 3: Dev 3, If 1, Class=HID, Driver=usbhid, 1.5M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M |__ Port 3: Dev 3, If 0, Class=vend., Driver=Philips webcam, 12M |__ Port 3: Dev 3, If 1, Class=audio, Driver=snd-usb-audio, 12M |__ Port 3: Dev 3, If 2, Class=audio, Driver=snd-usb-audio, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M |__ Port 3: Dev 2, If 0, Class=stor., Driver=usb-storage, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
davidoss-sid@debian-sid:~$ 

Pytanie brzmi :
Jak wyedytować skrypt by wynik został czytelnie zapisany do pliku?

Przykład:

Kod: Zaznacz cały

x86_64
2.6.38-2-amd64 Linux version 2.6.38-2-amd64 (Debian 2.6.38-5) ([email protected]) (gcc version 4.4.6 (Debian 4.4.6-3) ) #1 SMP Sun May 8 13:51:57 UTC 2011
# dmidecode 2.9
SMBIOS 2.5 present.
62 structures occupying 2294 bytes.
Table at 0x0009F000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: American Megatrends Inc.
        Version: 2104   
        Release Date: 06/28/2010
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 1024 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                APM is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 KB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                LS-120 boot is supported
                ATAPI Zip drive boot is supported
                BIOS boot specification is supported
                Targeted content distribution is supported
        BIOS Revision: 8.15

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: System manufacturer
        Product Name: System Product Name
        Version: System Version
        Serial Number: System Serial Number
        UUID: C09A44F6-A7FE-D511-B4AA-90E6BAE38401
        Wake-up Type: Power Switch
        SKU Number: To Be Filled By O.E.M.
        Family: To Be Filled By O.E.M.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK Computer INC.
        Product Name: M4A77TD
        Version: Rev X.0x
        Serial Number: MF70A1G05903741
        Asset Tag: To Be Filled By O.E.M.
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: To Be Filled By O.E.M.
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Chassis Manufacture
        Type: Desktop
        Lock: Not Present
        Version: Chassis Version
        Serial Number: Chassis Serial Number
        Asset Tag: Asset-1234567890
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: None
        OEM Information: 0x00000001
        Height: Unspecified
        Number Of Power Cords: 1
        Contained Elements: 0

Handle 0x0004, DMI type 4, 40 bytes
Processor Information
        Socket Designation: AM3
        Type: Central Processor
        Family: <OUT OF SPEC>
        Manufacturer: AMD              
        ID: 42 0F 10 00 FF FB 8B 17
        Version: AMD Phenom(tm) II X4 925 Processor                  
        Voltage: 1.5 V
        External Clock: 200 MHz
        Max Speed: 2800 MHz
        Current Speed: 2800 MHz
        Status: Populated, Enabled
        Upgrade: Other
        L1 Cache Handle: 0x0005
        L2 Cache Handle: 0x0006
        L3 Cache Handle: 0x0007
        Serial Number: To Be Filled By O.E.M.
        Asset Tag: To Be Filled By O.E.M.
        Part Number: To Be Filled By O.E.M.
        Core Count: 4
        Core Enabled: 4
        Characteristics:
                64-bit capable

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
        Socket Designation: L1-Cache
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Varies With Memory Address
        Location: Internal
        Installed Size: 512 KB
        Maximum Size: 512 KB
        Supported SRAM Types:
                Pipeline Burst
        Installed SRAM Type: Pipeline Burst
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Data
        Associativity: 4-way Set-associative

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
        Socket Designation: L2-Cache
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Varies With Memory Address
        Location: Internal
        Installed Size: 2048 KB
        Maximum Size: 2048 KB
        Supported SRAM Types:
                Pipeline Burst
        Installed SRAM Type: Pipeline Burst
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Unified
        Associativity: 4-way Set-associative

Handle 0x0007, DMI type 7, 19 bytes
Cache Information
        Socket Designation: L3-Cache
        Configuration: Enabled, Not Socketed, Level 3
        Operational Mode: Varies With Memory Address
        Location: Internal
        Installed Size: 6144 KB
        Maximum Size: 6144 KB
        Supported SRAM Types:
                Pipeline Burst
        Installed SRAM Type: Pipeline Burst
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Unified
        Associativity: 4-way Set-associative

Handle 0x0008, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PS/2 Keyboard/Mouse
        Internal Connector Type: None
        External Reference Designator: PS/2 Keyboard/Mouse
        External Connector Type: PS/2
        Port Type: Other

Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB56
        Internal Connector Type: None
        External Reference Designator: USB56
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: LPT 1
        Internal Connector Type: None
        External Reference Designator: LPT 1
        External Connector Type: DB-25 male
        Port Type: Parallel Port ECP/EPP

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: COM 1
        Internal Connector Type: None
        External Reference Designator: COM 1
        External Connector Type: DB-9 male
        Port Type: Serial Port 16550A Compatible

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SPDIF_O
        Internal Connector Type: None
        External Reference Designator: SPDIF_O
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB34
        Internal Connector Type: None
        External Reference Designator: USB34
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: LAN
        Internal Connector Type: None
        External Reference Designator: LAN
        External Connector Type: RJ-45
        Port Type: Network Port

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB12
        Internal Connector Type: None
        External Reference Designator: USB12
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Line_In
        Internal Connector Type: None
        External Reference Designator: Audio_Line_In
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Line_Out
        Internal Connector Type: None
        External Reference Designator: Audio_Line_Out
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Mic_In
        Internal Connector Type: None
        External Reference Designator: Audio_Mic_In
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Center/Sub
        Internal Connector Type: None
        External Reference Designator: Audio_Center/Sub
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Rear
        Internal Connector Type: None
        External Reference Designator: Audio_Rear
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Audio_Side
        Internal Connector Type: None
        External Reference Designator: Audio_Side
        External Connector Type: Mini Jack (headphones)
        Port Type: Audio Port

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PRI IDE
        Internal Connector Type: On Board IDE
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA1
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA2
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA3
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA4
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA5
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001C, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SB_SATA6
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001D, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: CPU FAN
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001E, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: CHA FAN
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x001F, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB910
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: USB

Handle 0x0020, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB1112
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: USB

Handle 0x0021, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: USB78
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: USB

Handle 0x0022, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PANEL
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0023, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SPDIF OUT
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0024, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: AAFP
        Internal Connector Type: Other
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x0025, DMI type 9, 13 bytes
System Slot Information
        Designation: PCIE16X
        Type: 32-bit PCI Express
        Current Usage: In Use
        Length: Short
        ID: 2
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x0026, DMI type 9, 13 bytes
System Slot Information
        Designation: PCIE1X_1
        Type: 32-bit PCI Express
        Current Usage: Available
        Length: Short
        ID: 7
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x0027, DMI type 9, 13 bytes
System Slot Information
        Designation: PCIE1X_2
        Type: 32-bit PCI Express
        Current Usage: Available
        Length: Short
        ID: 9
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x0028, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI1
        Type: 32-bit PCI
        Current Usage: Available
        Length: Short
        ID: 12
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x0029, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI2
        Type: 32-bit PCI
        Current Usage: Available
        Length: Short
        ID: 13
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x002A, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI3
        Type: 32-bit PCI
        Current Usage: Available
        Length: Short
        ID: 14
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported

Handle 0x002B, DMI type 10, 6 bytes
On Board Device Information
        Type: Other
        Status: Enabled
        Description:   To Be Filled By O.E.M.

Handle 0x002C, DMI type 10, 6 bytes
On Board Device Information
        Type: Ethernet
        Status: Enabled
        Description: To Be Filled By O.E.M.

Handle 0x002D, DMI type 10, 6 bytes
On Board Device Information
        Type: Sound
        Status: Enabled
        Description: To Be Filled By O.E.M.

Handle 0x002E, DMI type 10, 6 bytes
On Board Device Information
        Type: Other
        Status: Enabled
        Description: To Be Filled By O.E.M.

Handle 0x002F, DMI type 11, 5 bytes
OEM Strings
        String 1: 90E6BAE38401
        String 2: To Be Filled By O.E.M.
        String 3: To Be Filled By O.E.M.
        String 4: To Be Filled By O.E.M.

Handle 0x0030, DMI type 13, 22 bytes
BIOS Language Information
        Installable Languages: 1
                en|US|iso8859-1
        Currently Installed Language: en|US|iso8859-1

Handle 0x0031, DMI type 15, 35 bytes
System Event Log
        Area Length: 4 bytes
        Header Start Offset: 0x0000
        Header Length: 2 bytes
        Data Start Offset: 0x0002
        Access Method: Indexed I/O, one 16-bit index port, one 8-bit data port
        Access Address: Index 0x046A, Data 0x046C
        Status: Invalid, Not Full
        Change Token: 0x00000000
        Header Format: No Header
        Supported Log Type Descriptors: 6
        Descriptor 1: End of log
        Data Format 1: OEM-specific
        Descriptor 2: End of log
        Data Format 2: OEM-specific
        Descriptor 3: End of log
        Data Format 3: OEM-specific
        Descriptor 4: End of log
        Data Format 4: OEM-specific
        Descriptor 5: End of log
        Data Format 5: OEM-specific
        Descriptor 6: End of log
        Data Format 6: OEM-specific

Handle 0x0032, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 16 GB
        Error Information Handle: Not Provided
        Number Of Devices: 4

Handle 0x0033, DMI type 19, 15 bytes
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0007FFFFFFF
        Range Size: 2 GB
        Physical Array Handle: 0x0032
        Partition Width: 0

Handle 0x0034, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0032
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: DIMM0
        Bank Locator: BANK0
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: Manufacturer0
        Serial Number: SerNum0
        Asset Tag: AssetTagNum0
        Part Number: PartNum0

Handle 0x0035, DMI type 126, 19 bytes
Inactive

Handle 0x0036, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0032
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: DIMM1
        Bank Locator: BANK1
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: Manufacturer1
        Serial Number: SerNum1
        Asset Tag: AssetTagNum1
        Part Number: PartNum1

Handle 0x0037, DMI type 126, 19 bytes
Inactive

Handle 0x0038, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0032
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 1024 MB
        Form Factor: DIMM
        Set: None
        Locator: DIMM2
        Bank Locator: BANK2
        Type: Other
        Type Detail: Synchronous
        Speed: 1333 MHz (0.8 ns)
        Manufacturer: Manufacturer2
        Serial Number: SerNum2
        Asset Tag: AssetTagNum2
        Part Number: PartNum2

Handle 0x0039, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0003FFFFFFF
        Range Size: 1 GB
        Physical Device Handle: 0x0038
        Memory Array Mapped Address Handle: 0x0033
        Partition Row Position: 1

Handle 0x003A, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0032
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 1024 MB
        Form Factor: DIMM
        Set: None
        Locator: DIMM3
        Bank Locator: BANK3
        Type: Other
        Type Detail: Synchronous
        Speed: 1333 MHz (0.8 ns)
        Manufacturer: Manufacturer3
        Serial Number: SerNum3
        Asset Tag: AssetTagNum3
        Part Number: PartNum3

Handle 0x003B, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00040000000
        Ending Address: 0x0007FFFFFFF
        Range Size: 1 GB
        Physical Device Handle: 0x003A
        Memory Array Mapped Address Handle: 0x0033
        Partition Row Position: 1

Handle 0x003C, DMI type 32, 20 bytes
System Boot Information
        Status: No errors detected

Handle 0x003D, DMI type 127, 4 bytes
End Of Table
Awatar użytkownika
Van
Beginner
Posty: 194
Rejestracja: 04 lipca 2009, 11:54

Post autor: Van »

Użyć w odpowiednich miejscach echo i w nim znak nowej linii? Tudzież ewentualnie innych znaków specjalnych, np. akapitu...
piter
Beginner
Posty: 128
Rejestracja: 09 lutego 2008, 12:45

Post autor: piter »

Zmień ostatnią linijkę skryptu na:

Kod: Zaznacz cały

lista > $logfile
Awatar użytkownika
DaVidoSS
Junior Member
Posty: 875
Rejestracja: 06 marca 2010, 11:26
Lokalizacja: ~/

Post autor: DaVidoSS »

Genialne rozwiązanie. Dziękuje bardzo. Zaprawdę wyborne!

Skrypt:

Kod: Zaznacz cały

#!/bin/bash
logfile="$PWD/syscheck.log"
lista() {
echo '########################################################'
echo 'ARCHITEKTURA'
arch
echo '########################################################'
echo ''
echo '########################################################'
echo 'JĄDRO'
uname -r
echo '########################################################'
echo ''
echo '########################################################'
echo 'WERSJA JĄDRA'
cat /proc/version
echo '########################################################'
echo ''
echo '########################################################'
echo 'DMI'
echo ''
echo '--------------------------------------------------------'
echo 'PŁYTA GŁÓWNA'
su -c "dmidecode -t baseboard"
echo ''
echo '--------------------------------------------------------'
echo 'MEMORY'
su -c "dmidecode -t memory"
echo ''
echo '--------------------------------------------------------'
echo 'BIOS'
su -c "dmidecode -t bios"
echo ''
echo '########################################################'
echo 'DISK-TEST'
echo ''
raid=""
raidmembers=""
noraid=""
if  [ `ls -la /dev/mapper/ | wc -l` > 1 ];
then
raid="`find /dev/mapper/ | grep -v ['0-9'] | grep _`*"
raidmembers="`su -c "dmraid -r" | awk '{print $1}' | cut -c 1-8`"
noraid="`find /dev/ | grep sd | grep 1| cut -c 1-8 | grep -v "$raidmembers"`*"
echo ''
echo 'RAID'
su -c "hdparm -tT $raid"
echo ''
echo 'NON-RAID'
su -c "hdparm -tT $noraid"
else
noraid="`find /dev/ | grep sd | grep ['0-99']| cut -c 1-9`*"
su -c "hdparm -tT $noraid"
fi
echo '########################################################'
echo ''
echo '########################################################'
echo 'CPU'
cat /proc/cpuinfo
echo '########################################################'
echo ''
echo '########################################################'
echo 'MEMORY'
cat /proc/meminfo
echo '########################################################'
echo ''
echo '########################################################'
echo 'SWAP'
cat /proc/swaps
echo '########################################################'
echo ''
echo '########################################################'
echo 'MOUNTED FILESYSTEM'
cat /proc/mounts
echo '########################################################'
echo ''
echo '########################################################'
echo 'PCI'
lspci -tv
echo '########################################################'
echo ''
echo '########################################################'
echo 'USB'
lsusb -tv
echo '########################################################'
echo ''
echo '########################################################'
echo 'VGA'
lspci -k | grep -i VGA
echo '########################################################'
echo ''
echo '########################################################'
echo 'GLX'
glxinfo | grep version
echo ''
glxinfo | grep rendering
echo '########################################################'
echo ''
echo '########################################################'
echo 'XORG'
echo ''
protocol_x=$( X -version 2>&1 | grep 'X Protocol Version' )
wersja_x=$( X -version 2>&1 | grep 'X.Org X Server' )
echo  $wersja_x
echo  $protocol_x
echo '########################################################'
echo ''
echo '########################################################'
echo 'ALSA'
echo ''
cat /proc/asound/version
echo '########################################################'
}
lista > $logfile
exit 0

I wygląda to tak: ;)

Kod: Zaznacz cały

########################################################
ARCHITEKTURA
x86_64
########################################################

########################################################
JĄDRO
2.6.38-2-amd64
########################################################

########################################################
WERSJA JĄDRA
Linux version 2.6.38-2-amd64 (Debian 2.6.38-5) ([email protected]) (gcc version 4.4.6 (Debian 4.4.6-3) ) #1 SMP Sun May 8 13:51:57 UTC 2011
########################################################

########################################################
DMI

--------------------------------------------------------
PŁYTA GŁÓWNA
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
    Manufacturer: ASUSTeK Computer INC.
    Product Name: M4A77TD
    Version: Rev X.0x
    Serial Number: MF70A1G05903741
    Asset Tag: To Be Filled By O.E.M.
    Features:
        Board is a hosting board
        Board is replaceable
    Location In Chassis: To Be Filled By O.E.M.
    Chassis Handle: 0x0003
    Type: Motherboard
    Contained Object Handles: 0

Handle 0x002B, DMI type 10, 6 bytes
On Board Device Information
    Type: Other
    Status: Enabled
    Description:   To Be Filled By O.E.M.

Handle 0x002C, DMI type 10, 6 bytes
On Board Device Information
    Type: Ethernet
    Status: Enabled
    Description: To Be Filled By O.E.M.

Handle 0x002D, DMI type 10, 6 bytes
On Board Device Information
    Type: Sound
    Status: Enabled
    Description: To Be Filled By O.E.M.

Handle 0x002E, DMI type 10, 6 bytes
On Board Device Information
    Type: Other
    Status: Enabled
    Description: To Be Filled By O.E.M.


--------------------------------------------------------
MEMORY
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x0032, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 16 GB
    Error Information Handle: Not Provided
    Number Of Devices: 4

Handle 0x0034, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0032
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: DIMM0
    Bank Locator: BANK0
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: Manufacturer0
    Serial Number: SerNum0
    Asset Tag: AssetTagNum0
    Part Number: PartNum0

Handle 0x0036, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0032
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: DIMM1
    Bank Locator: BANK1
    Type: Unknown
    Type Detail: None
    Speed: Unknown
    Manufacturer: Manufacturer1
    Serial Number: SerNum1
    Asset Tag: AssetTagNum1
    Part Number: PartNum1

Handle 0x0038, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0032
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 1024 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM2
    Bank Locator: BANK2
    Type: Other
    Type Detail: Synchronous
    Speed: 1333 MHz (0.8 ns)
    Manufacturer: Manufacturer2
    Serial Number: SerNum2
    Asset Tag: AssetTagNum2
    Part Number: PartNum2

Handle 0x003A, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0032
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 1024 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM3
    Bank Locator: BANK3
    Type: Other
    Type Detail: Synchronous
    Speed: 1333 MHz (0.8 ns)
    Manufacturer: Manufacturer3
    Serial Number: SerNum3
    Asset Tag: AssetTagNum3
    Part Number: PartNum3


--------------------------------------------------------
BIOS
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: American Megatrends Inc.
    Version: 2104   
    Release Date: 06/28/2010
    Address: 0xF0000
    Runtime Size: 64 kB
    ROM Size: 1024 kB
    Characteristics:
        ISA is supported
        PCI is supported
        PNP is supported
        APM is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        ESCD support is available
        Boot from CD is supported
        Selectable boot is supported
        BIOS ROM is socketed
        EDD is supported
        5.25"/1.2 MB floppy services are supported (int 13h)
        3.5"/720 KB floppy services are supported (int 13h)
        3.5"/2.88 MB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        USB legacy is supported
        LS-120 boot is supported
        ATAPI Zip drive boot is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
    BIOS Revision: 8.15

Handle 0x0030, DMI type 13, 22 bytes
BIOS Language Information
    Installable Languages: 1
        en|US|iso8859-1
    Currently Installed Language: en|US|iso8859-1


########################################################
DISK-TEST


RAID

/dev/mapper/pdc_dcghgdffc:
 Timing cached reads:   7070 MB in  2.00 seconds = 3536.83 MB/sec
 Timing buffered disk reads: 532 MB in  3.00 seconds = 177.32 MB/sec

/dev/mapper/pdc_dcghgdffc1:
 Timing cached reads:   5870 MB in  2.00 seconds = 2935.47 MB/sec
 Timing buffered disk reads: 190 MB in  1.07 seconds = 177.53 MB/sec

/dev/mapper/pdc_dcghgdffc10:
 Timing cached reads:   6396 MB in  2.00 seconds = 3198.87 MB/sec
 Timing buffered disk reads: 500 MB in  3.01 seconds = 166.20 MB/sec

/dev/mapper/pdc_dcghgdffc2:
 Timing cached reads:   6738 MB in  2.00 seconds = 3370.80 MB/sec
 Timing buffered disk reads: 190 MB in  1.08 seconds = 175.52 MB/sec

/dev/mapper/pdc_dcghgdffc3:
 Timing cached reads:   6502 MB in  2.00 seconds = 3252.18 MB/sec
 Timing buffered disk reads: 190 MB in  1.03 seconds = 184.36 MB/sec

/dev/mapper/pdc_dcghgdffc5:
 Timing cached reads:   6770 MB in  2.00 seconds = 3386.03 MB/sec
 Timing buffered disk reads: 548 MB in  3.00 seconds = 182.45 MB/sec

/dev/mapper/pdc_dcghgdffc6:
 Timing cached reads:   6880 MB in  2.00 seconds = 3441.17 MB/sec
 Timing buffered disk reads: 546 MB in  3.01 seconds = 181.35 MB/sec

/dev/mapper/pdc_dcghgdffc7:
 Timing cached reads:   6014 MB in  2.00 seconds = 3008.17 MB/sec
 Timing buffered disk reads: 530 MB in  3.01 seconds = 176.31 MB/sec

/dev/mapper/pdc_dcghgdffc8:
 Timing cached reads:   6588 MB in  2.00 seconds = 3295.66 MB/sec
 Timing buffered disk reads: 530 MB in  3.01 seconds = 176.24 MB/sec

/dev/mapper/pdc_dcghgdffc9:
 Timing cached reads:   6454 MB in  2.00 seconds = 3228.30 MB/sec
 Timing buffered disk reads: 510 MB in  3.00 seconds = 169.97 MB/sec

NON-RAID

/dev/sda:
 Timing cached reads:   6718 MB in  2.00 seconds = 3360.44 MB/sec
 Timing buffered disk reads:  92 MB in  3.06 seconds =  30.08 MB/sec

/dev/sda1:
 Timing cached reads:   6620 MB in  2.00 seconds = 3311.76 MB/sec
 Timing buffered disk reads:  82 MB in  3.04 seconds =  26.97 MB/sec

/dev/sda2:
 Timing buffered disk reads: 
/dev/sda5:
 Timing cached reads:   6750 MB in  2.00 seconds = 3376.19 MB/sec
 Timing buffered disk reads:  92 MB in  3.02 seconds =  30.49 MB/sec

/dev/sda6:
 Timing cached reads:   6712 MB in  2.00 seconds = 3357.16 MB/sec
 Timing buffered disk reads:  82 MB in  3.00 seconds =  27.31 MB/sec
########################################################

########################################################
CPU
processor    : 0
vendor_id    : AuthenticAMD
cpu family    : 16
model        : 4
model name    : AMD Phenom(tm) II X4 925 Processor
stepping    : 2
cpu MHz        : 2813.067
cache size    : 512 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 4
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 5
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save
bogomips    : 5626.13
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment    : 64
address sizes    : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor    : 1
vendor_id    : AuthenticAMD
cpu family    : 16
model        : 4
model name    : AMD Phenom(tm) II X4 925 Processor
stepping    : 2
cpu MHz        : 2813.067
cache size    : 512 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 4
apicid        : 1
initial apicid    : 1
fpu        : yes
fpu_exception    : yes
cpuid level    : 5
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save
bogomips    : 5625.11
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment    : 64
address sizes    : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor    : 2
vendor_id    : AuthenticAMD
cpu family    : 16
model        : 4
model name    : AMD Phenom(tm) II X4 925 Processor
stepping    : 2
cpu MHz        : 2813.067
cache size    : 512 KB
physical id    : 0
siblings    : 4
core id        : 2
cpu cores    : 4
apicid        : 2
initial apicid    : 2
fpu        : yes
fpu_exception    : yes
cpuid level    : 5
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save
bogomips    : 5625.13
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment    : 64
address sizes    : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor    : 3
vendor_id    : AuthenticAMD
cpu family    : 16
model        : 4
model name    : AMD Phenom(tm) II X4 925 Processor
stepping    : 2
cpu MHz        : 2813.067
cache size    : 512 KB
physical id    : 0
siblings    : 4
core id        : 3
cpu cores    : 4
apicid        : 3
initial apicid    : 3
fpu        : yes
fpu_exception    : yes
cpuid level    : 5
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save
bogomips    : 5625.12
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment    : 64
address sizes    : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

########################################################

########################################################
MEMORY
MemTotal:        2051980 kB
MemFree:          688580 kB
Buffers:            2968 kB
Cached:           440052 kB
SwapCached:         1420 kB
Active:           886508 kB
Inactive:         313504 kB
Active(anon):     469948 kB
Inactive(anon):   290640 kB
Active(file):     416560 kB
Inactive(file):    22864 kB
Unevictable:        3588 kB
Mlocked:            3452 kB
SwapTotal:       4882556 kB
SwapFree:        4874368 kB
Dirty:                92 kB
Writeback:             0 kB
AnonPages:        759300 kB
Mapped:           115092 kB
Shmem:               856 kB
Slab:              76824 kB
SReclaimable:      53388 kB
SUnreclaim:        23436 kB
KernelStack:        3088 kB
PageTables:        31660 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     5908544 kB
Committed_AS:    2899896 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      308452 kB
VmallocChunk:   34359421948 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      683200 kB
DirectMap2M:     1404928 kB
DirectMap1G:           0 kB
########################################################

########################################################
SWAP
Filename                Type        Size    Used    Priority
/dev/mapper/pdc_dcghgdffc9              partition    4882556    8188    -1
########################################################

########################################################
MOUNTED FILESYSTEM
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=10240k,nr_inodes=254967,mode=755 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=205200k,mode=755 0 0
/dev/disk/by-uuid/e8cf72d7-7918-4fa1-a0e6-3fea4010a08c / ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,size=5120k,mode=755 0 0
tmpfs /run/shm tmpfs rw,nosuid,nodev,relatime,size=410396k 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/mapper/pdc_dcghgdffc3 /boot ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=192,data=ordered 0 0
/dev/mapper/pdc_dcghgdffc10 /home ext4 rw,noatime,errors=remount-ro,barrier=0,stripe=48,data=ordered 0 0
/dev/mapper/pdc_dcghgdffc1 /mnt/squeeze_boot ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=192,data=ordered 0 0
/dev/mapper/pdc_dcghgdffc6 /mnt/squeeze_system ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=48,data=ordered 0 0
/dev/mapper/pdc_dcghgdffc2 /mnt/wheezy_boot ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=192,data=ordered 0 0
/dev/mapper/pdc_dcghgdffc7 /mnt/wheezy_system ext4 rw,noatime,errors=remount-ro,barrier=1,stripe=48,data=ordered 0 0
/dev/sda6 /mnt/linux_backup xfs rw,nosuid,nodev,noatime,attr2,logbufs=8,noquota 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/sda5 /mnt/win_backup fuseblk rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/mapper/pdc_dcghgdffc5 /mnt/windows_d vfat rw,nosuid,nodev,noexec,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8,shortname=lower,quiet,errors=remount-ro 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
########################################################

########################################################
PCI
-[0000:00]-+-00.0  ATI Technologies Inc RX780/RX790 Chipset Host Bridge
           +-02.0-[01]----00.0  nVidia Corporation G92 [GeForce GTS 250]
           +-0a.0-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
           +-11.0  ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [Non-RAID5 mode]
           +-12.0  ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
           +-12.1  ATI Technologies Inc SB7x0 USB OHCI1 Controller
           +-12.2  ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
           +-13.0  ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
           +-13.1  ATI Technologies Inc SB7x0 USB OHCI1 Controller
           +-13.2  ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
           +-14.0  ATI Technologies Inc SBx00 SMBus Controller
           +-14.1  ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller
           +-14.2  ATI Technologies Inc SBx00 Azalia (Intel HDA)
           +-14.3  ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller
           +-14.4-[03]--
           +-14.5  ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
           +-18.0  Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
           +-18.1  Advanced Micro Devices [AMD] Family 10h Processor Address Map
           +-18.2  Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
           +-18.3  Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
           \-18.4  Advanced Micro Devices [AMD] Family 10h Processor Link Control
########################################################

########################################################
USB
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/2p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
    |__ Port 2: Dev 2, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
    |__ Port 2: Dev 2, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
    |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 1, Class=HID, Driver=usbhid, 1.5M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
    |__ Port 3: Dev 3, If 0, Class=vend., Driver=Philips webcam, 12M
    |__ Port 3: Dev 3, If 1, Class=audio, Driver=snd-usb-audio, 12M
    |__ Port 3: Dev 3, If 2, Class=audio, Driver=snd-usb-audio, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
    |__ Port 3: Dev 2, If 0, Class=stor., Driver=usb-storage, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
########################################################

########################################################
VGA
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce GTS 250] (rev a2)
########################################################

########################################################
GLX
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 3.3.0 NVIDIA 270.41.06
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler

direct rendering: Yes
########################################################

########################################################
XORG

X.Org X Server 1.10.1
X Protocol Version 11, Revision 0
########################################################

########################################################
ALSA

Advanced Linux Sound Architecture Driver Version 1.0.23.
########################################################

Może ktoś skorzysta..
Awatar użytkownika
Van
Beginner
Posty: 194
Rejestracja: 04 lipca 2009, 11:54

Post autor: Van »

W sumie to mogłeś zrobić to bardziej elegancko, użyć polecenia alias, i zamienić te wszystkie występujące

Kod: Zaznacz cały

echo ''
echo '########################################################'
Na jakieś aliasy.

Ale sam skrypt fajny. Weź go umieść na blogu, w How-To czy coś. Może być przydatny :)
Awatar użytkownika
DaVidoSS
Junior Member
Posty: 875
Rejestracja: 06 marca 2010, 11:26
Lokalizacja: ~/

Post autor: DaVidoSS »

Wedle życzenia.
ODPOWIEDZ