• tail a specific file

    From Michael2@21:2/145 to All on Tue Feb 11 08:55:04 2020
    is there anyway within mystic to choose a specific file like say mis.log and tail it my default?? (all from the same line) ex. tail -n20 -f /mystic/logs/mis.log

    without having to use something external??? so would not worry about lost connections killing screen etc..

    Thanks

    Michael2
    telnet://mansion.dynv6.net:2323
    web://mansion.dynv6.net:1580

    --- Mystic BBS v1.12 A44 2020/02/02 (Linux/64)
    * Origin: Mike's Mansion - Pdx,Or - mansion.dynv6.net:2323 (21:2/145)
  • From Analog@21:2/123 to Michael2 on Tue Feb 11 11:15:28 2020
    is there anyway within mystic to choose a specific file like say mis.log and tail it my default?? (all from the same line) ex. tail -n20 -f /mystic/logs/mis.log

    Do you mean from within Mystic and show it to the screen while following like you wrote above? No way to do that.

    Off the top of my head, one way would be to make a menu with a timer for sysop access and have it run an external command:
    Menu Item:
    Hot Key: TIMER
    Exec Timer: 1 (1 second interval)
    Timer Type: Every interval
    Action List:
    Command: DD (exec external command)
    Data: "tail -n20 -f /xxx/xxx.log"

    There are probably a few other ways that would work also.

    |20|15ÚÄ|16|08´ |08De|07ad|15be|07a|08tz b|07b|15s
    |08ÀÄÙÃÄ¿ |08:>.|07A|08rk |0710|08:|07101|08/|0714|08.
    |04þ |08À|20|15Ä|16|08Ù |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |04A|07n|15al|07o|08g |08:>.|12F|04sx |1221|08:|122|08/|12123|08. |15.|04p|07HENOM|15. |08:>.|15S|07ci |1577|08:|151|08/|15131|08. |04°±°|08±ÛÛÜÝ|08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A45 2020/02/09 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)
  • From Analog@21:2/123 to Michael2 on Tue Feb 11 11:16:26 2020
    Data: "tail -n20 -f /xxx/xxx.log"

    *Correction, remove the "-f" or it will lock up your menu

    |20|15ÚÄ|16|08´ |08De|07ad|15be|07a|08tz b|07b|15s
    |08ÀÄÙÃÄ¿ |08:>.|07A|08rk |0710|08:|07101|08/|0714|08.
    |04þ |08À|20|15Ä|16|08Ù |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |04A|07n|15al|07o|08g |08:>.|12F|04sx |1221|08:|122|08/|12123|08. |15.|04p|07HENOM|15. |08:>.|15S|07ci |1577|08:|151|08/|15131|08. |04°±°|08±ÛÛÜÝ|08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A45 2020/02/09 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)
  • From g00r00@21:1/108 to Michael2 on Tue Feb 11 14:08:44 2020
    ~ Mi> is there anyway within mystic to choose a specific file like say mis.log
    and tail it my default?? (all from the same line) ex. tail -n20 -f /mystic/logs/mis.log

    There is a log viewer in the configuration editor and also a menu command for it, but it doesn't tail the log.

    without having to use something external??? so would not worry about lost connections killing screen etc..

    I am not sure I understand exactly what your concerns are with using tail, can you help me better understand? I think you should be able to use tail if you want to using a door menu command. If a connection is dropped, Mystic should send a "SIGTERM" to the running subprocess as long as it was executed as a door.

    --- Mystic BBS v1.12 A45 2020/02/09 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From Michael2@21:2/145 to g00r00 on Tue Feb 11 11:41:34 2020
    There is a log viewer in the configuration editor and also a menu
    command for it, but it doesn't tail the log.

    I am not sure I understand exactly what your concerns are with using
    tail, can you help me better understand? I think you should be able to use tail if you want to using a door menu command. If a connection is dropped, Mystic should send a "SIGTERM" to the running subprocess as
    long as it was executed as a door.


    the reason to use tail, is to see what is currently happening with a file
    the log file viewer, is cumbersome, you can not specify a file, so you have
    to navigate to a file, then hit esc (not all terminals map that
    correctly)then hit / to get to whats currently happening

    I just want to be able see whats going on quickly

    Michael2
    telnet://mansion.dynv6.net:2323
    web://mansion.dynv6.net:1580

    --- Mystic BBS v1.12 A44 2020/02/02 (Linux/64)
    * Origin: Mike's Mansion - Pdx,Or - mansion.dynv6.net:2323 (21:2/145)
  • From g00r00@21:1/108 to Michael2 on Tue Feb 11 16:07:34 2020
    I am not sure I understand exactly what your concerns are with using tail, can you help me better understand? I think you should be able

    the reason to use tail, is to see what is currently happening with a file the log file viewer, is cumbersome, you can not specify a file, so you have to navigate to a file, then hit esc (not all terminals map that correctly)then hit / to get to whats currently happening

    I just want to be able see whats going on quickly

    Thank you for the answer. I do understand how tail itself works, but what I
    am trying to understand is what your concerns are with using it with Mystic's log. You should be able to use tail with Mystic's logs.

    --- Mystic BBS v1.12 A45 2020/02/09 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From Gamgee@21:2/138 to Michael2 on Tue Feb 11 16:27:00 2020
    Michael2 wrote to g00r00 <=-

    the reason to use tail, is to see what is currently happening
    with a file the log file viewer, is cumbersome, you can not
    specify a file, so you have to navigate to a file, then hit esc
    (not all terminals map that correctly)then hit / to get to whats
    currently happening

    I just want to be able see whats going on quickly

    Assuming you're using Linux, with no GUI... just use the 'screen'
    utility to run various terminals. One for Mystic, another for
    tailing a log. You can switch back and forth between the screen
    sessions at will.

    Or, if you do have a GUI, just open multiple terminal windows and
    do the above.



    ... Great thing about UDP jokes? I don't care if you get them.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.10-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (21:2/138)
  • From Michael2@21:2/145 to Gamgee on Wed Feb 12 07:07:26 2020
    Assuming you're using Linux, with no GUI... just use the 'screen'
    utility to run various terminals. One for Mystic, another for
    tailing a log. You can switch back and forth between the screen
    sessions at will.


    I was looking for a way to make it a bit easier - the bbs machine does
    actually have a monitor, and I can toggle back & forth but, I was looking for something more on the go, and with my clumsy fingers, I wouldn't want to
    forget which "screen" I was looking in, and close mis ..lol

    right now, tailing the logfile seems to work the eaisest and least prone to
    an oops, now to figure out how too tell what message areas are just came in
    the mail (via log)

    Michael

    Michael2
    telnet://mansion.dynv6.net:2323
    web://mansion.dynv6.net:1580

    --- Mystic BBS v1.12 A44 2020/02/02 (Linux/64)
    * Origin: Mike's Mansion - Pdx,Or - mansion.dynv6.net:2323 (21:2/145)