removing corrupt lost+found dir

2015-08-08 Thread K. Adam Wolfe
Hello all, I've recently upgraded from wheezy to jessie; worth saying but not sure it's related to my issue. I have a directory in lost+found that is giving me a headache. every night my file system goes read-only. I reboot, do an fsck and go through the same process of scanning and fixing

Re: Logging of commands in a bash script to a file

2014-04-22 Thread K. Adam Wolfe
Use redirects: $IP route add ${VPN_NET[$N]} dev ${VPN_IFACE[$N]} src ${VPN_IP[$N]} table $N >> /some/log/file $IP route add default via ${VPN_GW[$N]} table $N >> /some/log/file $IP route add ${VPN_NET[$N]} dev ${VPN_IFACE[$N]} src ${VPN_IP[$N]} >> /some/log/file $IP rule add from ${VPN_IP[$N