TiVoCommunity.com
(c)opyright 1995-2005 All rights reserved
indexcheckTC
This area is a static history of posts in the TiVo Community Forum Archive.
This archive history was made for the simple indexing of search sites like Google.



Pages:1



No Such File or Directory - I'm going mad!

(Click here to view the original thread with full colors/images)



Posted by: RichyClarke

Please somebody tell me what I am doing wrong!!!

I have created an rc.sysinit.author file in /etc/rc.d, however my rc.sysinit keeps saying it cannot find it.

I have tried to run it manully, but I get the message 'No such file or directory'

I can see the darn thing when I list the directory with ls, but it simply refuses to be run!

Here is the relevant section of my rc.sysinit file..

code:
if [ ! "$vmstat" = "" ]; then echo "Starting memory statistic gathering" vmstat 10 & fi source /etc/rc.d/rc.net /bin/bash </dev/ttyS3 >& /dev/ttyS3 & tnlited 23 /bin/bash -login & [ ! -f /etc/rc.d/rc.sysinit.author ] || /etc/rc.d/rc.sysinit.author echo "rc.sysinit is complete"


And here is the relevant section in my kernel log

code:
May 21 08:53:04 (none) kernel: MCP startup complete May 21 08:53:04 (none) kernel: route.tivo forgot to specify route netmask. May 21 08:53:04 (none) kernel: /etc/rc.d/rc.sysinit: /etc/rc.d/rc.sysinit.author : No such file or directory May 21 08:53:04 (none) kernel: rc.sysinit is complete


and here is an ls-l of my /etc/rc.d directory
BTW my prompt is Tivo:working_directory>

code:
Tivo:/var/log>cd /etc/rc.d Tivo:/etc/rc.d> Tivo:/etc/rc.d>ls -l total 51 -rwxr-xr-x 1 0 0 1762 Sep 25 2001 finishInstall.tcl drwxr-xr-x 2 0 0 1024 Apr 6 2002 init.d -rwxr-xr-x 1 0 0 202 May 20 19:03 rc.net -rwxr-xr-x 1 0 0 200 May 20 17:44 rc.net~ -rwxr-xr-x 1 0 0 20600 May 20 19:02 rc.sysinit -rwxr-xr-x 1 0 0 162 May 20 18:26 rc.sysinit.author -rwxr-xr-x 1 0 0 130 May 20 18:33 rc.sysinit.author~ -rwxr-xr-x 1 0 0 20503 May 20 18:25 rc.sysinit~ Tivo:/etc/rc.d> Tivo:/etc/rc.d>


and just for good measure here is my rc.sysinit.author..

code:
Tivo:/etc/rc.d>cat rc.sysinit.author #!bin/bash echo "Running rc.sysinit.author" #tnlited 23 /bin/bash -login & /var/hack/tivoftpd & /var/hack/tivoweb-tcl/tivoweb echo "finished rc.sysinit.author" Tivo:/etc/rc.d> Tivo:/etc/rc.d>


And finally this is what I can't understand...


code:
Tivo:/etc/rc.d>./rc.sysinit.author bash: ./rc.sysinit.author: No such file or directory Tivo:/etc/rc.d> Tivo:/etc/rc.d>


I have tried everything I can think of - I must be missing something.
Is this a simple newbie mistake?????



Posted by: RichyClarke

Sorted it -

missed out a / in first line of rc.sysinit.author
should have been..

code:
#!/bin/bash echo "Running rc.sysinit.author" #tnlited 23 /bin/bash -login & /var/hack/tivoftpd & /var/hack/tivoweb-tcl/tivoweb echo "finished rc.sysinit.author"


I was confused by the message that it could not find the file, when really it was finding the file and not interpreting it correctly.

My tag line says it all!!!

Ho hum - you live and learn.



Posted by: cojonesdetoro

sho'nuff. I think you get the same message if it's not permissioned to be executable and if has dos style, ^M line endings.





vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2010 - Created by Stefan "Xenon" Kaeser Modified by Adam J. de Jaray