Author Topic: Exporting CLI output to PC-readable text file  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

Exporting CLI output to PC-readable text file

« on: February 14, 2015, 04:31:59 PM »
  • Thank You
  • -Given: 0
  • -Receive: 1
  • morbius

    Posts: 38
    User Rating: +4/-0
    Offline
    • *
    • Jr. Member
    The screen on my LG Optimus Fuel (L34C/KitKat) is so small, it makes doing command line in Terminal Emulator a PITA.  So when I need to see the complete output from something like a "mount" command, it occurs to me that it would be a lot easier if I just redirected the output to a text file in a Windoze-accessible directory, then examined the file on a PC.  Except the text files never show up in Windoze Explorer.

    For example, I'm executing "mount > " after SU-ing to root.  For the output file's destination, I have used /storage/external_SD, /mnt/media_rw/external_SD and /storage/emulated/legacy/Download.  In every case, I can both list and cat the destination file in the target directory, so there is no doubt the target file was created.  And I can see into the target directory through Windoze Explorer (phone is connected to Windoze PC by USB).  But I can't "see" the file itself through Windoze.

    The created file has r-w perms for root and owner, same as all the other files in the directory, which I can see in Windoze Explorer.  I tried giving the file the mark of the beast to make it readable/writable to the world ( chmod 666 ./mount.kitkat.txt ) but apparently superuser in Terminal Emulator does not have full root privileges because the file's perms did not change.  And neither did the file suddenly become visible.

    So what am I doing wrong?  How to I capture CLI output to a file which can read and analyse on a PC's screen?
    • Stock
    • LG Optimus Fuel
    • TWRP
    • Stock-Rooted

    Tags: