Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: perl callable from bash?

by Bloodnok (Vicar)
on Apr 13, 2009 at 10:21 UTC ( [id://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 ...mv 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-25 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found