#!/bin/csh -f ###################################################################### # The following tests are by no means exhaustive. They do try to catch # some obvious errors. ###################################################################### # Assumptions: # - the name field must exist, Indexed, Lookup, but not Change # - the alias field must exist, Indexed, Lookup, Change # - the email field must exist, Indexed, Lookup, Change # - Set the following to the address you wish to disallow in # email fields. set badEmail=uiuc.edu # - set the following to the qi you wish to use set qi=/nameserv/src/qi/qi # - set the following to the host and port your test qi is running on set host=ns set port=105 # - set the following to the ph you wish to use set ph=/nameserv/src/ph/ph # # leave these alone set ph="$ph -s $host -p $port" alias e echo e "######################################################################" e qi testing e "######################################################################" e The following should all succeed. $qi <~/.netrc machine ph login testing-one password -gnitset NETRC_END e "######################################################################" e Ph should fail to login here, since your .netrc file is readable $ph <