[App_rpt-users] Announcements

Brian Burton kb3ors at gmail.com
Wed Jan 25 12:35:49 EST 2017


Your crontab thinks your script is located in /root. Your script is located
in /etc/asterisk/scripts/####.
you need to add the complete directory for the crontab to locate the
script.


AB3AA Brian

On Jan 24, 2017 9:50 PM, <app_rpt-users-request at lists.allstarlink.org>
wrote:

Send App_rpt-users mailing list submissions to
        app_rpt-users at lists.allstarlink.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
or, via email, send a message with subject or body 'help' to
        app_rpt-users-request at lists.allstarlink.org

You can reach the person managing the list at
        app_rpt-users-owner at lists.allstarlink.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of App_rpt-users digest..."


Today's Topics:

   1. testing (Bryan Fields)
   2. testing ohnosec (Bryan Fields)
   3. test (Steve Zingman)
   4. Test (Steve Zingman)
   5. crontab schedule repeater announcements (DuaneVT .)
   6. Re: crontab schedule repeater announcements (Apu)


----------------------------------------------------------------------

Message: 1
Date: Tue, 24 Jan 2017 18:45:54 -0500
From: Bryan Fields <Bryan at bryanfields.net>
To: app_rpt-users at lists.allstarlink.org
Subject: [App_rpt-users] testing
Message-ID: <17c773f2-cfea-506e-5a81-8e2bf9131fee at bryanfields.net>
Content-Type: text/plain; charset=windows-1252

please ignore

--
Bryan Fields

727-409-1194 - Voice
http://bryanfields.net



------------------------------

Message: 2
Date: Tue, 24 Jan 2017 20:03:46 -0500
From: Bryan Fields <Bryan at bryanfields.net>
To: APP RPT <app_rpt-users at ohnosec.org>
Subject: [App_rpt-users] testing ohnosec
Message-ID: <53004182-6858-0f7a-a123-721a86aebdae at bryanfields.net>
Content-Type: text/plain; charset=utf-8

ignore please


--
Bryan Fields

727-409-1194 - Voice
http://bryanfields.net



------------------------------

Message: 3
Date: Tue, 24 Jan 2017 20:33:09 -0500
From: Steve Zingman <szingman at msgstor.com>
To: "app_rpt-users at ohnosec.org" <app_rpt-users at ohnosec.org>
Subject: [App_rpt-users] test
Message-ID: <15c33849-4f11-a047-abfb-5bd144768140 at msgstor.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Please ignore

--
"Real programmers us vi, that's why I use nano"



------------------------------

Message: 4
Date: Tue, 24 Jan 2017 20:35:15 -0500
From: Steve Zingman <szingman at msgstor.com>
To: app_rpt-users at lists.allstarlink.org
Subject: [App_rpt-users] Test
Message-ID: <3ca0a459-09c2-1dfb-966c-fb8002aa78bc at msgstor.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Please ignore

--
"Real programmers us vi, that's why I use nano"



------------------------------

Message: 5
Date: Tue, 24 Jan 2017 21:41:24 -0500
From: "DuaneVT ." <selkie2 at comcast.net>
To: app_rpt-users at ohnosec.org
Subject: [App_rpt-users] crontab schedule repeater announcements
Message-ID:
        <CABhxdJn3xJpyqVrSYsuYYKi8mcrX+U=U+fz4M1ANmdwwKGdvRA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I am having trouble getting crontab to schedule playing repeater
announcements. I have successfully recorded IAX speech to "prompt01.gsm".

 I created a script /etc/asterisk/scripts/announcements01.sh.

#!/bin/bash
# Script plays prompt01 audio files over local node (repeater)
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/usr/sbin/asterisk -rx "rpt localplay 42996 /etc/asterisk/scripts/prompt01"

Via terminal, I can enter "announcements01" and hear the node play the
repeater announcements.

My crontab -e is:
SHELL=/bin/bash
PATH=~/sbin:/bin:/usr/sbin:/usr/bin:/etc/asterisk/scripts
MAILTO=root
HOME=/

# I have tried all the following script treatments!
# m h  dom mon dow   command

* * * * * ./announcements01
* * * * * ./announcements01.sh
* * * * * . /announcements01.sh  # dot space  announcements01.sh
* * * * * announcements01.sh      # chmod u-x announcements01.sh (to make
executable)

------------------------------------------------------------
-------------------------------------------------------
I have used the crontab to pass text to a file every minute..no problems;
so cron is running.
I am logged into ROOT.

Any suggestions as to HOW to get crontab to run my announcements01.sh
script would be MUCH appreciated!
73,
Duane KA1LM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.allstarlink.org/pipermail/app_rpt-users/
attachments/20170124/1cc5915d/attachment-0001.html>

------------------------------

Message: 6
Date: Tue, 24 Jan 2017 21:49:45 -0500
From: Apu <apu at spfld.com>
To: Users of Asterisk app_rpt <app_rpt-users at lists.allstarlink.org>
Subject: Re: [App_rpt-users] crontab schedule repeater announcements
Message-ID: <b5628900-5c2a-ad28-3339-5b4a816290fb at spfld.com>
Content-Type: text/plain; charset=utf-8

On 1/24/17 9:41 PM, DuaneVT . wrote:
> MAILTO=root

Are you getting e-mail messages to root with the errors, if any?


> * * * * * ./announcements01
> * * * * * ./announcements01.sh
> * * * * * . /announcements01.sh  # dot space  announcements01.sh
> * * * * * announcements01.sh      # chmod u-x announcements01.sh (to
> make executable)

If the file is "announcements01.sh" in the /root directory, try
/root/announcements01.sh as the path for the crontab entry.  If I'm
reading your crontab entry correctly, your system is trying to find the
file at /announcements01 or /announcements01.sh but I think you might
have it saved it /root/announcements01.sh -- just a guess though.

(And you want u+x, not u-x, aka "chmod 0755 announcements01.sh")

--
 _
| |
|-|
| |pu <apu at spfld.com>
http://www.spfld.com/




------------------------------

Subject: Digest Footer

_______________________________________________
App_rpt-users mailing list
App_rpt-users at lists.allstarlink.org
http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


------------------------------

End of App_rpt-users Digest, Vol 95, Issue 32
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.allstarlink.org/pipermail/app_rpt-users/attachments/20170125/1ddd1bd1/attachment.html>


More information about the App_rpt-users mailing list