Removing the semi-colon made it work...

Cheers

On Thu, Jul 12, 2012 at 2:28 PM, Ben B. <[email protected]> wrote:

> I believe the semi-colon in "parallel -j+0;" is terminating the
> parallel command then the sh is running as a separate command.
>
> On Thu, Jul 12, 2012 at 2:18 PM, Alex Muir <[email protected]> wrote:
> > Okay so I've now figured out that I need full paths perhaps ... and that
> the
> > single quote I've put around the command are causing the error.
> >
> > However now the {} is not being replaced as a dynamic file name from the
> zip
> > file listing. Although it works if I hardcode the zip file path
> replacing {}
> >
> > ls /mnt/xslt_volume/i4ContentSource/578/*.zip | parallel -j+0; sh
> >
> /mnt/xslt_volume/i4EnrichV4/src/enrich/10k/completeMultiDocumentProcess/processExecution/configuration/run-calabash-withParam.sh
> >
> /mnt/xslt_volume/i4EnrichV4/src/enrich/10k/completeMultiDocumentProcess/processExecution/configuration/Createi4EnrichMarkup-Template-ConvertedToParameterDrivenFile.xpl
> >
> /mnt/xslt_volume/i4EnrichV4/src/enrich/10k/completeMultiDocumentProcess/processExecution/logs/ProcessTestLog.txt
> > {}
> >
> >
> > Any idea why the {} is not dynamically replacing
> > Thanks
> >
> >
> >
> > On Thu, Jul 12, 2012 at 1:02 PM, Alex Muir <[email protected]>
> wrote:
> >>
> >> Hi,
> >>
> >> I've installed parallel today and used the the example command
> effectively
> >>
> >>                 parallel traceroute ::: foss.org.my gnu.org
> >> freenetproject.org
> >>
> >>
> >> However I'm trying to run the following command using parallel passing
> in
> >> the file name. This command works at the command line
> >>
> >> sh configuration/run-calabash-withParam.sh
> >>
> configuration/Createi4EnrichMarkup-Template-ConvertedToParameterDrivenFile.xpl
> >> logs/ProcessTestLog.txt
> >>
> /mnt/xslt_volume/i4ContentSource/578/AgilentTechnologiesInc_CIK0001090872_10312009_12212009_1__CS_H16_T37.zip
> >>
> >>
> >> Running like so for parallel:
> >>  ls /mnt/xslt_volume/i4ContentSource/578/*.zip | parallel -j+0; 'sh
> >> configuration/run-calabash-withParam.sh
> >>
> configuration/Createi4EnrichMarkup-Template-ConvertedToParameterDrivenFile.xpl
> >> logs/ProcessTestLog.txt {}'
> >>
> >>
> >> Which gets a Permission Denied Error and does not run effectively:
> >>
> >> /bin/bash:
> >>
> /mnt/xslt_volume/i4ContentSource/578/AgilentTechnologiesInc_CIK0001090872_10312009_12212009_1__CS_H16_T37.zip:
> >> Permission denied
> >> bash: sh configuration/run-calabash-withParam.sh
> >>
> configuration/Createi4EnrichMarkup-Template-ConvertedToParameterDrivenFile.xpl
> >>
> >>
> >> I'm wondering what I might be doing wrong?
> >>
> >> Regards
> >>
> >>
> >> --
> >> -
> >>
> >> Alex G. Muir
> >> Software Engineering Consultant
> >> Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
> >> African Canadian Fusion: http://bafila.bandcamp.com/
> >>
> >>
> >
> >
> >
> > --
> > -
> >
> > Alex G. Muir
> > Software Engineering Consultant
> > Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
> >
> >
>



-- 
-

Alex G. Muir
Software Engineering Consultant
Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125

Reply via email to