View previous topic :: View next topic |
Author |
Message |
CavesOfTQLT n00b
Joined: 19 May 2006 Posts: 21
|
Posted: Wed Jul 26, 2006 11:09 pm Post subject: Wierd... |
|
|
On my gentoo ppc system I get wierd things happening when I do certain things.
Assume I have a perl script in /usr/local/script called perlscript.pl
If I try to run it by issuing this from the CL:
/usr/local/script/perlscript.pl
it gives a can't find file or directory. If I navigate into the script directory and issue perlscript.pl I again get the same error, but if I issue ./perlscript.pl it will run okay.
Wierd thing number 2. If I run a certain init.d script it will work okay, yet a different one will cause a can't find file or directory on the !/sbin/runscript (first line) line. Examining both and they both seem to be okay, and the sbin/runscript file does exist. But why does the error occur on some files but not others? I'm currently at a loss as to why this is happening.
Any suggestions would be a big help. |
|
Back to top |
|
|
coplaniuk Guru
Joined: 14 Apr 2004 Posts: 461 Location: Philadelphia, USA
|
Posted: Wed Jul 26, 2006 11:21 pm Post subject: |
|
|
problem number 1: perl scripts aren't shell scripts. You need to issue a command like...
Code: |
perl /usr/local/script/perlscript.pl
|
As for problem number two...I need some more info. What shell are you using? Bash? If not...most of those scripts are bash scripts. Try switching to bash (/bin/bash) and re-running the scripts.
Try to pinpoint which scripts aren't working specifically. _________________ -- Coplan
~/ Outland - Art, Music, PHP and Hidden Corners of the Web
-{ Embrace Life. Evolve your computer. Emerge Gentoo. }- |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|