• Sending message to user from bash script

    From deepthaw@1:103/705 to All on Thu Nov 12 18:34:43 2020
    Is it possible to send a text string to a user in a bash script which is getting called as a transfer protocol?

    I'm working on a script to send files via an http:// link, and I have all of it working but telling the user where to download it.

    I'm very new to UNIX/socket programming, would this involve the %i and %h (ip address and socket descriptor) parameters?

    I tried something like: echo -e "Test\n" | netcat $1 $2
    where $1 = %i and $2 = %h and saw nothing. I've tried it with both socket io enabled and disabled for the protocol from scfg.

    ---
    þ Synchronet þ c.o.r.t.e.x 2.0.2.0 | telnet://deepthaw.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to deepthaw on Thu Nov 12 17:42:26 2020
    Re: Sending message to user from bash script
    By: deepthaw to All on Thu Nov 12 2020 06:34 pm

    Is it possible to send a text string to a user in a bash script which is getting called as a transfer protocol?

    I think I covered this in the previous reply.
    --
    digital man

    This Is Spinal Tap quote #33:
    Nigel Tufnel: Well, so what? What's wrong with bein' sexy?
    Norco, CA WX: 60.2øF, 54.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deepthaw@1:103/705 to Digital Man on Thu Nov 12 20:25:24 2020
    Re: Sending message to user from bash script
    By: Digital Man to deepthaw on Thu Nov 12 2020 05:42 pm

    I think I covered this in the previous reply.

    Apologies, while testing this I kept crashing (!) my system and thought the original post didn't get sent out. Thank you for the prompt help!

    ---
    þ Synchronet þ c.o.r.t.e.x 2.0.2.0 | telnet://deepthaw.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)