View Full Version : Wierd Problem. File Not Found
boboli
01-28-2003, 08:14 PM
I have uploaded the new SC to my tivo several times. Both by ZMODEM thru the serial BASH and by tivoftp.
After uploading it, I 'chmod 755' and 'chmod 777' the file.
Yet, when I try to run it, I get:
sbin# ./sc.tcl
bash: ./sc.tcl: No such file or directory
/sbin#
I have even tried to run it with the full path. Same problem.
Is it a SC 1.01 problem or is it my setup?
T-60 2.5.2
B
BubbleLamp
01-28-2003, 08:35 PM
Originally posted by boboli
I have uploaded the new SC to my tivo several times. Both by ZMODEM thru the serial BASH and by tivoftp.
After uploading it, I 'chmod 755' and 'chmod 777' the file.
Yet, when I try to run it, I get:
sbin# ./sc.tcl
bash: ./sc.tcl: No such file or directory
/sbin#
I have even tried to run it with the full path. Same problem.
Is it a SC 1.01 problem or is it my setup?
T-60 2.5.2
B
Well there is no point in chmoding it twice. So where did you transfer it to on the Tivo? ./ only works if you are in the directory it is in. Are you SURE it's in sbin? If you type ls -la do you see it there? Did you by chance open it on the PC and now it has DOS characters in it? That will cause a problem.
boboli
01-28-2003, 08:44 PM
Originally posted by BubbleLamp
Well there is no point in chmoding it twice. So where did you transfer it to on the Tivo? ./ only works if you are in the directory it is in. Are you SURE it's in sbin? If you type ls -la do you see it there? Did you by chance open it on the PC and now it has DOS characters in it? That will cause a problem.
Thanks for the response, Bubble.
I was in the dir that the file was in. I also placed it in the path. And I tried to invoke it using the full path. And yep, the file is in /sbin. I didn't open the file prior to transfer over to the tivo. This really has me stumped.
B
JJBliss
01-28-2003, 09:29 PM
Originally posted by boboli
Thanks for the response, Bubble.
I was in the dir that the file was in. I also placed it in the path. And I tried to invoke it using the full path. And yep, the file is in /sbin. I didn't open the file prior to transfer over to the tivo. This really has me stumped.
B
Edit the file in joe. I'll bet there's a ^M character at the end of every line.
(which there shouldn't be)
You need to make sure the file is saved in the appropriate unix format. There was ONE version of sc.tcl that PGM let out in the wrong format.
Just check it
boboli
01-29-2003, 04:51 AM
Originally posted by JJBliss
Edit the file in joe. I'll bet there's a ^M character at the end of every line.
(which there shouldn't be)
You need to make sure the file is saved in the appropriate unix format. There was ONE version of sc.tcl that PGM let out in the wrong format.
Just check it
Well, I'll be.
I opened up sc.tcl in nano. While there wasn't any ^ characters anywhere, I did notice that nano converted it from DOS format. I saved it and it worked. :D
Thanx for the suggestion.
B
DAWG98
03-01-2003, 03:46 AM
I have the same problem. I transferred the file using an FTP client. I opened the file using text pad and made sure there were no weird characters. After chmod 777 I try to execute and get a file not found error. Any clues?
JJBliss
03-01-2003, 10:07 AM
Originally posted by DAWG98
I have the same problem. I transferred the file using an FTP client. I opened the file using text pad and made sure there were no weird characters. After chmod 777 I try to execute and get a file not found error. Any clues?
You need to look for the "strange characters" AFTER you transfer it, not before. More imporantly, make sure if you DID open it in Textpad, that you saved it as the proper Unix format.
Open it up in joe, on the Tivo, and check.
Also, make sure you transfered it in binary mode.
DAWG98
03-01-2003, 01:41 PM
Thanks for your response. I opened the file using vi and looked through. It was fine. Nothing apparent. Could it be a permission or read-only issue. I did notice that when exiting vi that I received an error message stating "changing a read-only file". Of course I opted to exit w/o changing (must have pressed enter or space somewhere to insert a character by accident). Anyway, I am stumped.
Give the specific error...ussually there is more to a "not found."
It might help further troubleshoot your problem.
DAWG98
03-01-2003, 10:46 PM
bash-2.02# ./sc.tcl
bash: ./sc.tcl: No such file or directory
i made sure the case is correct etc.
Any clues?
DarkWing
03-02-2003, 12:50 AM
do a ls -lart to make sure the file is there.
pwd will show your current directory.
DAWG98
03-02-2003, 01:35 AM
bash-2.02# ls -lart
total 72
lrwxrwxrwx 1 501 501 8 Nov 27 11:21 tmp -> /var/tmp
drwxr-xr-x 2 501 501 1024 Nov 27 11:21 root
drwxr-xr-x 4 501 501 1024 Nov 27 11:21 lib
drwxr-xr-x 2 501 501 1024 Nov 27 11:21 bin
-rwxrwxrwx 1 0 0 876 Nov 27 19:15 fixdemo.tcl
-rwxr-xr-x 1 0 0 13341 Mar 1 07:15 NowShowing.tcl
-rwxr-xr-x 1 0 0 48332 Mar 1 07:15 tserver_mfs6
drwxr-xr-x 5 501 501 1024 Mar 1 07:18 .
-rwxr-xr-x 1 0 0 1940 Mar 1 07:18 SC.TCL
drwxr-xr-x 23 0 0 1024 Mar 1 08:06 ..
It's all there.
BubbleLamp
03-02-2003, 02:35 AM
Originally posted by DAWG98
bash-2.02# ls -lart
total 72
lrwxrwxrwx 1 501 501 8 Nov 27 11:21 tmp -> /var/tmp
drwxr-xr-x 2 501 501 1024 Nov 27 11:21 root
drwxr-xr-x 4 501 501 1024 Nov 27 11:21 lib
drwxr-xr-x 2 501 501 1024 Nov 27 11:21 bin
-rwxrwxrwx 1 0 0 876 Nov 27 19:15 fixdemo.tcl
-rwxr-xr-x 1 0 0 13341 Mar 1 07:15 NowShowing.tcl
-rwxr-xr-x 1 0 0 48332 Mar 1 07:15 tserver_mfs6
drwxr-xr-x 5 501 501 1024 Mar 1 07:18 .
-rwxr-xr-x 1 0 0 1940 Mar 1 07:18 SC.TCL
drwxr-xr-x 23 0 0 1024 Mar 1 08:06 ..
It's all there.
The name is SC.TCL. *nix is case sensitive, so you gotta run it as ./SC.TCL
DAWG98
03-02-2003, 03:41 PM
I know. I uploaded sc.tcl (or SC.TCL) in various forms to various folders thinking that it may be a folder or file specific issue. However, I keep getting the same error.
When executing the program I ensured I used the appropriate case. Then for good measure I tried it in the other case as well, just to be sure. I am almost certain its something very small I am overlooking. Please help. I appreciate all your comments to date.
DAWG98
Sony T-60
BubbleLamp
03-02-2003, 04:02 PM
Originally posted by DAWG98
I know. I uploaded sc.tcl (or SC.TCL) in various forms to various folders thinking that it may be a folder or file specific issue. However, I keep getting the same error.
When executing the program I ensured I used the appropriate case. Then for good measure I tried it in the other case as well, just to be sure. I am almost certain its something very small I am overlooking. Please help. I appreciate all your comments to date.
DAWG98
Sony T-60
If you send the file via FTP, you should use binary format, sending it as ASCII tends to screw things up. If you sent it via zmodem, it should work fine. Try running the file thru DOS2UNIX on the PC before you transfer it.
DAWG98
03-02-2003, 06:10 PM
Man. Binary. That's what it was. I am using an FXP client that is set to "auto". Had to change to binary and voila. Thanks again for your help guys.
DAWG98
JJBliss
03-03-2003, 10:51 AM
Didn't I say that !??!?!
<sheesh>
:p
BubbleLamp
03-03-2003, 11:57 AM
Originally posted by JJBliss
Didn't I say that !??!?!
<sheesh>
:p
I just used a bigger fish to slap him upside the head. :eek:
DAWG98
03-05-2003, 05:42 PM
I know I know. My bad. I never claimed I was good at following directions ;)
Thanks again.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.