seelog/log.sh

10 lines
200 B
Bash
Raw Normal View History

2019-12-12 21:56:02 +01:00
#!/bin/bash
[ ! -e $HOME/.log ] && mkdir $HOME/.log
echo $HOME/.log/$(date +"%d-%b-%y_%H-%M-%S")_shell.log > $HOME/.log/last.txt
script -f $HOME/.log/$(date +"%d-%b-%y_%H-%M-%S")_shell.log
exit 0