problem: I cannot run a perl script using an absolute path. I can list it with the same path, but only execute it when using a relative path!
the output of my Cygwin terminal will make this problem obvious
Here I try to execute the script with an absolute path - it fails:
LPI@Reboot /cygdrive/c/Users
$ /cygdrive/c/Users/LPI/3DSiteSoftware/Code/Scripts/path_name.pl
Can't open perl script "/cygdrive/c/Users/LPI/3DSiteSoftware/Code/Scripts/path_name.pl": No such file or directory
Here I list it using the same absolute path - it works, the file is there:
LPI@Reboot /cygdrive/c/Users
$ ls /cygdrive/c/Users/LPI/3DSiteSoftware/Code/Scripts/path_name.pl
/cygdrive/c/Users/LPI/3DSiteSoftware/Code/Scripts/path_name.pl
Here I try and execute it using a path relative to my current directory /cygdrive/c/Users:
LPI@Reboot /cygdrive/c/Users
$ LPI/3DSiteSoftware/Code/Scripts/path_name.pl
USAGE: LPI/3DSiteSoftware/Code/Scripts/path_name.pl -p|-n <string>
Does anyone know why the first example is not working? I'm getting stumped! thanks for any advice.
ls -l /cygdrive/c/Users/LPI/3DSiteSoftware/Code/Scripts/path_name.plreturn?head -n 1 LPI/3DSiteSoftware/Code/Scripts/path_name.pl?