[BUSH User Guide]
 
Home Page Introduction Tutorials Reference Packages Hacking
 
  Packages  
4.1 Using Packages
4.2 text_io (Console I/O)
4.3 text_io (File I/O)
4.4 sound
4.5 source_info
4.6 System
4.7 numerics
4.8 strings
4.9 command_line
4.10 lock_files
4.11 cgi
4.12 calendar
4.13 units
4.14 arrays
4.15 files
4.16 db (Database)
4.17 stats
4.18 pen
4.19 mysql
4.20 os
4.21 directory_operations
 
This part of the guide contains detailed descriptions of the BUSH built-in packages.
 

4.20 OS Package

The BUSH OS package contains miscellaneous operating system routines.


os.system( s )

Run an operating system command in the default shell. This is the same as the C system() function. Use os.status to determine the exit status.
Example: os.system( "ls" );
Ada Equivalent: none (AdaScript extension)
Parameters:
s in string required the sound shell command to execute


i := os.status

Return the the least operating system exit status. (To set the exit status, use command_line.set_exit_status.)
Example: if os.status /= 0 then put_line( standard_error, "error!" ); end if;
Ada Equivalent: none (AdaScript extension)
Parameters: