hsmyers has asked for the wisdom of the Perl Monks concerning the following question:
I've just been thrown into the unix pool with little to defend myself except perl. The problem I have is that I need to call two perl scripts from a bash script. Something like:
Problem is while I've figured out how to make both firstscript and secondscript executable (chmod 777 and mv to /bin), when I run this script (./bl filename) it tells me that it has no idea of what I'm talking about (comforting, why should it just be me...) The error messages are:#!/bin/sh filename=$1 firstscript $filename secondscript $filename
Which I at first thought had to do with not getting the variable right--- but a little detective work convinced me that what it couldn't find were the two scripts.So does anyone have a recipe for installing perl scripts for shell use? Update: Great thanks to all advisors! For those who come after with same question, here is what worked.': No such file or directory .links ': No such file or directory
- magic chmod number is 755. Apply to all scripts to be called/used.
- move to /usr/bin (typically without extension.)
- insure that any reference to the called perl scripts is path-complete.
--hsm"Never try to teach a pig to sing...it wastes your time and it annoys the pig."