Subj : still not tossing
To : Rick Smith
From : Alan Ianson
Date : Sat Jan 07 2023 09:02 pm
> 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)