Click to See Complete Forum and Search --> : wierd file plroblem


H. M. Murdock
03-22-2001, 11:46 PM
Hi,
I tried to install AutoNap, a console based napster client. I tried the automated install and it seemed to work, it put all of the files it needed in the correct places, but heres the weird part. The executable is a AutoNap.pl and it is in the /usr/local/bin/ directory. The directory is in my path, and the file permissions are set to 755, so I can get to it as a user. At my bash prompt, I typed in 'AutoNap.pl' and hit enter. This is what i get:

bash: /usr/local/bin/AutoNap.pl: No such file or directory

Now, I know its there, I went and saw it. I used less and the file has contents, so its not empty, and as mentioned earlier, the permissions are correct (plus I tried it as root with the same result). So I went into the source directory and tried to run the fiel by doing a ./AutoNap.pl. Same result. I even copied it from the /usr/local/bin/ dir to my home directory and got the same result. Now while I plan on writing an email to the author of this program, I am slightly worried that my system seems to belive this file is not there, when it actually is. Is there any explanation for this? Or maybe even a solution to my little problem?

Thanks in advance,

Murdock

Tyr-7BE
03-23-2001, 12:24 AM
Are you sure it's AutoNap.pl? That sounds like an awfully strange name for an executable. Have you tried just typing "AutoNap"? The contents of AutoNap.pl...is it text or is it garble? If it's text, try to determine whether or not it's a config or whatever it is. I'm not sure about AutoNap, but it sounds like it could potentially be all shell-scripting.
Also, try going to /usr/local/bin and typing ./AutoNap.pl (make sure it's in the current directory) and see if it does anything for you. Maybe chmod 777, but I don't think that's gonna help one bit.

[ 22 March 2001: Message edited by: Tyr-7BE ]

kuber
03-23-2001, 12:26 AM
Isn't that a perl script?

Try perl AutoNap.pl

Kuber

bdl
03-23-2001, 12:30 AM
Try this:

Double check that you have perl on your system, using the 'which' command:

linuxprompt# which perl

/usr/bin/perl

...or similar

Then check the AutoNap.pl file and make sure it matches.

linuxprompt# head -1 /usr/local/bin/AutoNap.pl

#!/usr/bin/perl -w

...or similar

It could be that the script simply cannot find perl on your system...

Luck!

H. M. Murdock
03-23-2001, 12:41 AM
Originally posted by Tyr-7BE:
Are you sure it's AutoNap.pl? That sounds like an awfully strange name for an executable. Have you tried just typing "AutoNap"? The contents of AutoNap.pl...is it text or is it garble? If it's text, try to determine whether or not it's a config or whatever it is. I'm not sure about AutoNap, but it sounds like it could potentially be all shell-scripting.
Also, try going to /usr/local/bin and typing ./AutoNap.pl (make sure it's in the current directory) and see if it does anything for you. Maybe chmod 777, but I don't think that's gonna help one bit.

[ 22 March 2001: Message edited by: Tyr-7BE ]

if you read my entire post, i did try that, and it is a perl file, that is why it has the pl extension, it doesn't need the .pl, but it is somewhat commen just so you know its a script.

Murdock

H. M. Murdock
03-23-2001, 12:47 AM
Originally posted by bdl:
Try this:

Double check that you have perl on your system, using the 'which' command:

linuxprompt# which perl

/usr/bin/perl

...or similar

Then check the AutoNap.pl file and make sure it matches.

linuxprompt# head -1 /usr/local/bin/AutoNap.pl

#!/usr/bin/perl -w

...or similar

It could be that the script simply cannot find perl on your system...

Luck!


bd1,

Thanks for the suggestions, I tried what you said, perl is installed (I knew it was, but I double checked to make sure nothing was messed up), and the head -1 /usr/local/bin/AutoNap.pl worked and return #!/usr/bin/perl -w. So the fiel is there and readable and executable and in proper format, just maybe its bogus... I havent sent out the email to the autor just yet, maybe its a simple fix that he knows.

Thanks again,

Murdock

Tyr-7BE
03-23-2001, 02:59 AM
Did you try kuber's suggestion? Sounds reasonable that if it's a perl script, "perl AutoNap.pl" will do the trick.

H. M. Murdock
03-23-2001, 09:22 AM
yes, i also tried perl AutoNap.pl, but it gave me another no sych file error, this is strange....

Murdock