exec
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    > BEE Syntax
    v BEE Commands
       > Variable Operations
       > Conditional
       > Loop
       v Module Calling
          o function
          o return
          o global
          o parent
          o include
          o exec
          o exit
       > Remote Calling
       > Authentication
       > Data Access
       > Socket
       > Special Functions
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Commands >> Module Calling >> exec <=  =>      <  1  >  
exec – execute a system program

BEE Script:   exec prog [args=var] [istream=var] [ostream=var];

 

BEE Tag:     <beeexec prog [args=var] [istream=var] [ostream=var]>

 

The "exec" command executes a program in the operating system.  In fact, the name prog is merely a "stub" to invoke the necessary system commands to do the job.  This "stub" needs to be installed by the BEE Administrator and is assigned with proper permission, ownership and CROFT mapping.

Parameters

args is a variable that contains an array of command line arguments to be included when executing the specified file.

istream is a variable that contains an array of input passed as the input stream of the program to be executed.  Each element in the istream array represents a line in the input stream.

ostream is a variable that contains an array of output passed out from the output stream of the program after being executed. Each element in the ostream array represents a line in the output stream.

After calling the function, the following BEE Variables are made available:

status%exec

The status code returned by the program after being executed.

message%exec

The last line in the ostream.  This is useful for programs returning only one line.  ("ostream" is usually used when the program returns multiple lines.)

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd