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> </DIV>
<DIV>> run command "temp.sh" &<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> </DIV>
<DIV>Thanks in advance.</DIV>
<DIV> </DIV>
<DIV>Karen.</DIV><BR><BR><B><I>Darren Reely <darren.reely@latticesemi.com></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" &<BR>clear lines 20 to 23 &<BR>on error continue response<BR><BR>Notice I have no period & 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>> <BR>> I am using<BR>> RUN COMMAND ". temp.sh"<BR>> <BR>> At run time it throws an error message execution permission denied <BR>> even after giving all permissions to the file temp.sh.<BR>> <BR>> I am working on HP-UX.<BR>> <BR>> Any suggestions<BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<B!
R>> The New Yahoo! Search <BR>> <HTTP: search.yahoo.com *http: mailsig search us.rd.yahoo.com>- <BR>> 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--