Hi all,
As the title suggests, does anyone know how to get some terminal data into a useable form in Pd?
Terminal command via [shell]
lsof -c Terminal
Comes back with
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Terminal 320 sergery cwd DIR 14,2 1224 389127 /Users/sergery
Terminal 320 sergery txt REG 14,2 1089648 138776 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
Terminal 320 sergery txt REG 14,2 2295501 288102 /System/Library/Fonts/LucidaGrande.dfont
Terminal 320 sergery txt REG 14,2 5425538 293864 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Terminal 320 sergery txt REG 14,2 13525940 224074 /private/var/folders/vb/vbpUhSc-HtShEQmAZppmw++++TI/-Caches-/com.apple.ATS/annex_aux
Terminal 320 sergery txt REG 14,2 10244512 400652 /usr/share/icu/icudt36l.dat
Terminal 320 sergery txt REG 14,2 1832384 370074 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/SArtFile.bin
Terminal 320 sergery txt REG 14,2 11144400 270259 /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
Terminal 320 sergery txt REG 14,2 531341 288103 /System/Library/Fonts/Monaco.dfont
Terminal 320 sergery txt REG 14,2 19336 224106 /private/var/folders/vb/vbpUhSc-HtShEQmAZppmw++++TI/-Caches-/com.apple.IntlDataCache.le.sbdl
Terminal 320 sergery txt REG 14,2 808008 352421 /System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
Terminal 320 sergery txt REG 14,2 100788 246657 /System/Library/Caches/com.apple.IntlDataCache.le.kbdx
Terminal 320 sergery txt REG 14,2 144580 293934 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Terminal 320 sergery txt REG 14,2 490410 293847 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Terminal 320 sergery txt REG 14,2 5836820 369904 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/ArtFile.bin
Terminal 320 sergery txt REG 14,2 2396160 553076 /Library/Caches/com.apple.LaunchServices-023501.csstore
Terminal 320 sergery txt REG 14,2 1059792 393626 /usr/lib/dyld
Terminal 320 sergery txt REG 14,2 139087872 431216 /private/var/db/dyld/dyld_shared_cache_i386
Terminal 320 sergery 0r CHR 3,2 0t0 36655364 /dev/null
Terminal 320 sergery 1 PIPE 0x23baee0 16384
Terminal 320 sergery 2 PIPE 0x23baee0 16384
Terminal 320 sergery 3r REG 14,2 5425538 293864 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Terminal 320 sergery 4 PIPE 0x23b812c 16384
Terminal 320 sergery 5 PIPE 0x23b80c8 16384
Terminal 320 sergery 6 PIPE 0x23ba7d8 16384
Terminal 320 sergery 7 PIPE 0x23ba83c 16384
Terminal 320 sergery 9r REG 14,2 144580 293934 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Terminal 320 sergery 10r REG 14,2 490410 293847 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Terminal 320 sergery 12u CHR 15,0 0t105 36958084 /dev/ptmx
PostOpChopShop:~ sergery$ lsof -c Terminal
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Terminal 320 sergery cwd DIR 14,2 1224 389127 /Users/sergery
Terminal 320 sergery txt REG 14,2 1089648 138776 /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
Terminal 320 sergery txt REG 14,2 2295501 288102 /System/Library/Fonts/LucidaGrande.dfont
Terminal 320 sergery txt REG 14,2 5425538 293864 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Terminal 320 sergery txt REG 14,2 13525940 224074 /private/var/folders/vb/vbpUhSc-HtShEQmAZppmw++++TI/-Caches-/com.apple.ATS/annex_aux
Terminal 320 sergery txt REG 14,2 10244512 400652 /usr/share/icu/icudt36l.dat
Terminal 320 sergery txt REG 14,2 1832384 370074 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/SArtFile.bin
Terminal 320 sergery txt REG 14,2 11144400 270259 /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
Terminal 320 sergery txt REG 14,2 531341 288103 /System/Library/Fonts/Monaco.dfont
Terminal 320 sergery txt REG 14,2 19336 224106 /private/var/folders/vb/vbpUhSc-HtShEQmAZppmw++++TI/-Caches-/com.apple.IntlDataCache.le.sbdl
Terminal 320 sergery txt REG 14,2 808008 352421 /System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
Terminal 320 sergery txt REG 14,2 100788 246657 /System/Library/Caches/com.apple.IntlDataCache.le.kbdx
Terminal 320 sergery txt REG 14,2 144580 293934 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Terminal 320 sergery txt REG 14,2 490410 293847 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Terminal 320 sergery txt REG 14,2 5836820 369904 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/Resources/ArtFile.bin
Terminal 320 sergery txt REG 14,2 2396160 553076 /Library/Caches/com.apple.LaunchServices-023501.csstore
Terminal 320 sergery txt REG 14,2 1059792 393626 /usr/lib/dyld
Terminal 320 sergery txt REG 14,2 139087872 431216 /private/var/db/dyld/dyld_shared_cache_i386
Terminal 320 sergery 0r CHR 3,2 0t0 36655364 /dev/null
Terminal 320 sergery 1 PIPE 0x23baee0 16384
Terminal 320 sergery 2 PIPE 0x23baee0 16384
Terminal 320 sergery 3r REG 14,2 5425538 293864 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
Terminal 320 sergery 4 PIPE 0x23b812c 16384
Terminal 320 sergery 5 PIPE 0x23b80c8 16384
Terminal 320 sergery 6 PIPE 0x23ba7d8 16384
Terminal 320 sergery 7 PIPE 0x23ba83c 16384
Terminal 320 sergery 9r REG 14,2 144580 293934 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/HIToolbox.rsrc
Terminal 320 sergery 10r REG 14,2 490410 293847 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/English.lproj/Localized.rsrc
Terminal 320 sergery 12u CHR 15,0 0t3717 36958084 /dev/ptmx
I'd like to get all this data into Pd somehow.
At some point I'd like to write it to a file and then search through it for the file name that I want. I'm having trouble though. Any ideas?