• Sending message to user from bash script

    From deepthaw@VERT/CORTEX to All on Thursday, November 12, 2020 18:34:43
    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
  • From Digital Man@VERT to deepthaw on Thursday, November 12, 2020 17:42:26
    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.2F, 54.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From deepthaw@VERT/CORTEX to Digital Man on Thursday, November 12, 2020 20:25:24
    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