On Wednesday, March 5, 2003, at 04:09 pm, Nicholas G. Thornton wrote:
As I recall you can run a script from the commandline via a command something like this: perl file.plx (@ARGV) But whenever I try this nothing happens.
you need to give the path so that the perl interpreter can find the file. If it's on the desktop, that would be
/Users/YOUR SHORT LOGINNAME/Desktop/file.pl (the short login would be the user name you see in the terminal)
Note, unlike the terminal, for perl the path is CaSe SenSitiVe. Alternatively just dragging the file onto the terminal will print the path in the terminal.
Also check the shebang actually matches the location of the perl interpreter, mine is
'#!/usr/bin/perl'
check the path by typing which perl or whereis perl
in the terminal
Using *.command the file still opens the file in BBEdit rather than running it
in a new terminal window for me.
check that the file owner is the terminal (in the finder [apple] + [i]) and not BBedit
HTH
Robin
