Hi,
Where I should insert log-out script in mac os 10.5 ?
I would like control which time users login to computer and which time log out.
I made login script:
#!/bin/sh
mkdir /Volumes/log
mount_smbfs '//@svbk/LOG$' /Volumes/log
echo "$(date "+%Y-%m-%d, %T"), $(users), LOG-IN" >> /Volumes/log/logmac.rtf
umount /Volumes/log
killall Terminal
and logout script:
#!/bin/sh
mkdir /Volumes/log
mount_smbfs '//@svbk/LOG$' /Volumes/log
echo "$(date "+%Y-%m-%d, %T"), $(users), LOG-OUT" >> /Volumes/log/logmac.rtf
umount /Volumes/log
killall Terminal
but I don't now where I should insert logout script.
may somebody have a better idea to control time login,logout ?
Thx for help!!!
Where I should insert log-out script in mac os 10.5 ?
I would like control which time users login to computer and which time log out.
I made login script:
#!/bin/sh
mkdir /Volumes/log
mount_smbfs '//@svbk/LOG$' /Volumes/log
echo "$(date "+%Y-%m-%d, %T"), $(users), LOG-IN" >> /Volumes/log/logmac.rtf
umount /Volumes/log
killall Terminal
and logout script:
#!/bin/sh
mkdir /Volumes/log
mount_smbfs '//@svbk/LOG$' /Volumes/log
echo "$(date "+%Y-%m-%d, %T"), $(users), LOG-OUT" >> /Volumes/log/logmac.rtf
umount /Volumes/log
killall Terminal
but I don't now where I should insert logout script.
may somebody have a better idea to control time login,logout ?
Thx for help!!!