• still not tossing

    From Rick Smith@1:105/10 to Alan Ianson on Saturday, January 07, 2023 22:18:58
    Greetings Alan!

    Saturday January 07 2023 21:02, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt

    This line well echo "processing" and redirect the output to /tmp/test

    echo "PATH = $PATH";

    This line will echo PATH = /your path (whatever it is).

    echo "SHELL = $SHELL";

    This line will echo SHELL = /bin/bash, if bash is your shell but those lines won't change your path or shell in any way.

    /usr/local/bin/hpt toss

    I would expect /usr/local/bin/hpt toss does run if that is the path to hpt.

    so the test.tx still gets created, so binkd is running the script,
    it just doesn't execute the hpt toss?

    Binkd doesn't run hpt, it just runs your script that needs to do what
    you want it to do.

    Im confused at your response, I did not ask what each line of my script does, I was merely looking for help as to why hpt toss isnt running. I know that binkd doesnt execute hpt, I was saying that binkd correctly runs mail-toss script and I know this because that text file gets created. However my system for whatever reason doesnt continue on with the script.



    ----
    Regards,


    Rick Smith (Nitro)

    ... Pardon me, I've been BBSing.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Alan Ianson@1:153/757.2 to Rick Smith on Saturday, January 07, 2023 23:45:43
    Hello Rick,

    Im confused at your response, I did not ask what each line of my
    script does,

    I was wondering what those two echo lines were trying to accomplish, if anything.

    I was merely looking for help as to why hpt toss isnt running. I know that binkd doesnt execute hpt, I was saying that binkd correctly runs mail-toss script and I know this because that text file gets created. However my system for whatever reason doesnt continue on with the
    script.

    I have a similar script that simply runs "/usr/local/bin/hpt toss link", and it does execute hpt succesfully.

    I don't have enough information to know why it doesn't work for you.

    Ttyl :-),
    Al

    ... @/home/alan/mmail/taglines
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757.2)
  • From Björn Wiberg@2:201/137 to Rick Smith on Sunday, January 08, 2023 09:36:51
    Hello Rick!

    On 07 Jan 2023, Rick Smith said the following...
    so the test.tx still gets created, so binkd is running the script, it
    just doesn't execute the hpt toss?

    Maybe it's checking for a terminal/input, determines that there is none, and bails out.

    /usr/local/bin/hpt toss

    Try:

    /usr/local/bin/hpt toss < /dev/null

    ...to see if that helps.

    Best regards
    Bjrn

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From Tommi Koivula@2:221/360 to Rick Smith on Sunday, January 08, 2023 11:37:26
    Hi Rick.

    07 Jan 23 19:45, you wrote to All:

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    so the test.tx still gets created, so binkd is running the script, it just doesn't execute the hpt toss?

    What does your hpt.log say?

    How about fidoconfig, does your hpt find it when called from binkd?

    try /usr/local/bin/hpt -c /path/to/fidoconfig toss

    'Tommi

    --- GoldED+/LNX 1.1.5-b20220409
    * Origin: Linux 5.15.76-v7+ armv7l (2:221/360)
  • From Wilfred van Velzen@2:280/464 to Rick Smith on Sunday, January 08, 2023 12:50:30
    Hi Rick,

    On 2023-01-07 19:45:08, you wrote to All:

    This is getting strange, I am sure it is something I am just
    overlooking
    Ive know tried adding /mystic /fido/etc to the path and changed my script to be;

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    Try this:

    #!/bin/bash
    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr


    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.1-B20230107
    * Origin: FMail development HQ (2:280/464)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Sunday, January 08, 2023 15:02:36
    Greetings Wilfred!

    Sunday January 08 2023 12:50, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 2023-01-07 19:45:08, you wrote to All:

    This is getting strange, I am sure it is something I am just
    overlooking
    Ive know tried adding /mystic /fido/etc to the path and changed
    my script to be;

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors from it? I am unfamiliar with stdout and stderr..

    ----
    Regards,


    Rick Smith (Nitro)

    ... BBSing, the 'Electronic High'
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Oli@2:280/464.47 to Rick Smith on Monday, January 09, 2023 13:00:57
    Rick wrote (2023-01-08):

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors from it? I am unfamiliar with stdout and stderr..

    Output is written to the file /tmp/test.txt. Open it in an editor or

    less /tmp/test.txt

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Wilfred van Velzen@2:280/464.112 to Rick Smith on Monday, January 09, 2023 13:07:04
    Hi Rick,

    On 08 Jan 23 15:02, Rick Smith wrote to Wilfred van Velzen:
    about: "still not tossing":

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen (normal and errors). It's now redirected to the /tmp/test.txt file...

    Wilfred.

    --- FMail-W32 2.0.1.4
    * Origin: point@work (2:280/464.112)
  • From Rick Smith@1:105/10 to All on Saturday, January 07, 2023 19:45:08
    Greetings All!

    This is getting strange, I am sure it is something I am just overlooking Ive know tried adding /mystic /fido/etc to the path and changed my script to be;

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    so the test.tx still gets created, so binkd is running the script, it just doesn't execute the hpt toss?



    ----
    Regards,


    Rick Smith (Nitro)

    ... YKYHW: You consider BBSing better than chocolate.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Alan Ianson@1:153/757 to Rick Smith on Saturday, January 07, 2023 21:02:56
    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt

    This line well echo "processing" and redirect the output to /tmp/test

    echo "PATH = $PATH";

    This line will echo PATH = /your path (whatever it is).

    echo "SHELL = $SHELL";

    This line will echo SHELL = /bin/bash, if bash is your shell but those lines won't change your path or shell in any way.

    /usr/local/bin/hpt toss

    I would expect /usr/local/bin/hpt toss does run if that is the path to hpt.

    so the test.tx still gets created, so binkd is running the script, it just doesn't execute the hpt toss?

    Binkd doesn't run hpt, it just runs your script that needs to do what you want it to do.



    ----
    Regards,


    Rick Smith (Nitro)

    ... YKYHW: You consider BBSing better than chocolate.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Wednesday, January 11, 2023 19:54:16
    Greetings Wilfred!

    Monday January 09 2023 13:07, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 08 Jan 23 15:02, Rick Smith wrote to Wilfred van Velzen:
    about: "still not tossing":

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen (normal
    and errors). It's now redirected to the /tmp/test.txt file...

    Wilfred.

    I should have something to report on next poll... I have been traveling and having a hard time getting into the bbs from a prompt until today..


    ----
    Regards,


    Rick Smith (Nitro)

    ... Hopeless addict to BBSing, I need a QWK fix
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Wednesday, January 11, 2023 20:06:38
    Greetings Wilfred!

    Monday January 09 2023 13:07, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 08 Jan 23 15:02, Rick Smith wrote to Wilfred van Velzen:
    about: "still not tossing":

    rick@abacus:~$ cat /usr/local/bin/mail-toss.sh
    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen (normal
    and errors). It's now redirected to the /tmp/test.txt file...

    Wilfred.

    ok, still not tossing but now the test.txt isnt being created with the script above that you suggested?


    ----
    Regards,


    Rick Smith (Nitro)

    ... A job is nice, but it interferes with my BBSing...
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Wilfred van Velzen@2:280/464.112 to Rick Smith on Thursday, January 12, 2023 08:18:52
    Hi Rick,

    On 11 Jan 23 20:06, Rick Smith wrote to Wilfred van Velzen:
    about: "still not tossing":


    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen (normal
    and errors). It's now redirected to the /tmp/test.txt file...

    ok, still not tossing but now the test.txt isnt being created with the script above that you suggested?

    You don't quote the first line:

    #!/bin/bash

    Did you include that in the script?

    Does it work on the commandline, and creating the /tmp/test.txt file?


    Wilfred.

    --- FMail-W32 2.0.1.4
    * Origin: point@work (2:280/464.112)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Thursday, January 12, 2023 05:44:34
    Greetings Wilfred!

    Thursday January 12 2023 08:18, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 11 Jan 23 20:06, Rick Smith wrote to Wilfred van Velzen:
    about: "still not tossing":


    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen
    (normal and errors). It's now redirected to the /tmp/test.txt
    file...

    ok, still not tossing but now the test.txt isnt being created
    with the script above that you suggested?

    You don't quote the first line:

    #!/bin/bash

    Did you include that in the script?

    Does it work on the commandline, and creating the /tmp/test.txt file?


    Wilfred.

    works fine on command line.. I noticed that it ran last night at midnight on one packet but /in was still full of pkts... Crazy


    ----
    Regards,


    Rick Smith (Nitro)

    ... YKYHW: You consider BBSing better than chocolate.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Wilfred van Velzen@2:280/464 to Rick Smith on Thursday, January 12, 2023 15:30:22
    Hi Rick,

    On 2023-01-12 05:44:34, you wrote to me:

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen
    (normal and errors). It's now redirected to the /tmp/test.txt
    file...

    ok, still not tossing but now the test.txt isnt being created
    with the script above that you suggested?

    Does it work on the commandline, and creating the /tmp/test.txt file?

    works fine on command line.. I noticed that it ran last night at
    midnight on one packet but /in was still full of pkts... Crazy

    And what was in the /tmp/test.txt file after it ran?

    And you should probably change the > to >> so the output of previous runs don't get overwritten. And change the 'echo "processing"' to 'date +"%F %T%tprocessing"', so you can put a timestamp on when things are happening.


    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.1-B20230107
    * Origin: FMail development HQ (2:280/464)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Friday, January 13, 2023 05:56:50
    Greetings Wilfred!

    Thursday January 12 2023 15:30, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 2023-01-12 05:44:34, you wrote to me:

    {
    echo "processsing"
    echo "PATH = $PATH";
    echo "SHELL = $SHELL";
    /usr/local/bin/hpt toss

    } >/tmp/test.txt 2>&1

    So you can see everything that is written to stdout and
    stderr

    I am giving this a go thankyou... Where will I see the errors
    from it? I am unfamiliar with stdout and stderr..

    It is what the software normally outputs to the console screen
    (normal and errors). It's now redirected to the /tmp/test.txt
    file...

    ok, still not tossing but now the test.txt isnt being created
    with the script above that you suggested?

    Does it work on the commandline, and creating the /tmp/test.txt
    file?

    works fine on command line.. I noticed that it ran last night at
    midnight on one packet but /in was still full of pkts... Crazy

    And what was in the /tmp/test.txt file after it ran?

    And you should probably change the > to >> so the output of previous
    runs don't get overwritten. And change the 'echo "processing"' to
    'date +"%F %T%tprocessing"', so you can put a timestamp on when things
    are happening.

    I rebuilt husky and all is fine now... wish I had started there, thank you for all your help


    ----
    Regards,


    Rick Smith (Nitro)

    ... I love BBSing: All the social dynamics of kindergarten!
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)