3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author Asger Alstrup
8 * Interface cleaned up by
9 * \author Angus Leeming <a.leeming@ic.ac.uk>
11 * Class Systemcalls uses "system" to launch the child process.
12 * The user can choose to wait or not wait for the process to complete, but no
13 * callback is invoked upon completion of the child.
15 * The child process is not killed when the Systemcall instance goes out of
22 #pragma implementation
28 Systemcalls::Systemcalls(Starttype how, string const & what)
30 startscript(how, what);
35 int Systemcalls::startscript(Starttype how, string const & what)
37 string command = what;
39 if (how == DontWait) {
40 if (os::shell() == os::UNIX) {
43 command = "start /min/n " + command;
47 return ::system(command.c_str());