Neil Schellenberger(deleted)
|
|
Neil Schellenberger(deleted)
08/24/2009 11:46 AM
post36531
|
On Fri, 2009-08-21 at 18:42 -0400, Mario Charest wrote:
>
> > -----Original Message-----
> > From: Sean Boudreau [mailto:community-noreply@qnx.com]
> > Sent: Friday, August 21, 2009 6:35 PM
> > To: ostech-core_os
> > Subject: Re: More shell challenge
> >
> > On Fri, Aug 21, 2009 at 06:30:45PM -0400, Mario Charest wrote:
> > >
> > >
> > > OUTPUT="PROF=/dev/shmem/qprof"
> > > $OUTPUT pterm program
> > >
> > > This doesn't work as the shell will try to launch $OUTPUT which
> > obviously doesnt work. I want it to just like if it would be:
> > >
> > > PROF=/dev/shmem/qprof pterm <program>
> > >
> > > Any idea how to achieve this. Can't use extern. The goal is for
> > <program> to have PROF set accordingly. I understand pterm would also
> > get the variable but that's a non issue.
> > >
> > > If pterm could support pterm PROF=... <program> that would have
> > solved my problem ;-)
> >
> > Can you use the 'env' utility?
Also, in situations where env is inappropriate, you can often use the
'eval' shell built-in, which is useful for running constructed commands.
|
|
|