Grep bytes 1-3 instead of 0-2; I think you're just transposed one
character off.
Hth,
-- Ed Donovan ed@capecod.net
Scott Black <admin@emporium.on.ca> writes:
> > 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' >