contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
System-calls  
Related Concepts  

Introduction

In this example, an editing session is called with the name of the file to edit. After the system-call is made, a check for a negative value is made, which presumably means that the editor, "sled", could not be found. Note that because the system-call is made from a condition, it occurs before the output action actually takes place.



Sample

  find "\input{" [any except "}"]+ => file-name "}"
    output "couldn't start the sled editor%n"
          when system-call "sled %x(file-name)" < 0

Related Concepts  
   OmniMark: running other programs from
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:46 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.