Originally Posted by vat829
Hey mpogr, I'm still getting No such file or directory now matter what I do can you do a detail tutorial so i can see what im doing wrong
While manipulating files using command prompt (Windows or Unix), you need to remember the following rules:
1. When invoking an executable, it either needs to be on your path (%path% environment variable in Windows, $PATH in Unix), current directory (only on Windows) or you need to specify full/relative path to it (using \ on Windows or / on Unix). For example, if your "sdb.exe" on Windows is in "c:\tizen-sdk\tools", you need to invoke it using "c:\tizen-sdk\tools\sdb" or do "cd c:\tizen-sdk\tools" and then "sdb".
2. When referring to a file as a part of other command, you need to specify its relative or full path (filename only will do it only if you're in the very directory where the file is located). For example, if your "kill_contacts" file on Windows is in "C:\Users\blah\Downloads", you need to do "cd c:\users\blah\downloads" and only then you can refer to it by its name. e.g. "c:\tizen-sdk\tools\sdb push kill_contacts /sbin". If your current directory is "c:\tizen-sdk\tools", then it needs to be "sdb push c:\user\blah\downloads\kill_contacts /sbin".
Likewise, after you pushed the file to the watch, you need to use the same logic, just in the Unix land, e.g.:
C:\Users\blah\Downloads> c:\tizen-sdk\tools\sdb push kill_contacts /sbin
C:\Users\blah\Downloads> c:\tizen-sdk\tools\sdb root on
C:\Users\blah\Downloads> c:\tizen-sdk\tools\sdb shell
# chmod 755 /sbin/kill_contacts
# systemd-run --unit=kill_contacts.nonsamsung --description="Automatically Kill Contacts Every 2 Minutes" /sbin/kill_contacts
Hope it helps. Remember to run the service (repeat the last command) after each Gear restart!