View/Edit/Compile/Run
Web-based Programming Environment

 

 

Richard Perry
Villanova University
Department of Electrical and Computer Engineering
richard.perry@villanova.edu
http://ftp.ece.villanova.edu/


---

Outline


---

Introduction


---

VECR Tour - Home page for student frodo

frodo - projects

a1,   a2,   a3,   a4,   a5,   a6,   a7,   a8,   a9,   a10,  

zip - download all projects

documentation and source code

Logout - (UserID logout with empty password)


---

VECR Tour - Home page for instructor rperry

rperry - projects

a1,   a2,   a3,   a4,   a5,   a6,   a7,   a8,   a9,   a10,  

zip - download all projects

documentation and source code

Logout - (UserID logout with empty password)


---

VECR Tour - a1 project page

frodo - a1

Home

Edit:

   p1.c,   p2.c,   p3.c,   p4.c,   p1.java,   p2.java,   p3.java,   p4.java,  

   p1.sh,   p2.sh,   p3.sh,   p4.sh,   p1.txt,   p2.txt,   p3.txt,   p4.txt,  

   Makefile,   p1.h,   p2.h,   p3.h,   p4.h,  

View:

     464 Sep  2 11:48 Makefile
    7440 Oct 16 15:28 p1
      84 Oct 16 15:27 p1.c
      83 Oct 15 18:22 p1.c.OLD
      16 Oct 16 13:14 p1.in


---

VECR Tour - Editing a1/p1.c

frodo - a1/p1.c

a1 - Home - preproc - asm - asmopt - cerr - reload

Compile - args:

<-save changes

<-save changes

Compile - args:

a1 - Home - preproc - asm - asmopt - cerr - reload


---

VECR Tour - action links


---

VECR Tour - Compile and Run a1/p1.c

make p1
---

gcc -ansi -pedantic -Wall -g -lm -o p1 p1.c

---
Done.

./p1 
---

1 2
2 4
3 1

---
Exit status = 0


---

VECR Tour - Plot a1/p1.c


---

VECR Tour - plot script
#! /bin/sh

umask 077; PATH="/usr/bin"; export PATH

exec 2>/dev/null

(echo "set term pbm\nset output\n\
   plot '-' notitle with linespoints"; cat) |
  /usr/local/bin/gnuplot |
  /usr/local/netpbm/bin/ppmtogif


---

Courses and Projects


---

Courses and Projects

Introductory C Programming

Advanced C Programming

Java Programming


---

Current course project - interactive root locus

a3/p1 - a3 - Home
input:


---

VECR Implementation

Combination of C code, perl, and Bourne shell scripts,
available from http://ftp.ece.villanova.edu/

Implementation Details


---

System Environment


---

Authentication

Project Directories Example
  drwxr-x---  root  3004  home/frodo
  drwx------  3004  3004  home/frodo/a1
  drwx------  3004  3004  home/frodo/a2
  drwx------  3004  3004  home/frodo/a3
  ...


---

Running as root

Running as student userid


---

Conclusion and Future Work