<div dir="ltr">If you're just running in a local directory and it's chmodded 755, you have to execute it with slashdot: ./seaward<div><br></div><div>s/</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 23 April 2014 15:07, Gareth France <span dir="ltr"><<a href="mailto:gareth.france@gmail.com" target="_blank">gareth.france@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 23/04/14 10:36, Alan Pope wrote:<br>
</div><div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 23 April 2014 10:31, Gareth France <<a href="mailto:gareth.france@gmail.com" target="_blank">gareth.france@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 23/04/14 10:27, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So does anyone have any ideas about packaging up this script? I now have<br>
information about how to package it for submission but I still need a<br>
way to run the program from the command line without calling perl.<br>
</blockquote>
<br>
If your script is executable and has the right "shebang" at the start you<br>
will not need to call perl.<br>
<br>
<br>
Al<br>
<br>
<br>
<br>
<br>
</blockquote>
The script is called <a href="http://seaward.pl" target="_blank">seaward.pl</a>, I want it to be run by simply typing<br>
seaward. How do I achieve this?<br>
<br>
</blockquote>
Make sure it's got the executable bit set, rename it seaward and make<br>
sure the first line is:-<br>
<br>
#!/usr/bin/env perl<br>
<br>
Put the file in your path and you're done.<br>
<br>
Cheers,<br>
Al.<br>
<br>
</blockquote></div>
I have tried renaming the file but still get a 'Command not found' error. Any ideas<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com" target="_blank">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/<u></u>UKTeam/</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Twitter: @sfgreenwood<div>"TBA are particularly glib"<br></div>
</div>