Michael Leone on 13 Mar 2012 08:31:19 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Need some script advice


Ratz! A typo ..

>        /bin/cp /VendorInvoices/*.zip /VendorInvoicesArchive/
>        ZipFileName=$(/bin/ls -A /VendorInvoicesArchive/)"

is wrong. I have:

        /bin/cp /VendorInvoices/*.zip /VendorInvoicesArchive/
        ZipFileName=$(/bin/ls -A $TREE)"

This way I am saving the filename that is in the working directory
(/VendorInvoices). There are lots of zip files in the archive folder
(/VendorInvoicesArchive).
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug