Shell script to expire a user account

Hi,

I’ve been led to believe that it would be possible to write a shell script that examines the web server log files and expires the account after first login. If I could auto log them out after they have finished uploading or downloading files form the server this would be a bonus.

Basically giving a one time connection. I could then issue a new password for the next time a connection is required.

Any info on this would be welcomed, also would anyone recommend any books on apple scripts.

Craig

:confused:

Has anybody got any views on this? Or am I going in the wrong direction?

Craig