Running Tar from a Shell Script.
Jason Holtzapple
ml at bitflip.net
Tue Jul 27 14:03:10 MST 2010
On 07/27/2010 01:54 PM, keith smith wrote:
> If I create a shell script with two lines, as follows:
>
> #!/bin/bash
>
> /bin/tar -czf /backups/my-backup-$(date +%Y%m%d).tgz /work/dev/
>
>
> I get the following output:
>
> : command not founde 2:
> /bin/tar: Removing leading `/' from member names
> /bin/tar: /work/dev/\r: Cannot stat: No such file or directory
> /bin/tar: Error exit delayed from previous errors
> : command not founde 4:
Just taking a guess from the "\r", but was the script created on a
Windows or Macintosh computer and transferred to the current machine?
Check that it has unix line endings (newline only).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100727/0308b998/attachment.pgp>
More information about the PLUG-discuss
mailing list