On Fri, 09 Mar 2007 11:30:53 +1300 Roger Searle <[EMAIL PROTECTED]> wrote:
> Steve Holdoway wrote: > > On Fri, 09 Mar 2007 11:02:18 +1300 > > Roger Searle <[EMAIL PROTECTED]> 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 > >> > >> > > what's the output from > > > > sh -x ./backup-data.sh > > > > > > > gemini:/home/roger/Desktop # sh -x ./backup-data.sh > + /bin/bash > and which bash ?? Is it possible just to paste the first 20 lines or so of the script? Just to check, the first line does say #!/bin/bash doesn't it?? Steve
