in reply to Calling Shell funtion in Perl script
Because you created this function, I am assuming it is not sitting in /usr/bin/ or some such equivalent. You have three options to get this to work:
Update: I just noticed you created this shell script in your .profile; if possible don't do that. .profile is normally for configuration settings and other such stuff. Instead, put your shell script in a seperate file with (I think) #!/usr/bin/sh (or replace the sh with whatever shell happens to be the one you want the script to run under) as your first line; then set the execute bit on the new file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calling Shell funtion in Perl script
by davidrw (Prior) on May 24, 2005 at 15:19 UTC | |
|
Re^2: Calling Shell funtion in Perl script
by blazar (Canon) on May 24, 2005 at 15:20 UTC | |
|
Re^2: Calling Shell funtion in Perl script
by Anonymous Monk on May 24, 2005 at 15:19 UTC | |
by davidrw (Prior) on May 24, 2005 at 15:21 UTC | |
by northwind (Hermit) on May 24, 2005 at 15:23 UTC |