Hi All,
I encounter a strange thing: I want to manage my backup automatically,and I try to write a script to do that, I am going by after step.
My first attempt was to delete older files and directory, I keyed in every individual statement in terminal mode and it works well, but when I want to record as a script, it runs without any trouble, but nothing is done. Here is my commands:
Any idea ?
Many thanks.
I encounter a strange thing: I want to manage my backup automatically,and I try to write a script to do that, I am going by after step.
My first attempt was to delete older files and directory, I keyed in every individual statement in terminal mode and it works well, but when I want to record as a script, it runs without any trouble, but nothing is done. Here is my commands:
#!/bin/sh
su
chmod 777 bb.sh
rm /mnt/extSdCard/clockworkmod/backupold/*
rmdir /mnt/extSdCard/clockworkmod/backupold/
I have set the directory where the script run as working directory with the CD command.su
chmod 777 bb.sh
rm /mnt/extSdCard/clockworkmod/backupold/*
rmdir /mnt/extSdCard/clockworkmod/backupold/
Any idea ?
Many thanks.