[Swift-user] Question: Setting environment variables
Michael Wilde
wilde at mcs.anl.gov
Fri May 28 12:39:57 CDT 2010
----- "Taleena R Sines" <trsines0 at frostburg.edu> wrote:
> What needs to be entered in the data file and what needs to be entered
> in the actual script?
>
> Thank you, I will post to the list
Lets say you want to invoke the program "myprog" from a Swift script.
You write an "app" function called myprog() in the .swift file, and in tc.data you add entries to specify the pathname of that program on each "site" (e.g., cluster) that you want to compute on.
This is described in the Swift Tutorial, in sec 3.2, Adding Another Application:
http://www.ci.uchicago.edu/swift/guides/tutorial.php#id2884021
- Mike
>
> Taleena R. Sines
> Major: Computer Science
>
>
>
> -----Original Message-----
> From: Michael Wilde [ mailto:wilde at mcs.anl.gov ]
> Sent: Fri 5/28/2010 1:04 PM
> To: Taleena R Sines
> Cc: Swift User
> Subject: Re: [Swift-user] Question: Setting environment variables
>
> Did you make sure that all the fields are separated by a tab
> character, not spaces?
> If that was not the cause, I'll need to double-check and test my
> syntax.
>
> (please send all your replies back to the swift-user list).
>
> - Mike
>
>
> ----- "Taleena R Sines" <trsines0 at frostburg.edu> wrote:
>
> > I inserted that line and it is giving me the error:
> > unexpected token: /
> >
> >
> > Taleena R. Sines
> > Major: Computer Science
> >
> >
> >
> > -----Original Message-----
> > From: Michael Wilde [ mailto:wilde at mcs.anl.gov ]
> > Sent: Fri 5/28/2010 12:48 PM
> > To: Taleena R Sines
> > Cc: Swift User
> > Subject: Re: [Swift-user] Question: Setting environment variables
> >
> > For:
> >
> > setenv CODE_HOME /trsines/code/my_code
> >
> > the example:
> >
> > localhost myapp /usr/bin/env none none ENV::myenvvar="something";
> >
> > would become:
> >
> > localhost myapp /usr/bin/env none none ENV::CODE_HOME
> > ="/trsines/code/my_code";
> >
> > - Mike
> >
> > ----- "Taleena R Sines" <trsines0 at frostburg.edu> wrote:
> >
> > > If my code in c-script is :
> > > setenv CODE_HOME /trsines/code/my_code
> > >
> > > What would actually be typed in the swift-script in place of that?
> > > thank you
> > >
> > > T. R. Sines
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: wilde at mcs.anl.gov [ mailto:wilde at mcs.anl.gov ]
> > > Sent: Fri 5/28/2010 12:15 PM
> > > To: Taleena R Sines
> > > Cc: swift-user at ci.uchicago.edu
> > > Subject: Re: [Swift-user] Question: Setting environment variables
> > >
> > > Taleena,
> > >
> > > You set env vars for a given app in the tc.data file using an "Env
> > > profile":
> > >
> > > http://www.ci.uchicago.edu/swift/guides/userguide.php#profile.env
> > >
> > > For example:
> > >
> > > localhost myapp /usr/bin/env none none ENV::myenvvar="something";
> > >
> > > Thats not real clear in the User Guide - we will fix that.
> > >
> > > - Mike
> > >
> > >
> > > ----- "Taleena R Sines" <trsines0 at frostburg.edu> wrote:
> > >
> > > > Hello,
> > > > In swift, how would I set an environment variable?
> > > > For example, in a c-script:
> > > > setenv WKDIR /user/bin
> > > >
> > > > would translate to swift how?
> > > > Thank you
> > > >
> > > > T. R. Sines
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Swift-user mailing list
> > > > Swift-user at ci.uchicago.edu
> > > > http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
> > >
> > > --
> > > Michael Wilde
> > > Computation Institute, University of Chicago
> > > Mathematics and Computer Science Division
> > > Argonne National Laboratory
> >
> > --
> > Michael Wilde
> > Computation Institute, University of Chicago
> > Mathematics and Computer Science Division
> > Argonne National Laboratory
>
> --
> Michael Wilde
> Computation Institute, University of Chicago
> Mathematics and Computer Science Division
> Argonne National Laboratory
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
More information about the Swift-user
mailing list