<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" color="#000000" face="Tahoma,sans-serif">Stan,<br><br> Thanks for that listing of steps. The only thing I would change is to eliminate the gunzip. This can be done completely within tar. The line would be -<br><br>tar xvzf playnews-0.6.tar.gz<br id="FontBreak"></font><br><font style="" face="Tahoma,sans-serif">This eliminates step 4.<br><br>I will include these steps in the README.<br><br>The ./filename is nothing specific to playnews. Anytime you attempt run an executable in the directory you are currently in you must precede it by ./ This means go up one directory and execute the program in the current directory. Also the /etc/asterisk/ and below directories are not in the search path so you must specify the entire path if you are off somewhere else in another directory and want to execute a program or script in either of those directories. So in a cron entry or executing from some other directory you need to specify the entire path.<br></font><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div>> Date: Tue, 1 Sep 2015 07:55:01 -0700<br>> From: ka5iid@swbell.net<br>> To: arm-allstar@hamvoip.org<br>> Subject: [arm-allstar] Newby instructions for playnews<br>> <br>> Thanks to Doug for his wonderful work on the playnews script and help from others I was able to get it operational on my node.<br>> I am going to list the steps in order I used so someone can follow that has linited Linux experience and make it work.<br>> <br>> 1. mkdir /etc/asterisk/local/playnews<br>> This creates the directory where you will have the playnews files.<br>> 2. cd /etc/asterisk/local/playnews<br>> you are moving to the directory location to get ready to download the files.<br>> 3. wget http://hamvoip.org/downloads/playnews-0.6.tar.gz<br>> This transfers the file to your playnews directory<br>> 4. sudo gunzip playnews0.6.tar.gz<br>> This unzips the playnews tar file<br>> 5. sudo tar xf playnews-0.6.tar<br>> This restores the files to the directory from the tarball<br>> 6. mv playnews-0.6 playnews<br>> This renames the playnews to remove the -0.6<br>> 7. rm playnews-0.6.tar<br>> This removes the playnews tar file to free up disk space.<br>> <br>> If Doug puts out an update you can follow this process and just use the new file name. If you down load the same file again it will ask if you want to over write the existing file and in my case it was yes.<br>> <br>> to run the script now on the local node, I did the following.<br>> <br>> ./playnews ARRL NOW XXXXX L<br>> XXXXX is your node number, this will play the ARRL news.<br>> <br>> ./playnews ARN NOW XXXXX L<br>> XXXXXX is your node number, this will play the ARN news.<br>> <br>> I have not played with the CRON jobs to set that up but with Doug's instructions it should work.<br>> <br>> The only issue I had was trying to have the playnews run from the /etc/asterisk/local/playnews directory I had to use the format shwn in my examples. It would not run with just playnews ARRL NOW XXXXX L.<br>> Perhaps one of the wiser Linux guru's can put it in simpler terms for this newby.<br>> <br>> Stan<br>> <br>> KA5IID<br>> _______________________________________________<br>> <br>> arm-allstar mailing list<br>> arm-allstar@hamvoip.org<br>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar<br>> <br>> Visit the BBB and RPi2 web page - http://hamvoip.org<br>> <br></div> </div></body>
</html>