Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Scripting trouble

Reply
Thread Tools

Scripting trouble

 
 
y
Guest
Posts: n/a
 
      10-01-2004
I am unable to run scripts on OSX. Here is what I did:

I created a file script (no extensions) as follows:
#!/usr/bin/perl
echo "Hello"

And then I save it. After that I go to my shell and try running this
file and I get the following message:
bash: /Users/Y/script: /usr/bin/perl: bad interpreter: Permission
denied

Any idea what I am doing wrong, and how I can fix this?
 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      10-02-2004
y <> wrote:


> I created a file script (no extensions) as follows:
> #!/usr/bin/perl
> echo "Hello"

^^^^
^^^^

perldoc -f echo


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
 
Joe Smith
Guest
Posts: n/a
 
      10-02-2004
y wrote:

> bash: /Users/Y/script: /usr/bin/perl: bad interpreter: Permission denied


Try running
/usr/bin/perl -v
from the bash prompt. If it says Permission denied, there's your culprit.
-Joe
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i have no trouble to send , ihave trouble reciving mail --any ideas John Penney Computer Support 4 08-29-2006 08:45 PM
Scripting wireless setup for automated deployment paulwilkinson@gmail.com Wireless Networking 0 09-29-2005 02:17 PM
Using a Scripting Language as Your Scripting Language DaveInSidney Python 0 05-09-2005 03:13 AM
Python is the best and most popular general purpose scripting language; the universal scripting language Ron Stephens Python 23 04-12-2004 05:32 PM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57