Skip to content

sample bash script one can fire up within msg-exit.cf #11

@Htmo74

Description

@Htmo74

Hi,

Im looking for an sample bash script so i can make my own commands in funetnje.
i have made this one but don't work..
Hope somebody can help me?
tnx.
Henk

#!/bin/bash

echo "NOSLEES: '$*'" > /home/pi/unje/noslees.log
touser="$1"
tonode="$2"

shift;shift
argstr="$*"
echo "NOSLEES: argstr='$argstr'" >> /home/pi/unje/noslees.log
echo "NOSLEES: touser='$touser'" >> /home/pi/unje/noslees.log
echo "NOSLEES: tonode='$tonode'" >> /home/pi/unje/noslees.log
nostt 101 > /home/pi/unje/nostest

cat /home/pi/unje/nostest | /usr/local/funetnje/tell -m $touser@$tonode

=====
and an entry in msg-exec.cf:
. sampnode * * C "NOS" RUN /usr/local/funetnje/noslees $FRUSER@$FRNODE

when i ask this via sms rscs cmd run 101, than the result is:

: * NOS not logged in
: * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% not logged in
: * %%%%%%%%%%%% not logged in
: * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% not logged in
: * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% not logged in
: * Zwemmer not logged in
: * Organisaties not logged in
: * Hogere not logged in
: * Drie not logged in
: * NL not logged in
: * Resten not logged in
: * Dode not logged in
: * nieuwsoverzicht not logged in
: * Dit not logged in

it takes only the first word in the string and than say that its not logged in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions