Stephen Irons wrote: > Roger Searle wrote: > >> Hi, I have the following file: >> [EMAIL PROTECTED]:~/Desktop> ls -l backup-data.sh >> -rwxr-xr-x 1 roger users 167 2007-03-09 10:18 backup-data.sh >> >> which if clicked from the desktop will create a tar file containing a >> few folders of files in the expected location. Yet all my attempts to >> run from the command line fail to generate the tar file - having tried >> the following: >> >> [EMAIL PROTECTED]:~/Desktop> sh ./backup-data.sh >> [EMAIL PROTECTED]:~/Desktop> ./backup-data.sh >> [EMAIL PROTECTED]:~/Desktop> sh /home/roger/Desktop/backup-data.sh >> [EMAIL PROTECTED]:~/Desktop> /home/roger/Desktop/backup-data.sh >> >> None of the above work - what am I overlooking? >> >> Cheers, >> Roger >> >> >> > In what way do they not work: > > * computer crashes > * shell gives an error message > * shell returns with a prompt but no message at all > * disks whirr and lights flash but the backup it not where you expect it > to be > * disks whirr and lights flash but you cannot restore files from the backup > > It is hard to know what is the problem without knowing what actually > happened. > > Stephen > nick's suggestion - "bash ./backup-data.sh" does not work either.
There is no error message given, returns straight away to the command prompt. No hard drive activity. No .tgz file in the expected location. When file is executed via the desktop and mouse click, a .tgz file is created, generates a few seconds of hard drive led activity, file can be viewed in konqueror, contains the directories specified in the backup-data.sh file. So the script itself I conclude is valid, and has (I believe) appropriate permissions and ownership as per "ls -l" above to allow it to run . . .
