Here's a script that should work for you. The first three fgets commands are just used to get the file pointer to the fourth line in the file. You'll need to modify the fopen command so that it points to the file you are interested in:
Im not sure how this will go.
Does the script run, then when it gets to it grab the information from that file you need? or does it get it at compile time.
I have done things a different way. I used things like
an include file and commands to define things like -
#define CAPFILE "FRI TEST "
Then in the script it gets that and uses it. But I had initially thought it was when the script was running it went and got that info, so I could therefore have one script but change the details in that include file which was happening automatically. But now I realised that dont work.
Is there a way to do this? or can it ONLY ever get the info before its compiled
From that is my only option to get the file to be automatically compiled before ran? can you do this using the compiler at the command prompt ?
Anything that is referenced by #define or #include in a script is linked in at compile time. If you run the .was file when you launch Procomm (I'm assuming this is all done from a command line) instead of the .wax file, then Procomm will compile the .was file and get any changes into the new .wax file, which is then executed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.