ITS Home
Student
Faculty/Staff
Passwords
Phone Services

Windows Shortcuts

Viruses
Glossary -Tech Terms
FAQ's
About Us
Feedback
 
 
 

Log in to Webmail

Webmail is the web based email service that is part of mail@enc.edu, a suite of email services offered by the Information Technology Services(ITS) department. WebMail allows you to access your ENC email through the Internet.
Read More »

 
 
  UNIX Programming Environment  


Server hostname:  hosea.enc.edu

Remote Terminal Access

Use ssh ("secure shell")  to establish a remote terminal session, giving you access to the command-line.  Any good ssh client will work (see links to right;  note that cygwin bundles with it a very good command-line ssh client).

Telnet is not supported.


X-Windows Access

Coming shortly.....

File Access

Use WinSCP (see link to right).  At present the SCP protocol must be used.  SFTP will be supported later.

Editors

The following text editors are available:

vi  ee  emacs  xemacs

Perl

Start off all scripts as shown below.  With the "strict" and "warnings" pragma the perl interpreter does its very best to help you write clean, solid code.

#!/usr/bin/perl

use warnings;
use strict;

Web / CGI Notes

hosea.enc.edu is running the HTTP daemon Apache.  Docs are available both locally and on the Apache site.

key web directories on hosea
  • /usr/local/www/data - "Document Root".. the root of the hosea.enc.edu web file namespace
  • /usr/local/www/cgi-bin - root of directory tree enabled to run CGI scripts.  This directory is grafted virtually onto the root of the web namespace (ie. at "/cgi-bin")
log files

Examining log files is often a key part to debugging your CGI scripts.  There are two:

  • /var/log/httpd-access.log
  • /var/log/httpd-error.log

Use the 'tail' command to see the most recently logged events.  The error log is of primary interest.  Once great technique is to leave this command running in an xterm so you can see events as they happen:

tail -f /var/log/httpd-error.log

PUBLISHING

Both the "data" and "cgi" directories have a subdirectory "intarch".  In each of these is a personal directory for each member of the class.  To make access simpler each of you has a directory $HOME/web which contains symbolic links to your two personal web directories.

data

File access

User 'schmoej' puts data (HTML, etc.) in directory /usr/local/www/data/user/schmoej, which may also be accessed via ~/web/data.

HTTP access

URL:  http://hosea.enc.edu/user/schmoej

cgi

File access

User 'schmoej' puts cgi scripts in directory /usr/local/www/cgi-bin/user/schmoej, which may also be accessed via ~/web/cgi.

HTTP access

URL:  http://hosea.enc.edu/cgi-bin/user/schmoej/<scriptname>

Code Securely!

  • All code should carry the '-T' flag at the end of the bang-path to enable taint checking.  See 'perldoc perlsec' for a discussion of this feature.  Dealing with this properly is key to keeping your scripts secure.  Insecure scripts will be deactivated or deleted when discovered.
 
 
 
 © Copyright 2004 Information Technology Services. Eastern Nazarene College. All Rights Reserved. Contact the Webmaster