Perl Assignment #11:  Directory Operations

 

CS 447/647

Spring, 2012

 

 

Due: 4/17/12

 

Read chapter 13 of Learning Perl.  Do exercises 1 and 4.

 

script assign11.txt

PS1=’$ ‘

cat ex13-1.pl

perl ex13-1.pl

exit

 

Submit assign11.txt and handson11.txt via Web Campus.

 

 

Hands-On Exercise

 

 

(See reverse side)


 

 

1.    Install postfix using the satellite configuration

 

Use smtp.unr.edu as your smart host (on-campus) or your ISP’s SMTP server (off-campus)

sudo apt-get install postfix mutt

 

2.  Send mail to yourself

 

EDITOR=vim mutt dahl@unr.edu

 

3.  Send mail directly using SMTP:

If you are off-campus use your ISP’s SMTP server instead of smtp.unr.edu.

 

script handson11.txt

# PS1="# "

 

# telnet smtp.unr.edu 25

Trying 134.197.1.112...

Connected to smtp.unr.edu.

Escape character is '^]'.

220 smtp.unr.edu ESMTP Postfix

HELO banyan

250 smtp.unr.edu

MAIL From: dahl@unr.edu

250 2.1.0 Ok

RCPT To: dahl@unr.edu

250 2.1.5 Ok

DATA

354 End data with <CR><LF>.<CR><LF>

test

.

250 2.0.0 Ok: queued as 3821871CE

QUIT

221 2.0.0 Bye

Connection closed by foreign host.

# exit