[Swift-user] env.HOME in sites file not working

Ketan Maheshwari ketan at mcs.anl.gov
Thu Dec 11 12:31:28 CST 2014


Thanks Mihael! I will use {user.home}, I remember to have seen {env.HOME}
being used in sites file in the past. A quick look in the SwiftApps svn
repo yields this:

$ find . -iname "*.xml" -exec grep 'env.HOME' {} \; -print
      <workdirectory>{env.HOME}/swiftwork</workdirectory>
./Scattering/paintgrid/beagle.xml
      <workdirectory>{env.HOME}/swiftwork</workdirectory>
    <workdirectory>{env.HOME}/swiftwork</workdirectory>
./Scattering/paintgrid/orthros.xml
      <workdirectory>{env.HOME}/swiftwork</workdirectory>
      <workdirectory>{env.HOME}/swiftwork</workdirectory>
./Scattering/paintgrid/sites.xml

Thanks,
Ketan

On Thu, Dec 11, 2014 at 12:17 PM, Mihael Hategan <hategan at mcs.anl.gov>
wrote:
>
> That said, if you replace {env.HOME} with {user.home}, it should work.
>
> Mihael
>
> On Thu, 2014-12-11 at 10:08 -0800, Mihael Hategan wrote:
> > Right. My bad. I don't think {env.XYZ} is something that is supported in
> > sites files. Substitution works only for java system properties (e.g.
> > {user.home}). Where did you see {env.XYZ}?
> >
> > Mihael
> >
> > On Thu, 2014-12-11 at 11:59 -0600, Ketan Maheshwari wrote:
> > > Mihael,
> > >
> > > I updated Swift to:
> > > Swift 0.95 swift-r8326 cog-r4045
> > >
> > > It still does not seem to work. The rundir is attached.
> > >
> > > Thanks,
> > > Ketan
> > >
> > > On Wed, Dec 10, 2014 at 8:49 PM, Mihael Hategan <hategan at mcs.anl.gov>
> wrote:
> > > >
> > > > Variable substitution was done only in attributes but not in xml text
> > > > nodes. This should now be fixed in 0.95 swift r8324.
> > > >
> > > > Mihael
> > > >
> > > > On Wed, 2014-12-10 at 18:52 -0600, Ketan Maheshwari wrote:
> > > > > Hi,
> > > > >
> > > > > Running 0.95 swift-r8301 cog-r4045, the Swift run crashes when
> trying to
> > > > > set workdirectory to {env.HOME}/swiftwork but works if set with
> constant
> > > > > path.
> > > > >
> > > > > The error message is:
> > > > >
> > > > > Execution failed:
> > > > > Exception in dsp:
> > > > >     Arguments: [-f,
> > > > >
> __root__/lcrc/project/NEXTGENOPT/DSP_old/examples/smps/dcap/dcap243_200,
> > > > > -a, 1, -n, 1, -p, 1, -I, 10]
> > > > >     Host: localblues
> > > > >     Directory: dsp.blues-run001/jobs/j/dsp-j4e17i1m
> > > > > exception @ swift-int.k, line: 530
> > > > > Caused by: null
> > > > > Caused by:
> org.globus.cog.abstraction.impl.common.execution.JobException:
> > > > > Job failed with an exit code of 127
> > > > >
> > > > > Attached are two identical runs: run001.tgz which failed and
> run002.tgz
> > > > > which worked.
> > > > >
> > > > > How can I make it work so that the Swift workdir us not hardcoded?
> > > > >
> > > > > Thanks,
> > > > > Ketan
> > > > > _______________________________________________
> > > > > Swift-user mailing list
> > > > > Swift-user at ci.uchicago.edu
> > > > > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
> > > >
> > > >
> > > > _______________________________________________
> > > > Swift-user mailing list
> > > > Swift-user at ci.uchicago.edu
> > > > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
> > > >
> >
> >
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20141211/048202dc/attachment.html>


More information about the Swift-user mailing list