return to first page linux journal archive
keywordscontents

Listing 6. Using Mlibc (Constable configuration)

for unlink "/tmp/delme" {
        force "/home/robo/devel/medusa/exitme";
        answer = NO;
}

Output Messages

[root@unicorn /root]# id
uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
[root@unicorn /root]# cd /tmp
[root@unicorn /tmp]# ls -l delme
-rw-rw-r--   1 robo     robo     0 Jan 25 23:08 delme
[root@unicorn /tmp]# rm delme
rm: remove `delme'? y
[root@unicorn /tmp]# echo $?
0
[root@unicorn /tmp]# ls -l delme
-rw-rw-r--   1 robo     robo     0 Jan 25 23:08 delme