Code covered by the BSD License  

Highlights from
spawn

5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 21.86 KB File ID: #341

spawn

by William Glenn

 

21 Mar 2000

SPAWN a child process (console or windows executable).

| Watch this File

File Information
Description

SPAWN Spawn a child process (DOS/WINDOWS)

rval = spawn('child process','arg1','arg2',. .'arg9');

child process - any executable
arg1 . . arg9 - arguments passed to the child process
rval - return value from child process

Description
SPAWN a child process (console or windows executable).

Use this in preference to the DOS() function if you need the return value from the child process. DOS() will always return 0 because it executes the child process via COMMAND.COM

COMMAND.COM returns 0 if it has finished succesfully regardless of the child process return value.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Mar 2005 Zoe Clark  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
spawn William Glenn 22 Oct 2008 06:36:49
tools William Glenn 22 Oct 2008 06:36:49
child William Glenn 22 Oct 2008 06:36:49
process William Glenn 22 Oct 2008 06:36:49
utilities William Glenn 22 Oct 2008 06:36:49

Contact us at files@mathworks.com