-
Notifications
You must be signed in to change notification settings - Fork 10
Description
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.