How to make my file backup script run on Salix?
Posted: 28. May 2013, 12:48
I have pieced together a little bash script that creates backup of a file as you open it for editing. Now this script runs fine on Debian and Bodhi but I'm having problems running it on Salix because Salix doesn't use 'sudo'. Using 'su' i ran into difficulties right away. I wanted to copy this script from 'hakbak' folder in my user directory to 'usr/bin' directory. On Debian i would do it like this,
On Salix i did 'su' in terminal and then ran the command,
But it gave me error.
I just stopped there. I knew there and then that i would have to make some changes on installation and may be the script it self. I know that Salix-Slackware is not Bodhi-Debian and that's why i'm asking you guys to have a look at my script and suggest me on how to modify it to run on Salix.
Here's a link to my blog post explaining installation and usage of this script,
http://hakerdefo.blogspot.com/2013/05/h ... l-for.html
Cheers!!!
Code: Select all
sudo cp ~/hakbak/hakbaktext.sh /usr/bin
Code: Select all
cp ~/hakbak/hakbaktext.sh
Code: Select all
cp: cannot stat ‘/root/hakbak/hakbaktext.sh’: No such file or directory
Here's a link to my blog post explaining installation and usage of this script,
http://hakerdefo.blogspot.com/2013/05/h ... l-for.html
Cheers!!!