D 2010-10-15T21:28:39 J comment OS:\sWindows\s7\sUltimate\r\n\r\nWith\sfossil.exe\sinstalled\sin\sC:\\Windows\\system32,\s"fossil\sui"\sand\s"fossil\sserver"\sfail\sto\sstart\sthe\sweb\sserver.\sOn\seach\sattempted\saccess\sto\shttp://localhost:8080\s,\sthe\scommand\sprompt\soutputs:\r\n\r\n
'"fossil"'\sis\snot\srecognized\sas\san\sinternal\sor\sexternal\scommand,\r\noperable\sprogram\sor\sbatch\sfile.
\r\n\r\nWindows\sFirewall\sis\soff\sand\sthere\sare\sno\sother\sfirewalls\sinstalled.\r\n\r\nanonymous\sclaiming\sto\sbe\sArnel\sadded\son\s2010-10-08\s18:03:34:\r\nAre\syou\sable\sto\sedit\syour\sPATH\svariable\sand\sadd\sanother\sfolder\s(e.g.,\sC:\\Users\\\\Documents)\swhere\syou\scan\stransfer\sfossil.exe\sinstead?\sFossil\sprobably\sdoes\snot\sunderstand\s%SystemRoot%\\system32,\swhich\sis\swhat's\son\sPATH\sfor\sthat\sfolder.\r\n\r\nwolfgang\sadded\son\s2010-10-10\s12:32:16:\r\nThis\sis\snot\sa\sproblem\sof\sfossil.\r\n\r\nThe\smentioned\serror\smessage\sis\sa\sMS\sWindows\smessage,\sdocumenting,\sthat\sthe\srequested\scommand\sis\snot\sfound\sin\sthe\spath.\r\n\r\nSo\syou\sshould\scheck:\r\n\s\s*\s\sis\sthe\spath\sreally\scorrect\r\n\s\s*\s\show\sdo\syou\scall\sfossil,\sMS\sWindows\sdoesn't\suse\sthe\spath\svariables\sin\sall\scall\svariants\r\n\r\nanonymous\sclaiming\sto\sbe\sarichardson\s(op)\sadded\son\s2010-10-15\s09:10:18:\r\n>Arnel\sadded\son\s2010-10-08\s18:03:34:
\r\n>Fossil\sprobably\sdoes\snot\sunderstand\s%SystemRoot%\\system32,\swhich\sis\swhat's\son\sPATH\sfor\sthat\sfolder.\r\n\r\nI\sthink\syou've\shit\son\sthe\sproblem\shere.\sIt\sworks\sperfectly\swell\son\sXP\sthough,\swhich\sis\swhy\sI'm\spuzzled.\sI\swill\stry\syour\ssuggestion\sbut\sultimately\swill\send\sup\swith\sFossil\sback\sin\ssystem32,\swhere\s(IMO)\sit\sbelongs.\r\n\r\n>wolfgang\sadded\son\s2010-10-10\s12:32:16:
\r\n>This\sis\snot\sa\sproblem\sof\sfossil.\r\n\r\nI\sbelieve\sit\sis.\sPlease\ssee\sbelow\sfor\smy\sreasons.\r\n\r\n>The\smentioned\serror\smessage\sis\sa\sMS\sWindows\smessage,\sdocumenting,\sthat\sthe\srequested\scommand\sis\snot\sfound\sin\sthe\spath.
\r\n>
\r\n>So\syou\sshould\scheck:
\r\n>
\r\n>is\sthe\spath\sreally\scorrect
\r\n>how\sdo\syou\scall\sfossil,\sMS\sWindows\sdoesn't\suse\sthe\spath\svariables\sin\sall\scall\svariants
\r\n\r\nLooks\slike\syou\sdidn't\sread\smy\sticket.\sI'll\sexplain\sagain:\r\n\r\nAt\sthe\scommand\sprompt,\sI'm\srunning\s"fossil\sui".\s("fossil\sserver"\sdoes\sthe\sexact\ssame\sthing.)\sThere\sis\sa\sknown\sgood,\sopen\sfossil\sin\sthe\sworking\sdirectory.\sFossil\sopens\sa\sweb\sbrowser\s(Firefox\sin\sthis\scase)\sand\sgives\sit\sthe\spath\s"localhost:8080"\sas\sexpected.\r\n\r\nThe\sproblem\soccurs\swhen\sFirefox\saccesses\slocalhost:8080.\sFossil\sis\sdefinitely\slistening\son\s8080/tcp\sbecause\sit\sreacts\sto\sconnections\son\slocalhost:8080.\sThe\sway\sit\sreacts\sis\sto\soutput\sthis\serror\son\sstdout:\r\n\r\n'"fossil"'\sis\snot\srecognized\sas\san\sinternal\sor\sexternal\scommand,\soperable\sprogram\sor\sbatch\sfile.\r\n\r\ninstead\sof\sreturning\sa\sweb\spage\sto\sthe\sbrowser.\r\n\r\nYou're\sright\sthat\sthis\serror\sis\sgenerated\sby\sthe\sOS,\sbut\sI\sbelieve\sthe\sflaw\sis\sin\sFossil.\sIMO\sArnel's\ssuggestion\sis\scorrect,\sthat\sFossil\sis\snot\sinterpreting\s%SystemRoot%\\system32\sproperly.\sI\swill\snow\sattempt\sto\sprove\sit.\r\n\r\n\r\nanonymous\sclaiming\sto\sbe\sarichardson\sadded\son\s2010-10-15\s09:13:21:\r\nI\smean,\sI\swill\sattempt\sto\sprove\sit\sin\s8\shours\sor\sso,\swhen\sI\sget\shome\sfrom\swork\sand\shave\saccess\sto\smy\sWindows\s7\sbox.\r\n\r\n\r\nanonymous\sclaiming\sto\sbe\sArnel\sadded\son\s2010-10-15\s11:28:11:\r\nI\scan\sconfirm\s"fossil\sserver"\sworks\swith\sfossil.exe\sinside\sthe\s%SystemRoot%\\system32\sfolder\sfrom\sa\sWindows\s7\sbox\sI'm\susing.\s\r\n\r\nWith\s"fossil\sui"\sI'm\sgetting\sthe\s"'http:'\sis\snot\srecognized...batch\sfile"\smessage.\sWhich\sis\sodd,\sconsidering\sI\scan\srun\s"start\shttp://127.0.0.1:8080/"\sfrom\swithin\sthe\sC:\\Windows\\system32\sfolder.\r\n\r\nanonymous\sclaiming\sto\sbe\sArnel\sadded\son\s2010-10-15\s11:34:02:\r\nSorry,\sI\sforgot\sto\sadd:\s"fossil\sui"\sdoes\sprovide\sthe\serror\smessage\sI\sdescribed\searlier\swhen\sI\sran\sit\sfrom\sthe\scommand-line,\s*BUT*\sif\sI\sopen\sa\sbrowser\sand\sgo\sto\shttp://localhost:8080/\sit\sopens\sthe\sweb\sUI\sfor\sFossil.\r\n\r\ndrh\sadded\son\s2010-10-15\s13:58:28:\r\nI\sthink\sthe\sproblem\scomes\sabout\sbecause\sFossil\stries\sto\srun\sa\scopy\sof\r\nitself\sby\scalling\ssystem()\swith\sargv[0]\sbeing\sused\sas\sthe\scommand\sname.\r\nApparently\son\swindows,\sargv[0]\sis\snot\sa\sreliable\sname\sfor\sthe\sprogram\r\nthat\sis\sbeing\srun.\r\n\r\nDoes\sanybody\shave\sany\ssuggestions\sfor\san\salternative\sway\sto\sget\sa\r\nwindows\sprogram\sto\srun\sa\scopy\sof\sitself?\r\n\r\nrwilson\sadded\son\s2010-10-15\s15:30:22:\r\nis\sthis\srecently\sintroduced?\s\si've\sbeen\susing\sfossil\son\swindows\s7\s64\sbit\ssince\sit\swas\sreleased\swith\sno\sproblems\s(not\scounting\sa\sfew\shiccups\salong\sthe\sway\sin\sthe\swin32\sbuild).\s\si\shaven't\supdated\smy\sbuild\sfor\sabout\ssix\sweeks,\sso\si'm\snot\sexperiencing\sthis\sissue\s(Fossil\sversion\s[7aae4ef068]\s2010-09-03\s01:57:41).\r\n\r\ndrh\sadded\son\s2010-10-15\s16:13:52:\r\nNothing\shas\schanged\sin\sthis\sarea\srecently.\s\sI\sthink\sthe\speople\sthat\sare\r\nhaving\sproblems\ssimply\shave\san\sunusual\swindows\sconfiguration.\r\n\r\nwolfgang\sadded\son\s2010-10-15\s16:37:14:\r\nFor\smy\sXP\smachine,\sargv[0]\sis\scorrectly\sfilled\swith\sthe\scomplete\spath.\sA\swindows\s7\sHome\sPremium\smachine\sshows\sonly\sthe\sfilename(fossil.exe),\snot\sthe\scomplete\spath.\sBoth\stests\sused\sa\sstandard\scmd.exe\sconsole\sstarting\sfossil\swith\sfossil\shelp\sver\sand\sfossils\sinstall\sdirectory\sin\senvironemt\svariable\sPATH.\s=>\r\n\s\s*\s\son\sXP\sargv[0]\sseems\sto\sbe\sfilled\swith\sthe\scomplete\spath,\sso\sthat\sthe\senvironment\sis\snot\sused\r\n\s\s*\s\son\sWin\s7\sis\sonly\sthe\sfilename\sstored\sin\sargv[0].\sThis\sway\sit\sdepends\son\sthe\senvironment/registry\ssettings,\swhether\sfossil\sis\sfound\sor\snot.\r\n\r\nThe\scontents\sof\sargv[0]\scan\sbe\stested\swith\r\n\r\nfossil\shelp\sver\r\n\r\nThe\sname\sof\sthe\sbinary,\sdisplayed\sin\sthe\soutput\sis\sreplaced\swith\sargv[0].\s\r\n\r\nWindows\suses\sdiffent\sways\sto\sfind\sa\sbinary\s(calling\svia\scmd.exe\sor\scalling\sby\sexplorer,..).\sSo\sif\sargv[0]\sdoesn't\scontain\sa\sfull\spath,\sthe\serror\s\smay\sappear.\r\n\r\nI've\sfound\sa\slink\sto\ssome\sinformation,\show\sto\sget\sthe\sapplication\slocation:\r\n\r\n[http://msdn.microsoft.com/en-us/library/ms683197]:\r\n
\r\nDWORD\sWINAPI\sGetModuleFileName(\r\n\s\s__in_opt\s\sHMODULE\shModule,\r\n\s\s__out\s\s\s\s\sLPTSTR\slpFilename,\r\n\s\s__in\s\s\s\s\s\sDWORD\snSize\r\n);\r\n
K c8c0b78c840e4df9aefd2687bf6cac5abfce08e5 U wolfgang Z 0bd928eadcfccf23dc21fd13161f11a4