Reply
Thread Tools
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#11
Is the location of abplayer on your PATH?
 
Posts: 118 | Thanked: 16 times | Joined on Sep 2007
#12
Yes. I am in /media/mmc2. Here is the xterm

/media/mmc2 # chmod +x abplayer
/media/mmc2 # ./abplayer test.mp3
/bin/sh: ./abplayer: Permission denied
/media/mmc2 #
 
jldiaz's Avatar
Posts: 48 | Thanked: 40 times | Joined on Apr 2008 @ Spain
#13
Originally Posted by MstPrgmr View Post
I did that and it still says "/bin/sh: abplayer: not found"
You need to specify the absolute or relative path to the executable. For example, assuming that you put the abplayer file in your home directory, in the xterm you type:

Code:
$ /home/user/abplayer /path/to/audiobook.mp3
Or, if you are at the same folder than the executable, you can use the simpler relative path: ./abplayer

Alternatively, you can put the executable at user scripts folder, named for example /home/user/bin, and add this folder to the PATH variable, by writting the following lines in your /home/user/.profile file:

Code:
PATH=$PATH:/home/user/bin
export PATH
This way, next time you open xterm, you can simply write "abplayer" without need to specify any path (and this will be also true for any future script you put in your bin folder).
__________________
--ル Diaz
 
jldiaz's Avatar
Posts: 48 | Thanked: 40 times | Joined on Apr 2008 @ Spain
#14
Originally Posted by MstPrgmr View Post
Yes. I am in /media/mmc2.
Perhaps the filesystem in /media/mmc2 is mounted with execution forbidden. Try to put the script in the root filesystem.
__________________
--ル Diaz
 

The Following User Says Thank You to jldiaz For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#15
Correct; by default FAT systems are non-executable on the Nokias.
 
Posts: 118 | Thanked: 16 times | Joined on Sep 2007
#16
Arrg. Now I moved the file to the /home directory and it says

/home # ./abplayer
/bin/sh: ./abplayer: Permission denied
/home # chmod +x abplayer
/home # ./abplayer /home/test.mp3
/bin/sh: ./home/abplayer: not found
/home # ./home/abplayer /home/test.mp3
/bin/sh: ./home/abplayer: not found
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#17
Hmmm... I assume you have mplayer installed, and awk is installed by default.

It looks like you typed in the output? If the first line saying
Code:
/bin/sh: ./home/abplayer: not found
isn't a typo, then I have no clue how you're getting it.
 
Posts: 118 | Thanked: 16 times | Joined on Sep 2007
#18
yea, i dunno. 1/2 the time i get permission denied. the other 1/2 i get abplayer not found. i am now strictly getting abplayer not found. i will reflash later and try again i guess
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#19
Reflashing has nothing to do with this.

Do you in fact have mplayer installed?
 
Posts: 118 | Thanked: 16 times | Joined on Sep 2007
#20
Yea, i have mplayer installed. I can execute the test.mp3 file I have by entering mplayer /(path to file)/test.mp3

I don't know if something happened to my N800 or what, but I have gotten different results from typing in the same exact commands. Either not found or permission denied.

For the permission denied message I may be able to run chmod +x abplayer on my laptop and then copy the file over to my tablet. The file is definitely there, so I don't know why I get the not found message.

Have you tried to run the abplayer file and get it to work? If so, can you post you exact procedure, step by step, so I can delete the file and try again?
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:11.