I put together a fiew scripts to start and stop stuff depending on what I want to do. nothing fancy just saving some typing. Work start WPA, start dhcp, start samba, kinda stuff. Here is whrer things get wierd . ls shows my script ls -l shows its executable and ownd by root
-rwxrwxrwx 1 root root 92 2007-03-13 15:10 work
-rwxrwxr-x 1 root root 77 2006-09-22 17:53 wpa
When I try to run it i get
root-:) work
-bash: work: command not found
This also happens if I copy a binary exe from anywhere except in the Z. Things installed with ipkg and things that are made with make work. It seems to know where there from and if there copied or typed in it dosnt like them. When I first tryed pdaxII1.3 I wrote a small script to load the kennal drivers and start ZKBBD it still works though. I can edit the scripts but just not run them if I copy a working one and then edit and save as a new name it quits working.
Any sugestions?
thanks
Tesla^3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156147\"][{POST_SNAPBACK}][/a][/div]
Well, the only thing that comes to mind is to go to the directory where your script is located and try
./work
instead of simply
work
Or, alternatively, you could put your script in /usr/local/bin and type "work" from any directory (but make sure your PATH variable is set properly by executing
echo $PATH
and making sure /usr/local/bin is in your path).
It may not be working because when you execute a command without the ./ it looks in your PATH variable and sees if it is in one of those locations and doesn't execute the command in the present folder.
If I misunderstood the problem, just say so.