From: SourceForge.net <no...@so...> - 2003-04-24 14:27:30
|
Bugs item #726914, was opened at 2003-04-24 16:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505224&aid=726914&group_id=63801 Category: labrun/rerun/schedule/mex Group: released version Status: Open Resolution: None Priority: 5 Submitted By: Jorrit Wiersma (jwiersma) Assigned to: Nobody/Anonymous (nobody) Summary: labrun OS Comment bug under FreeBSD Initial Comment: (I am aware that you do not support FreeBSD `officially', but I thought it might interest you anyway. I just started the tutorial out of interest, but if I find any more bugs with easy solutions I will submit them here if you don't mind. If I decide to use Explab seriously I'd be willing to help make the programs portable to FreeBSD.) I run FreeBSD and I just installed Explab. When I tried to run labrun, it died with the mysterious error message labrun: Error reading file 'hst35183.phys.uu.nl' (that is my hostname). I went through the sources and tracked the problem to the standard OS comment which is: output.append("OS=`uname -srv`") But uname -srv produces on my machine: FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Wed Apr 9 10:27:28 CEST 2003 ro...@hs...:/usr/obj/usr/src/sys/JW-HST35183 As you can see this includes a `@' and labrun interpreted this as a file reference to a file that (of course) doesn't exist. A simple workaround for me is to remove the v from the uname options: 149c149 < output.append("OS=`uname -sr`") --- > output.append("OS=`uname -srv`") Because then uname returns: FreeBSD 4.8-RELEASE which is pretty harmless. A more lasting approach would of course be to add an `if OS[-3:]=="BSD":' switch. Or to create some way to quote the output from uname, but I can imagine that is much harder to do. I hope this helps. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=505224&aid=726914&group_id=63801 |