Michael Leone on 13 Mar 2012 10:29:12 -0700


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

Re: [PLUG] Need some script advice


On Tue, Mar 13, 2012 at 12:20 PM, Sam Gleske <sam.mxracer@gmail.com> wrote:
> On Tue, Mar 13, 2012 at 12:14 PM, Sam Gleske <sam.mxracer@gmail.com> wrote:
>> Michael Leone,
>> I added the functionality you desire and cleaned up your script a
>> little bit.  I implemented my own recommendations.  Here's the
>> script...
>>
>> http://pastebin.com/CegHSTPi
>>
>> Is it your intention to _not_ clean up /VendorInvoices at all with
>> exception to moving the zip file to the archive or is your script
>> supposed to delete all the invoices in /VendorInvoices when the
>> command is successfully run?
>>
>> SAM
>
> Made a few corrections to my script.  Also the original awk script you
> emailed did not work so I rewrote it with what I think you intended.
>
> http://pastebin.com/HmBUfUsq

Thanks. You mention that:
#you don't need to specify paths for binaries since you include them
in this $PATH variable.

I explicitly specify the paths, since the script ordinarily executes from cron.
___________________________________________________________________________
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