[ale] Re: Why it runs from one directory but not the other.

Greg Sabino Mullane greg at turnstep.com
Wed Jan 16 06:12:00 EST 2002



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>When I am in my home directory I cannot get my perlscript to run.  It
>locks up trying to access a POP account.  I am running the script by
>giving the full path by the way.
>
>when I cd into public_html or any directory below there and try to run the
>script, I am successful.
>
>Any suggestions why being on one side of the link or the other matters.

Ony thing I can think of is that somewhere inside the script you 
are using a relative path, perhaps with a 'require' or an 'open'. 
For example, if you had something like this:

open(PREFS, "../mailer.prefs") or die "Could not open my pref file: $!\n";

then it would indeed fail everywhere except for inside subdirectories 
of the directory which contained the file "mailer.prefs".

Are there any error messages? It is important to figure out exactly where 
it is failing. Make sure you have are using -w and 'use strict', and 
add some checkpoint debugging statements until you find out where it is 
failing. Then the why should be easy. :)

Greg Sabino Mullane  <greg at turnstep.com>
PGP Key: 0x14964AC8 200201160607

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE8RV+CvJuQZxSWSsgRAkb0AJ9RUYyXYk4s1KxJQjEY2mcp1HrinwCgyr5I
pNSNuVQLEvxLaa6cBAdENSI=
=hiju
-----END PGP SIGNATURE-----



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list