Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: perl callable from bash?

by Bloodnok (Vicar)
on Apr 13, 2009 at 10:21 UTC ( #757190=note: print w/replies, xml ) Need Help??

in reply to perl callable from bash?

Apart from the advice already proffered elsewhere on this thread, I'm intrigued as to how you can to /bin and then expect the script to run by entering ./bl filename without first cd(1)'ing to /bin aka having just moved the script from your current working directory, you expect to still be able to invoke the script in there &91;your current working directory&93;

Moreover, the 2 scripts, called by the shell script, are no longer in the same directory as the shell script - hence it should come as no surprise that the shell script can no longer find them, so assuming all 3 scripts were previously in your home directory, I would modify the shell script (now /bin/bl) to read...

#!/bin/sh filename=$HOME/$1 firstscript $filename secondscript $filename

A user level that continues to overstate my experience :-))

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757190]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-01-25 05:41 GMT
Find Nodes?
    Voting Booth?