l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Oct 04 11:36

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Re: help with script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Re: help with script

begin Ken Bloom <kabloom@ucdavis.edu> 
> > Date: Thu, 3 Oct 2002 00:16:19 -0700
> > To: vox-tech@lists.lugod.org
> > From: Peter Jay Salzman <p@dirac.org>
> > Subject: [vox-tech] help with script
> > Reply-To: vox-tech@lists.lugod.org
> > 
> > hi lugod,
> > 
> > i'm allowing my students to turn in their assignments electronically
> > this quarter.  they're writing C or fortran programs.  i'm requiring
> > them to turn in:
> > 
> > 1. the program
> > 2. a file showing the compile process and the program output.
> > 
> > for #2, i'm having them use "script".
> > 
> > however, script shows annoying ^M's plus any kind of backspacing and
> > term codes:
> > 
> >    Script started on Wed Oct  2 17:00:24 2002
> >    ^[]0;dhevan@jensen:~^G[dhevan@jensen dhevan]$ cc program1.c^M
> >    ^[]0;dhevan@jensen:~^G[dhevan@jensen dhevan]$ exit^M
>      ^^^^^^^^^^^^^^^^^^^^^^
>      Judging from this sequence, it looks like the work was done in an
>      xterm.

> > any suggestions?   what does the CS department do for electronically
> > submitted document?
> In all of my ECS classes thus far (ECS40 and ECS110, both with Sean
> Davis), the students submitted their program source code (and makefile)
> electronically using `handin' (which enough other people have described
> here that I don't need to), and the the professors would build our
> programs themselves from our sources and run them using their own custom
> shell scripts.
> Students are expected to match their professors' program's output to the
> point where `diff' would return no differences. The professors' shell
> scripts grep through our output, looking for the essential pieces of the
> correct output (however we are not told in advance what patterns they
> are looking for, what input they will throw at our programs, nor what
> other data they look for to find the output).
> In this way, professors save time, and they know that the output is from
> our binaries (and not from the sample binaries that they gave us, nor the
> result of our own painstaking typing using $EDITOR).

eeks, that would be un-doable for this class.  they're basically solving
physics problems.  since research is all about doing it "your way", we
don't want to dictate how the solve problems; we just want to see
thought and creativity.

for example, finding an eigenvalue for a particular problem may boil
down to finding a root of some transcendental equation.  i want to give
them the opportunity to use bisection, newton's method, or whatever
other scheme they dream up.  and leave it up to them to figure out "how
many digits of precision is enough".

but i can see how the CS dept's method would be perfect for someone
learning a language, where you demand certain output given a certain

the assumption is that these kids already know C, which is unfortunately
not true.  most of the hello world programs i've seen look more or less

printf("hello world\n");

i think the professor (who uses fortran) might have put this on the
blackboard.  :(

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!