**** BEGIN LOGGING AT Mon Mar 31 03:00:02 2008 Mar 31 13:11:07 hey Tony Mar 31 13:11:14 silly thing logged me out and didn't log me back in Mar 31 13:11:19 i didn't realise i was logged out Mar 31 13:11:25 that's no good. Mar 31 13:11:37 how long have i been out, i thought this was getting a bit quiet over the last few days :-) Mar 31 13:11:57 yeah probably a few days Mar 31 13:12:22 i am having real difficulties getting the wiz to run anything from rc.local and I am buggered if I know why? Mar 31 13:12:43 # cat /tmp/config/rc.local Mar 31 13:12:43 #!/bin/sh Mar 31 13:12:43 # put this file in /tmp/config then reboot with wizremote.php to have start on boot Mar 31 13:12:43 telnetd -l /bin/sh & Mar 31 13:12:43 sleep 5 Mar 31 13:12:44 date >>/tmp/mnt/idehdd/wiz/ntp/ntpclient.log Mar 31 13:12:46 date >>/tmp/mnt/idehdd/wiz/ntp/ntpclient.log Mar 31 13:12:48 micomparam --systohc >>/tmp/mnt/idehdd/wiz/ntp/ntpclient.log Mar 31 13:12:50 (cd /tmp/config; ./wizremote > /dev/null &) Mar 31 13:12:58 # cat /tmp/mnt/idehdd/wiz/ntp/ntpclient.log Mar 31 13:12:58 Mon Mar 31 06:05:47 MST 2008 Mar 31 13:12:58 Mon Mar 31 06:05:47 MST 2008 Mar 31 13:13:00 set TZ=TMP-10:00 Mar 31 13:13:02 80071408031F17052F FED0028000FF Mar 31 13:13:20 So the 2 date commands run fine, but not the ntpclient? Mar 31 13:13:23 have you got the right permissions Mar 31 13:13:26 755 Mar 31 13:13:38 no chmod for the wiz :-( Mar 31 13:13:51 anyone got a decent busybox compiled for it yet ? :-) Mar 31 13:14:16 -rwxr-xr-x 1 0 0 55704 Mar 31 04:42 ntpclient Mar 31 13:14:20 hmm, not root Mar 31 13:14:22 maybe Mar 31 13:14:33 Welcome to BeyonWiz DP-S1 Mar 31 13:14:33 # chmod Mar 31 13:14:33 BusyBox v1.00 (2006.07.26-01:09+0000) multi-call binary Mar 31 13:14:34 Usage: chmod [-R] MODE[,MODE]... FILE... Mar 31 13:15:06 ahh, no chown I should have said Mar 31 13:15:19 ah k Mar 31 13:15:19 but it doesn't matter, as the logfile is created wtih the same permissions: Mar 31 13:15:27 # ls -al Mar 31 13:15:27 drwxr-xr-x 2 0 0 524288 Mar 31 06:05 . Mar 31 13:15:27 drwxr-xr-x 10 0 0 524288 Mar 31 04:37 .. Mar 31 13:15:27 -rwxr-xr-x 1 0 0 55704 Mar 31 04:42 ntpclient Mar 31 13:15:27 -rwxr-xr-x 1 0 0 107 Mar 31 06:05 ntpclient.log Mar 31 13:15:41 yeah everything runs as root Mar 31 13:15:50 i had the same issues when trying to call another shell script from rc.local Mar 31 13:16:23 are you using absolute paths Mar 31 13:16:27 it is driving me crazy, as each change I have to reboot Mar 31 13:16:41 is ntpclient in the current path? Mar 31 13:16:41 (well, i have to reboot anyway to get it to run i suppose) Mar 31 13:16:51 i specify the full path to it Mar 31 13:16:56 right Mar 31 13:17:08 is it on the hdd Mar 31 13:17:17 maybe you aren't waiting long enough Mar 31 13:17:20 and the hdd must already be mounted, as the logfile is written ok in the same directory Mar 31 13:17:25 ah k Mar 31 13:17:48 are you calling the app correctly? Mar 31 13:17:54 maybe it is just quiting Mar 31 13:18:05 if i run rc.local from the shell, it works fine Mar 31 13:18:14 hmm Mar 31 13:18:39 what could be different about calling it from rc.sysinit Mar 31 13:18:45 memory? Mar 31 13:19:16 i dunno, but i had exactly the same issue trying to call another shell script a few weeks ago Mar 31 13:19:30 can you remember how you fixed it? Mar 31 13:19:36 should i call it with . ./ Mar 31 13:19:39 or sh? Mar 31 13:19:54 i am not a major shell wizkid here, so i don't know the intricacies of these things Mar 31 13:20:00 if it has execute permission it should execute with out sh Mar 31 13:20:55 as it uses date possibly to set the time, maybe it needs a path variable set, maybe this isn't inherited from the main system path? Mar 31 13:21:24 you might have .profile running in your telnet session Mar 31 13:21:28 but not in rc.sysinit Mar 31 13:21:39 .profile on the wiz... lol Mar 31 13:21:56 but i see the path variable is set in rc.sysinit Mar 31 13:22:08 but is maybe not passed to the child rc.local? Mar 31 13:22:36 try env $PATH command Mar 31 13:22:45 actually, why do you call wizremote with ()? Mar 31 13:22:54 subshell Mar 31 13:23:01 what is that? Mar 31 13:23:03 so it takes the directory move Mar 31 13:23:10 ahh, ok Mar 31 13:23:16 hmm Mar 31 13:23:22 changes the working directory of the app Mar 31 13:24:33 i still reckon we can use ntp to set the time, and a bit of manipulation to get the timezone correct Mar 31 13:24:50 i have certainly proved that it will take the time with ntp Mar 31 13:25:06 :) Mar 31 13:25:30 but i think this new wiz guy is keen to get this working better also Mar 31 13:25:42 and would be nicer integrated into the gui Mar 31 13:26:38 yeah he seems quite keen to get it going Mar 31 13:26:48 his english is pretty good too Mar 31 13:27:36 yep, definitely Mar 31 13:29:28 ugh Mar 31 13:29:34 i just killed my telnet hack Mar 31 13:29:44 (well, your hack idea) Mar 31 13:29:50 oh no Mar 31 13:30:09 I put "PATH=/bin" into the beginning of rc.local Mar 31 13:30:47 I take it you didn't have /usr/sbin/telnetd -l /bin/sh & Mar 31 13:30:47 and now the telnetd didn't start :-( (this is called in rc.local to survive f/w upgrades, as per your idea) Mar 31 13:30:58 hehe, no Mar 31 13:31:27 ok, will put my rc.sysinit hacked one in Mar 31 13:31:45 (as in, spend the eternity downgrading) Mar 31 13:32:21 the write & erase takes forever, they must have been a bit conservative with their flash programming routines Mar 31 13:33:45 yeah it takes forever! Mar 31 13:34:07 one for tomorrow i think Mar 31 13:34:11 see you l8r Mar 31 13:34:24 righto cya Mar 31 13:35:57 my new project: Mar 31 13:35:58 http://nuvie.sourceforge.net/temp/wizmac.png Mar 31 13:36:10 a wizfx client for mac written in cocoa Mar 31 13:37:18 hehe just noticed my wonky time display Mar 31 13:37:23 9:0PM Mar 31 13:38:11 fixed Mar 31 13:46:44 time for bed Mar 31 13:46:45 cya **** ENDING LOGGING AT Tue Apr 01 02:59:56 2008