Reply
Thread Tools
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#11
Originally Posted by nielsvg View Post
i made it with the program notepad++ and i transfer it to my phone in documents and then i type in terminal after rootacces: chmod +x move-opt-sh and then it says there is no such file with this name???

can anyone help?
you have to "cd" into the directory where you stored the file first or write the full path in the command.

three examples when you copied the file in the documents directory via usb:

relative:
(when you open up xterm you're in /home/user/)
Code:
chmod +x MyDocs/.documents/move-opt.sh
absolute:
Code:
chmod +x /home/user/MyDocs/.documents/move-opt.sh
or first cd into the right directory:
Code:
cd MyDocs/.documents
chmod +x move-opt.sh
maybe you should learn how to get along with the terminal first before you do something big like moving system files around and symlinking them automatically....
 
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#12
Originally Posted by b666m View Post
you have to "cd" into the directory where you stored the file first or write the full path in the command.

three examples when you copied the file in the documents directory via usb:

relative:
(when you open up xterm you're in /home/user/)
Code:
chmod +x MyDocs/.documents/move-opt.sh
absolute:
Code:
chmod +x /home/user/MyDocs/.documents/move-opt.sh
or first cd into the right directory:
Code:
cd MyDocs/.documents
chmod +x move-opt.sh
maybe you should learn how to get along with the terminal first before you do something big like moving system files around and symlinking them automatically....
i saved the file on my phone in the file manager underr N900 and then documents

so when i put in the code in x-terminal: cd MyDocs or cd MyDocs/documents it stil keep saying cant cd to mydocs? and i'm in root access?
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#13
Originally Posted by nielsvg View Post
i saved the file on my phone in the file manager underr N900 and then documents

so when i put in the code in x-terminal: cd MyDocs or cd MyDocs/documents it stil keep saying cant cd to mydocs? and i'm in root access?
unplug the usb first. ^^
and the command line is case sensitive.
 
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#14
Originally Posted by b666m View Post
unplug the usb first. ^^
and the command line is case sensitive.
he wasnt connected??? i disconnect the phone and tried it but doesnt work
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#15
Originally Posted by nielsvg View Post
he wasnt connected??? i disconnect the phone and tried it but doesnt work
huh?
then "cd MyDocs/.documents" should work.

and pay attention to the . before documents.
 
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#16
Originally Posted by b666m View Post
huh?
then "cd MyDocs/.documents" should work.

and pay attention to the . before documents.
ok now it works but then when i use chmod i don't get confirmation that the script is executable and then when i try ./move code it sais permission denied

Last edited by nielsvg; 2010-03-07 at 20:52.
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#17
Originally Posted by nielsvg View Post
ok now it works but then when i use chmod i don't get confirmation that the script is executable and then when i try ./move code it sais permission denied
try "sh move-opt.sh"
 
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#18
Originally Posted by b666m View Post
try "sh move-opt.sh"
ok thanks. i dont know why but now i only have 10mb free?
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:07.