Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found Can ya help ????? Best Regards Simon Garvey
In article <KAECJHDBCOEDEJDGNNNHEEEICFAB.simon@orbital.net>, Simon <simon@orbital.net> wrote:> Anyone used this ? > > I am having a bit of trouble got the right perms on makering.pl . > Should that file be somewhere in particular ? > > use the reccommended command > sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin > > but i get > bash: makering.pl: command not foundHi Simon, yes, it's my prog. :-) The command assumes that makering.pl is in your PATH. If it is just in the current directory, and "." is not in your path (as it shouldn't be, for security), then you need to say ./makering.pl You also need to make sure makering.pl has the x bit turned on, wherever the file is located. Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
Also check the first line of the file points to your location of perl. Usually /usr/bin/perl or /usr/local/bin/perl PS, "chmod 755 makering.pl" to make it executable. Regards, Adam On Tue, 2004-06-08 at 18:52, Tony Mountifield wrote:> In article <KAECJHDBCOEDEJDGNNNHEEEICFAB.simon@orbital.net>, > Simon <simon@orbital.net> wrote: > > Anyone used this ? > > > > I am having a bit of trouble got the right perms on makering.pl . > > Should that file be somewhere in particular ? > > > > use the reccommended command > > sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin > > > > but i get > > bash: makering.pl: command not found
Thanks to all for the help The answered turned out to be some odd chr in the file that have for some strange reason only just showed , they were not there when i first uploaded makering.pl Ta Simon -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Holger Schurig Sent: 08 June 2004 10:37 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Re: makering.pl> : bad interpreter: No such file or directoryInstall perl. Then call the program like this: perl makering.pl _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
If you're in the current directory with makering add a ./ in front of it. Otherwise you can try moving it to /usr/bin -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Simon Sent: Tuesday, June 08, 2004 4:40 AM To: Asterisk-Users Subject: [Asterisk-Users] makering.pl Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found Can ya help ????? Best Regards Simon Garvey _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users