-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 3 Apr 2003 05:22:25 -0800, Burke, Thomas G. wrote:
> if I put in the #!/bin/sh, I just get the following: > > bash: ./backup: No such file or directory > > ugh. I don't get it. I've seen this problem when things have the > wrong style of quote before, but I don't see that as a problem > here... or is it? > > On Wed, 2003-04-02 at 13:04, Burke, Thomas G. wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Here's the error when I run the script as is: > > > > [EMAIL PROTECTED] /backup]# ./backup > > : command not found > > : No such file or directory > > : command not found > > ./backup: ./backup: line 7: syntax error: unexpected end of file > > > > Here's the script: > > > > BACKUP_DIRECTORY=/backup/tomii > > SOURCE_DIRECTORY=/ > > > > cd $SOURCE_DIRECTORY > > > > for i in * ; do tar -zcvf "$BACKUP_DIRECTORY/$i.tgz" $i ; done > > > > > > I don't see anything wrong with this except we don't know what shell > it is running in. I usually put #!/bin/bash as the first line. Try running it through dos2unix. It smells a bit like you have created it with a Windows machine and it contains wrong line delimiters. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+jD2i0iMVcrivHFQRAnLFAJ9ynBazAigW8sSMYK75iOuFBXpx+QCfXYjT TiicgzaCyfKvAJeUVXL+l7E= =25Eg -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list