SYSTEM.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." @(#)system.3 6.1 (Berkeley) 5/15/85
  2. ."
  3. .TH SYSTEM 3 "May 15, 1985"
  4. .AT 3
  5. .SH NAME
  6. system - issue a shell command
  7. .SH SYNOPSIS
  8. .nf
  9. .ft B
  10. #include <stdlib.h>
  11. int system(const char *fIstringfP)
  12. .fi
  13. .SH DESCRIPTION
  14. .B System
  15. causes the
  16. .I string
  17. to be given to
  18. .BR  sh (1)
  19. as input as if the string had been typed as a command
  20. at a terminal.
  21. The current process waits until the shell has
  22. completed, then returns the exit status of the shell.
  23. .SH "SEE ALSO"
  24. .BR sh (1),
  25. .BR popen (3),
  26. .BR execve (2),
  27. .BR wait (2).
  28. .SH DIAGNOSTICS
  29. Exit status 127 indicates the shell couldn't be executed.