Excuting a script from a powerhouse program by sourcing it (was: Run command temp.sh)

karen d'souza kaz_dsouza@yahoo.com
Wed, 14 May 2003 21:45:05 -0700 (PDT)


--0-921749664-1052973905=:17649
Content-Type: text/plain; charset=us-ascii

Apologies for the messedup subject, will take care next time onwards.
 
> run command "temp.sh" &

Yes, this will run tem.sh, but the shell does so by forking a new process, due to which my exported variables from temp.sh are lost. I am trying to do `. temp.sh', as I want to execute temp.sh in the _same_ shell. Is there a way I can run temp.sh in the same shell ?
 
Thanks in advance.
 
Karen.


Darren Reely <darren.reely@latticesemi.com> wrote:First, will you _PLEASE_ put proper subject descriptions in you e-mails. 
It is impossible to keep track of your requests.

Here is a sample from my code.

run command "chmod +x temp.sh" on error continue
run command "temp.sh" &
clear lines 20 to 23 &
on error continue response

Notice I have no period & space as your sample does. Perhaps you 
intended your space to be a forward slash?

Darren.
P.S. I'm running Solaris Unix.

karen d'souza wrote:

> 
> I am using
> RUN COMMAND ". temp.sh"
> 
> At run time it throws an error message execution permission denied 
> even after giving all permissions to the file temp.sh.
> 
> I am working on HP-UX.
> 
> Any suggestions
> ------------------------------------------------------------------------
> Do you Yahoo!?
> The New Yahoo! Search 
> - 
> Faster. Easier. Bingo. 





---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
--0-921749664-1052973905=:17649
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>Apologies for the messedup subject, will take care next time onwards.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; run command "temp.sh" &amp;<BR></DIV>
<DIV>Yes, this will run tem.sh, but the shell does so by forking a new process, due to which my exported variables from temp.sh are lost. I am trying to do `. temp.sh', as I want to execute temp.sh in the _same_ shell. Is there a way I can run temp.sh in the same shell ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Karen.</DIV><BR><BR><B><I>Darren Reely &lt;darren.reely@latticesemi.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">First, will you _PLEASE_ put proper subject descriptions in you e-mails. <BR>It is impossible to keep track of your requests.<BR><BR>Here is a sample from my code.<BR><BR>run command "chmod +x temp.sh" on error continue<BR>run command "temp.sh" &amp;<BR>clear lines 20 to 23 &amp;<BR>on error continue response<BR><BR>Notice I have no period &amp; space as your sample does. Perhaps you <BR>intended your space to be a forward slash?<BR><BR>Darren.<BR>P.S. I'm running Solaris Unix.<BR><BR>karen d'souza wrote:<BR><BR>&gt; <BR>&gt; I am using<BR>&gt; RUN COMMAND ". temp.sh"<BR>&gt; <BR>&gt; At run time it throws an error message execution permission denied <BR>&gt; even after giving all permissions to the file temp.sh.<BR>&gt; <BR>&gt; I am working on HP-UX.<BR>&gt; <BR>&gt; Any suggestions<BR>&gt; ------------------------------------------------------------------------<BR>&gt; Do you Yahoo!?<B!
 R>&gt; The New Yahoo! Search <BR>&gt; <HTTP: search.yahoo.com *http: mailsig search us.rd.yahoo.com>- <BR>&gt; Faster. Easier. Bingo. <BR><BR><BR></BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
--0-921749664-1052973905=:17649--