Hello,
I have created a shell script which automates some backup tasks. For security purposes I have encrypted it using shc.
On my own computer (32 bits xubuntu hardy) this runs just fine.
However, on another computer (64 bits xubuntu hardy) one particular command in the script doesn't work.
The command is basically:
Code:
ssh user@domain.com rm directory/*.*
Now in the following cases it works fine (on this second computer):
- Using the terminal I ssh into the server manually and run "rm directory/*.*"
- I run the command above manually in the terminal
- I run the full unencrypted shell script
However when I run the encrypted script, suddenly I get errors like:
Cannot remove `directory/blabla.bla`: No such file or directory
So it does seem to see the files (otherwise it wouldn't be able to give the fill name) but when it tries to delete them, suddenly the files can't be found.
Any ideas to why this might occur?
Like I said, when I run the exact same encrypted shell scrypt on my own computer it works fine. It doesn't make a difference whether I compile the encrypted script on the other computer (although that does produce a warning message) or I compile it on my own with the -r option. In both cases it doesn't work properly on the other computer.
Any help would be appreciated.
Regards,
Martijn
Bookmarks