-----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 - -----Original Message----- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: RE: backup script On Wed, 2003-04-02 at 09:11, Burke, Thomas G. wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > What do you need to do to run this script, or one like it? I tried > adding a #!/bin/sh to the beginning, but it just chokes. I have > installed perl, but never really used it, so if it's a perl script, > how do I run it? > is it executable? chmod a+x scriptname will make it executable by all users chmod u+x will only allow the owner to run it. Bret - -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.3 iQA/AwUBPos0JNPjBkUEZx5AEQL9rACfU6VXaV5/diifAKcPVc+DMOwKDH8An2pK e3eI7aXUfazfJJpC0QvCs00R =3+YH -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list