track: command not found
jeffalstott opened this issue · 9 comments
Macintosh-9:Google_Drive jeff$ ln -s Glock/googlecal_functional.py bin/track
Macintosh-9:Google_Drive jeff$ ln -s Glock/googlecal_functional.py bin/untrack
Macintosh-9:Google_Drive jeff$ cd bin
Macintosh-9:bin jeff$ ls
bee clock fw track untrack
Macintosh-9:bin jeff$ chmod +x *track
Macintosh-9:bin jeff$ cd
Macintosh-9:~ jeff$ track "test"
-bash: track: command not found
Macintosh-9:~ jeff$ track test
-bash: track: command not found
Macintosh-9:~ jeff$ cd Google_Drive/bin/
Macintosh-9:bin jeff$ ls
bee clock fw track untrack
Macintosh-9:bin jeff$ track "test"
-bash: track: command not found
Macintosh-9:bin jeff$ sudo chmod +x track
Password:
Macintosh-9:bin jeff$ sudo chmod +x untrack
Macintosh-9:bin jeff$ track "test"
-bash: track: command not found
Macintosh-9:bin jeff$ track test
-bash: track: command not found
have you put Google_Drive/bin/ in your $PATH as per the README?
Yes. That is where all my custom scripts reside. Why do you think it's
called /bin? :)
On Thursday, October 16, 2014, Ramana Kumar notifications@github.com
wrote:
have you put Google_Drive/bin/ in your $PATH as per the README?
—
Reply to this email directly or view it on GitHub
#4 (comment).
yeah? show us echo $PATH
and which track
, and also ls -l Google_Drive/bin/
Macintosh-9:Google_Drive jeff$ which track
(No output)
Macintosh-9:~ jeff$ ls -l Google_Drive/bin
total 40
-rwx--x--x 1 jeff staff 1265 Oct 16 2013 bee
-rwx--x--x 1 jeff staff 1457 Feb 26 2014 clock
-rwx--x--x 1 jeff staff 252 Apr 29 19:16 fw
lrwxr-xr-x 1 jeff staff 29 Oct 16 05:21 track ->
Glock/googlecal_functional.py
lrwxr-xr-x 1 jeff staff 29 Oct 16 05:22 untrack ->
Glock/googlecal_functional.py
Macintosh-9:~ jeff$ echo $PATH
/Users/jeff/anaconda3/bin:/Users/jeff/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/jeff/bin:~/Google_Drive/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin
On Thu, Oct 16, 2014 at 2:36 PM, Ramana Kumar notifications@github.com
wrote:
yeah? show us echo $PATH and which track, and also ls -l Google_Drive/bin/
—
Reply to this email directly or view it on GitHub
#4 (comment).
do this:
cd
cd Google_Drive/bin
rm track untrack
ln -s ~/Glock/googlecal_functional.py track
ln -s ~/Glock/googlecal_functional.py untrack
and try again.
My hypotheses: the problem is you didn't give the correct path to googlecal_functional.py when you made the links. Symbolic links are made from a particular string, not the location that string happens to denote, so if the string denotes a different (e.g. non-existent) location is another context things will fail.
Good idea. However, I tried it and it didn't change.
Macintosh-9:~ jeff$ which track
Macintosh-9:~ jeff$ ls -l Google_Drive/bin
total 40
-rwx--x--x 1 jeff staff 1265 Oct 16 2013 bee
-rwx--x--x 1 jeff staff 1457 Feb 26 2014 clock
-rwx--x--x 1 jeff staff 252 Apr 29 19:16 fw
lrwxr-xr-x 1 jeff staff 41 Oct 17 07:29 track ->
/Users/jeff/Glock/googlecal_functional.py
lrwxr-xr-x 1 jeff staff 41 Oct 17 07:29 untrack ->
/Users/jeff/Glock/googlecal_functional.py
Macintosh-9:~ jeff$ echo $PATH
/Users/jeff/anaconda3/bin:/Users/jeff/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/jeff/bin:~/Google_Drive/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin
There's even this:
Macintosh-9:bin jeff$ sudo chmod +x track untrack
Password:
Macintosh-9:bin jeff$ ls
bee clock fw track untrack
Macintosh-9:bin jeff$ track "test"
-bash: track: command not found
On Thu, Oct 16, 2014 at 10:17 PM, Ramana Kumar notifications@github.com
wrote:
do this:
cd
cd Google_Drive/bin
rm track untrack
ln -s ~/Glock/googlecal_functional.py track
ln -s ~/Glock/googlecal_functional.py untrackand try again.
My hypotheses: the problem is you didn't give the correct path to
googlecal_functional.py when you made the links. Symbolic links are made
from a particular string, not the location that string happens to denote,
so if the string denotes a different (e.g. non-existent) location is
another context things will fail.—
Reply to this email directly or view it on GitHub
#4 (comment).
What is the output of
file ~/Google_Drive/bin/track
?
D'oh! I was blindly putting in ln commands without thinking about where the
Glock directory actually was. Now the linking works.
However, I'm now tracking and untracking things, without any request for
authorization, etc. I suspect I'm actually tracking things on one of the
developer's calendars.
On Fri, Oct 17, 2014 at 7:57 AM, Ramana Kumar notifications@github.com
wrote:
What is the output of
file ~/Google_Drive/bin/track
?
—
Reply to this email directly or view it on GitHub
#4 (comment).
@linbug: close this issue. It turned out not to be a Glock fault :)
@jeffalstott: open another one if necessary, or email me.