pmwho/pmcom problem

Scott Black (admin@emporium.on.ca)
Fri, 18 Apr 1997 17:46:21 -0400

I am trying to get a script to work which will identify what port a user is
on and reset that port.

The usage will be boot <user>

Here is the file boot:

-----------------------
#!/bin/sh

PORT="`$PMWHO | grep $1 | cut -b0-2`"
$PMCOM -c portmaster "reset $PORT"
-----------------------

Every time I run this, it seems to return a value of S1 for PORT and it
resets S1. What am I doing wrong???

Thanks,

Scott

****************************************************************
'Getting cards and letters from people I don't even know'