Reply
Thread Tools
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#1
hi everyone
I follow http://talk.maemo.org/showthread.php?t=37808 to reset my lost lock code
i copy the Attached File (a.out) provided by qwerty12 to home/user in N900
when I type "run-standalone.sh a.out" in X terminal, it says
"/usr/bin/run-standalone.sh: line 11: a.out: not found"
but I do copy the file to the home/user by using WinSCP
why not found?

sorry, Eng is not my first language, may have sth that makes you confused.
anyone helps me?
 
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#2
run these two commands and paste the output here:
pwd
ls -l

The first one prints the current working directory and the second one lists the files in said directory
 
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#3
enter "pwd" get nothing
enter "ls -l" get 3lines
last line shows a.out, then what should i do?
 
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#4
i do copy that file, but why "not found" when i run "run-standalone.sh a.out"?
 
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#5
Try "run-standalone.sh ./a.out" (the ./ means that the current dir should be used)
 
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#6
Originally Posted by floffe View Post
Try "run-standalone.sh ./a.out" (the ./ means that the current dir should be used)
thank u so much
it works, but ...


"usr/bin/run-standalone.sh: line 11: ./a/out: Permission denied"
how do i get this permission?
looks like i don't have the right?
 
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#7
someone had the same problem but has already solved it :

"looks like I misinterpreted prefix here

error message is:
/usr/bin/run-standalone.sh: line 11: a.out: Permission denied

so I thought about: chmod +x a.out, but I cannot change rights...

edit: it's been a long time since I used a shell on linux... just made a copy with root and done works great!

--------------------------------------------------------------------------------
Last edited by tripmckay; 12-23-09 at 03:08 AM. "

can anybody explain it to me? thxxxx
how did he solve this problem?
 
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#8
Try running "chmod +x a.out" first to make the file executable. Also it would be good if you pasted the whole line with a.out from the "ls -l" command, it would help me see exactly what permissions are on the file.

Edit: After seeing your new post (made while I was typing), you might need to be root to run the command. Please go ahead and copy/paste the a.out line from ls -l.
 
Posts: 9 | Thanked: 0 times | Joined on Feb 2010
#9
after typing "ls -l"

"- rwxr -xr-x 1 root root 4602 Dec 20 06:17 a.out"
 
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#10
Weird, that says it is executable by all users (permissions are up front: Read Write eXecute for owner / group / others, and the file is owned by user root and group root), so it should work. Try running sudo gainroot (assuming you have rootsh installed) and then the run-standalone.sh command. I'm just heading out for the day now though, so someone else feel free to take over here.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:19.