help-gnubatch
[Top][All Lists]
Advanced

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

Re: [help-gnubatch] Any way to vary output directory


From: John Collins (Xi Software Ltd)
Subject: Re: [help-gnubatch] Any way to vary output directory
Date: Fri, 13 Apr 2012 21:33:23 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20

On 13/04/12 21:09, Reuti wrote:
Am 13.04.2012 um 18:02 schrieb Wechsler, Steven:

I’d like to have my job’s output sent to a directory named something like:
 
/opt/jobs/output/jobname/year/month/day
I would say it should work according to the documentation of Meta-Data on page 49 of the Reference Manual, but it doesn't:

$ gbch-r -I '>`date +/tmp/%Y/%m/%d/`%d1' test.sh

The part `date +/tmp/%Y/%m/%d/` should be computed at runtime, but instead it tries to write to:

Cannot open file `date +/tmp/%Y/%m/%d/`24830 - No such file or directory

-- Reuti

NB: The directory structure I also created beforehand, I also tried to use %% which is correctly replaced by a single % by gnubatch.


Any way to do this with +input-output? If not, could we make it a feature request for the new version?
 
Thanks,
 
Steve
 
Steve Wechsler
Senior Database Administrator
Viacom Media Networks
+212 846 5683
 


That's funny it always used to work I must have broken it somehow.

--
John Collins address@hidden Xi Software Ltd www.xisl.com

Phone: +44 (0)1707 886110 Home Phone: +44 (0)1707 883174
Mobile: +44 (0)7958 387247 (address@hidden)

Trading Address 3 Mandeville Rise, Welwyn Garden City, Herts, AL8 7JT, UK

Registered in England Company Number 01977148 VAT GB 403 9239 64 R/O: 2 Mill Road, Haverhill, Suffolk, CB9 8BD

reply via email to

[Prev in Thread] Current Thread [Next in Thread]