|
Re: newbie question about chmod: msg#00091lang.perl.macosx
At 7:53 pm +0200 24/4/05, Marc Manthey wrote: when i type: Here are two ways to run temp.pl after creating it: Eremita:~ jd$ cd Eremita:~ jd$ echo '#!/usr/bin/perl print qq~hello\n~;' > temp.pl Eremita:~ jd$ perl temp.pl hello Eremita:~ jd$ ./temp.pl hello Eremita:~ jd$ The file does not need permissions changed in this case. If you omit the shebang the first method will work but not the second: Eremita:~ jd$ echo "print qq~hello\n~" > temp.pl Eremita:~ jd$ perl temp.pl hello Eremita:~ jd$ ./temp.pl ./temp.pl: line 1: print: command not found Eremita:~ jd$ If you need to change the permissions on temp.pl to make it executable, then chmod +x temp.pl JD |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | newbie question about chmod: 00091, Marc Manthey |
|---|---|
| Next by Date: | Re: newbie question about chmod: 00091, Trey Harris |
| Previous by Thread: | newbie question about chmodi: 00091, Marc Manthey |
| Next by Thread: | Re: newbie question about chmod: 00091, Trey Harris |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |