help-gnubatch
[Top][All Lists]
Advanced

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

[help-gnubatch] Redirection and output directory


From: Wechsler, Steven
Subject: [help-gnubatch] Redirection and output directory
Date: Wed, 25 Jul 2012 19:02:20 +0000

It appears that the redirection (-I / +input-output) option to gbch-r won’t cause an output directory to get created if none exists. For example, if I do:

 

gbch-r –I ‘>/tmp/foo/bar’

 

if directory ‘foo’ exists then ‘bar’ will be created as an output file; however, if ‘foo’ doesn’t exist, then the job errors. This makes the idea of being able to use backticks in redirection much less useful; you can’t, for example, do:

 

gbch-r –I’>/jobdir/jobname/`date +”%Y/%h/%m”`/jobname.out’

 

because the target directory will never exist.

 

Am I missing something important?

 

Thanks,

 

Steve

 

Steve Wechsler
Senior Database Administrator

Viacom Media Networks

+212 846 5683

 


reply via email to

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