[EMAIL PROTECTED] wrote:
>Unix gurus -
>
>groping around the UNIX side of OSX - (painless migration it aint)
>I believed that typing
>chmod ug+x  /users/ some file.pl
>would make the script runable by typing it's name on the command 
>line, but it don't work. Am I missing something vital?

I'm not sure what '/users/' means.  The syntax should be:
  chmod ug+x some_file.pl

If there are spaces in the filename, you need quotes (single or double):
  chmod ug+x "some file.pl"

Another problem might be that the first line of the file needs to be
  #!/usr/bin/perl
so that the system knows to invoke perl to run this script.  If that's
wrong, the error is "Command not found".

Finally, if you're making a file executable in some other directory and
you haven't re-logged-in (just the current terminal shell, not your
whole Aqua session), the file may not be noticed in the $PATH.  To make
it noticed, type the command 'rehash'.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to