now actually using at daemon

This commit is contained in:
2022-01-17 15:37:37 +02:00
parent 76cc8a4304
commit 5d0972e826
3 changed files with 224 additions and 135 deletions

33
test.sh
View File

@@ -1,20 +1,27 @@
#!/bin/bash
set -x
set -x -e
pipx install -f .
touch foo
stat foo
atdel -d -2 foo
rm foo
touch bar foo fuu
mv fuu foo
rm bar
stat foo
atdel -d 2 foo
atdel -t "02/01 15:00" foo
atdel
atdel --delete
atdel -v
lastid=$( atdel | tail -n 1 | awk '{ print $1 }' )
echo $lastid
atdel -D $lastid
inode=$( stat -c %i foo )
atdel --delete-file $( readlink -f foo ) || true
atdel --inode 1 --delete-file $( readlink -f foo )
atdel --inode $inode --delete-file $( readlink -f foo )
mkdir -p bar
touch bar/foo
atdel -d 2 bar
atdel
inode=$( stat -c %i bar )
atdel --inode $inode --delete-file $( readlink -f bar )
atdel -d -2 foo
atdel --delete
atdel -d -2 nonexist