Deathmoon
July 8th, 2007, 02:05 AM
I've read that shred doesn't work for ext3 partitions and that wipe is the next best. Therefore, I wanted to create a script (to place in my right-click nautilus options) - much like the shred option for Nautilus Scripts (btw shred doesn't work).
Anyway...I wrote the following and I cannot seem to get it to work...any ideas? This is only my 2nd script to write therefore please provide feedback; I want to learn.
Thanks in advance.
#!/bin/bash
clear
#if filename is NULL then exit script
if [ -z "$1" ]
then
exit 1
fi
gdialog --title "$1" --yesno "Are you sure you want to WIPE
$1"
#cancel = 1
#ok = 0
#need to know path of file
if [ $? = 0 ]
then
echo "wipe now"
wipe -f -P 227 -S r "$1"
echo "file wiped"
fi
#EXIT #1
1
Anyway...I wrote the following and I cannot seem to get it to work...any ideas? This is only my 2nd script to write therefore please provide feedback; I want to learn.
Thanks in advance.
#!/bin/bash
clear
#if filename is NULL then exit script
if [ -z "$1" ]
then
exit 1
fi
gdialog --title "$1" --yesno "Are you sure you want to WIPE
$1"
#cancel = 1
#ok = 0
#need to know path of file
if [ $? = 0 ]
then
echo "wipe now"
wipe -f -P 227 -S r "$1"
echo "file wiped"
fi
#EXIT #1
1