Been testing some stuff and started lab 8

This commit is contained in:
2013-12-27 20:01:09 +01:00
parent ea53d81fef
commit e4e9a73ebb
7 changed files with 120 additions and 0 deletions

16
Misc/itsatrap.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
# Testing out traps
trap "echo ' I have just trapped CTRL+C'" SIGINT SIGTERM
trap "echo ' Dont stop me plz'" SIGTSTP
trap "echo ' Ok, just exit'" EXIT
for (( i=60; i>=0; i-- )); do
echo $i
sleep 1
done
exit 0