Start a new session of GT.M (so that you don't have any routines linked the old way), and modify $zroutines to append an asterisk (in bolded light magenta below) to the object directory from which your routines are executed. If you are using a version of GT.M newer than V6.2-000, the gtmprofile script may already have appended the requisite asterisk. Then execute the “hello” program to make the process link the object code:
gtmuser@gtmworkshop:~$ gtm GTM>write $zroutines /home/gtmuser/.fis-gtm/V6.2-000_x86_64/o(/home/gtmuser/.fis-gtm/V6.2-000_x86_64/r /home/gtmuser/.fis-gtm/r) /usr/ lib/fis-gtm/V6.2-000_x86_64/plugin/o(/usr/lib/fis-gtm/V6.2-000_x86_64/plugin/r) /usr/lib/fis-gtm/V6.2-000_x86_64/ libgtmutil.so /usr/lib/fis-gtm/V6.2-000_x86_64 GTM>set $zroutines=$piece($zroutines,"4/o",1)_"4/o*"_$piece($zroutines,"4/o",2) GTM>write $zroutines /home/gtmuser/.fis-gtm/V6.2-000_x86_64/o*(/home/gtmuser/.fis-gtm/V6.2-000_x86_64/r /home/gtmuser/.fis-gtm/r) /usr /lib/fis-gtm/V6.2-000_x86_64/plugin/o(/usr/lib/fis-gtm/V6.2-000_x86_64/plugin/r) /usr/lib/fis-gtm/V6.2-000_x86_64 /libgtmutil.so /usr/lib/fis-gtm/V6.2-000_x86_64 GTM>do ^hello Aloha, world GTM>
In different GT.M process in a different shell session, after appending the asterisk to the object directory, modify the “hello” program to say “Aloha, Universe”. Note the use of the environment variable gtm_prompt to differentiate it from the original session. After editing it, run the routine, which will compile the new version. They use the ZRUPDATE command to publish the new object file:
GTM2>set $zroutines=$piece($zroutines,"4/o",1)_"4/o*"_$piece($zroutines,"4/o",2) GTM2>zedit "hello" ; modify it to print Aloha, universe GTM2>do ^hello ; this ensures that the new version is compiled Aloha, universe GTM2>zrupdate $piece($zroutines,"*",1)_"/hello.o" ; publish the object code GTM2>
In the original session, again run the hello program, and notice that even without an explicit zlink, it has the latest version of the program:
GTM>do ^hello Aloha, universe GTM>
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- GT.M - Rock solid. Lightning fast. Secure. No compromises.
An explicit ZLINK from an auto-relink directory acts as an implicit ZRUPDATE.
-- -- https://urldefense.proofpoint.com/v2/url?u=http-3A__groups.google.com_group_Hardhats&d=AAIFaQ&c=3BfiSO86x5iKjpl2b39jud9R1NrKYqPq2js90dwBswk&r=fPojGngvZ3LwSfrzvtaePFZUre8l_YiAGto-O_dj8Rs&m=EmAeHhlev0PqEAMEpGMAWWWe6vNBZ9-WfgNOUhorrfc&s=heIRQKdX8g-lIDNmUj1JS4fNFJ2ZntUEmPdIqnxaRhI&e= To unsubscribe, send email to Hardhats+u...@googlegroups.com
--- You received this message because you are subscribed to the Google Groups "Hardhats" group. To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com
. For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=AAIFaQ&c=3BfiSO86x5iKjpl2b39jud9R1NrKYqPq2js90dwBswk&r=fPojGngvZ3LwSfrzvtaePFZUre8l_YiAGto-O_dj8Rs&m=EmAeHhlev0PqEAMEpGMAWWWe6vNBZ9-WfgNOUhorrfc&s=kXVgQwhmKGsoxw_R6RbEBGlWhduJQ-Brb4a0Q5M437k&e= . -- GT.M - Rock solid. Lightning fast. Secure. No compromises. _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.-- -- https://urldefense.proofpoint.com/v2/url?u=http-3A__groups.google.com_group_Hardhats&d=AAIFaQ&c=3BfiSO86x5iKjpl2b39jud9R1NrKYqPq2js90dwBswk&r=fPojGngvZ3LwSfrzvtaePFZUre8l_YiAGto-O_dj8Rs&m=EmAeHhlev0PqEAMEpGMAWWWe6vNBZ9-WfgNOUhorrfc&s=heIRQKdX8g-lIDNmUj1JS4fNFJ2ZntUEmPdIqnxaRhI&e= To unsubscribe, send email to Hardhats+u...@googlegroups.com
--- You received this message because you are subscribed to the Google Groups "Hardhats" group. To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com
. For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=AAIFaQ&c=3BfiSO86x5iKjpl2b39jud9R1NrKYqPq2js90dwBswk&r=fPojGngvZ3LwSfrzvtaePFZUre8l_YiAGto-O_dj8Rs&m=EmAeHhlev0PqEAMEpGMAWWWe6vNBZ9-WfgNOUhorrfc&s=kXVgQwhmKGsoxw_R6RbEBGlWhduJQ-Brb4a0Q5M437k&e= . -- GT.M - Rock solid. Lightning fast. Secure. No compromises. _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. -- -- https://urldefense.proofpoint.com/v2/url?u=http-3A__groups.google.com_group_Hardhats&d=AAIFaQ&c=3BfiSO86x5iKjpl2b39jud9R1NrKYqPq2js90dwBswk&r=fPojGngvZ3LwSfrzvtaePFZUre8l_YiAGto-O_dj8Rs&m=EmAeHhlev0PqEAMEpGMAWWWe6vNBZ9-WfgNOUhorrfc&s=heIRQKdX8g-lIDNmUj1JS4fNFJ2ZntUEmPdIqnxaRhI&e= To unsubscribe, send email to Hardhats+u...@googlegroups.com
--- You received this message because you are subscribed to the Google Groups "Hardhats" group. To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.