• Linux Bash Script

    From Geri Atricks@21:3/235 to All on Sun Mar 8 21:56:24 2026
    Would the following script work to start the BBS on the second workspace?
    I already have the script setup in the autostart options, but added the wmctrl line because I want it to open the terminal window and start the BBS on the second workspace.

    #!/bin/bash
    (command &); wmctrl -r "Window Title" -t 1
    cd /mystic/semaphore
    rm *.bsy
    cd /mystic
    ./mis -server

    -FltCapt Dallas Vinson, SFI

    ... What hair color do they put on the driver's licenses of bald men?

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Legends of Yesteryear (21:3/235)
  • From niter3@21:1/199 to Geri Atricks on Mon Mar 9 06:31:15 2026
    Would the following script work to start the BBS on the second workspace? I already have the script setup in the autostart options, but added the wmctrl line because I want it to open the terminal window and start the BBS on the second workspace.

    #!/bin/bash
    (command &); wmctrl -r "Window Title" -t 1
    cd /mystic/semaphore
    rm *.bsy
    cd /mystic
    ./mis -server

    Without testing I cannot confirm, but it looks like it.

    Why not create a systemd service instead?

    ... Kilometers are shorter than miles. Save gas, take your trip in kilometers

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)
  • From Geri Atricks@21:3/235 to niter3 on Tue Mar 10 08:23:06 2026
    Why not create a systemd service instead?

    Explain please. I'm not as fluent in Linux as I was in DOS or WinBlows.

    -FltCapt Dallas Vinson, SFI

    ... Oxymoron: Race walking

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Legends of Yesteryear (21:3/235)
  • From GRiM@21:3/234 to Geri Atricks on Tue Mar 10 09:30:48 2026
    On 10 Mar 2026, Geri Atricks said the following...

    Explain please. I'm not as fluent in Linux as I was in DOS or WinBlows.


    This is a good starting point to look at:

    https://vswitchzero.com/mystic-systemd/

    it works pretty well out of the box.

    They are system startup scripts that prompt linux to boot up mystic (and other progs) as a system service at boot, even before user login.

    think of it as a more advanced AUTOEXEC.BAT file or windows services.

    -g

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A49 2023/01/27 (Raspberry Pi/32)
    * Origin: The Dark Side (21:3/234)
  • From Geri Atricks@21:3/235 to GRiM on Tue Mar 10 14:25:39 2026
    Ok, my bash seems to be running, but I don't get the window so that I can monitor what the BBS is doing. :(
    Other than that what I wrote seems to be working just fine.

    -FltCapt Dallas Vinson, SFI

    ... They say there's always one weirdo on the bus, but I couldn't find them!

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Legends of Yesteryear (21:3/235)
  • From niter3@21:1/199 to Geri Atricks on Tue Mar 10 15:32:59 2026
    Ok, my bash seems to be running, but I don't get the window so that I can monitor what the BBS is doing. :(
    Other than that what I wrote seems to be working just fine.

    Right, would nodespy be good enough?

    ... Electricity is really just organized lightning.

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)
  • From GRiM@21:3/234 to Geri Atricks on Tue Mar 10 14:49:22 2026
    On 10 Mar 2026, Geri Atricks said the following...

    Ok, my bash seems to be running, but I don't get the window so that I can monitor what the BBS is doing. :(
    Other than that what I wrote seems to be working just fine.

    Nice work! Yah, that's the downside of running it in a service.

    At the moment, I have a couple ssh terminals open to the BBS Pi at any given time running 2-3 commands:

    1. tail -f /bbs/mystic/logs/*.log
    - this gives a live feed of anything happening, incoming/outgoing echomail packets and files, connections, etc. anything that writes to the log files.

    2. /bbs/mystic/nodespy
    - this is a nice UI that acts like a waiting for caller screen. You can see who's logged in, snoop on their sessions, kick as needed, etc.

    3. /bbs/mystic/mystic -cfg
    - running as needed, but usually running while I'm working on things.

    Hope that helps!

    G

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A49 2023/01/27 (Raspberry Pi/32)
    * Origin: The Dark Side (21:3/234)
  • From ogg@21:2/147 to niter3 on Tue Mar 10 15:22:01 2026
    On 10 Mar 2026, niter3 said the following...

    Ok, my bash seems to be running, but I don't get the window so that I


    monitor what the BBS is doing. :(
    Other than that what I wrote seems to be working just fine.

    Right, would nodespy be good enough?

    ... Electricity is really just organized lightning.

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)

    I'm set up to use "https://vswitchzero.com/mystic-systemd/". It allows me an unattended restart of the bbs on a power loss. To actually see what the bbs is doing, I shut down the systemd service. Then I start the bbs back up manually with ./mis server. That window I keep open.

    I used to run nodespy as well but it only shows info when a user is actually logged in. I don't run it full time any more.

    I'm going to try tail -f /bbs/mystic/logs/*.log and see how I like it.

    |11ogg
    |11SysOp, Altair IV BBS
    |11altairiv.ddns.net:2323

    ... Users come in two types: Those who have lost data, and those who will.

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Altair IV BBS (altairiv.ddns.net:2323) (21:2/147)
  • From GRiM@21:3/234 to niter3 on Tue Mar 10 15:33:14 2026
    On 10 Mar 2026, niter3 said the following...

    Right, would nodespy be good enough?

    nodespy only shows you node status and user activity. tailing log files gives you all the mailer/mutil/mis info on top of that.

    ... 24 hours in a day and 24 beers in a case. Hmmmm...

    --- Mystic BBS v1.12 A49 2023/01/27 (Raspberry Pi/32)
    * Origin: The Dark Side (21:3/234)
  • From niter3@21:1/199 to ogg on Wed Mar 11 05:21:51 2026
    I used to run nodespy as well but it only shows info when a user is actually logged in. I don't run it full time any more.

    I'm going to try tail -f /bbs/mystic/logs/*.log and see how I like it.

    When I got back into in 2007, I wanted the WFC menu like we had in Renegade.

    I started on linux and have remained on linux since.

    In either case, what exactly do you want to see when you walk by or look at your screen?

    ... Top secret! Burn before reading!

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)
  • From niter3@21:1/199 to GRiM on Wed Mar 11 05:22:44 2026
    Right, would nodespy be good enough?

    nodespy only shows you node status and user activity. tailing log files gives you all the mailer/mutil/mis info on top of that.

    Right, so he could write a bash file that load nodespy and tail's the logs on the screen.

    Guess it depends on what he wants out of it? What is he trying to solve.

    ... Back up my hard drive? I can't find the reverse switch!

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (21:1/199)