public class System extends Object
|Modifier and Type||Method and Description|
Executes an operating system command composed of a command and one or more arguments.
Executes a string as an operating system command.
Waits for a specified number of seconds.
Waits for a specified number of milliseconds.
Each of the
words values is treated as a single
(possibly quoted) word in a shell command.
The first argument is the filename
(either a full pathname, or the name of a file on the current path)
of an executable file.
These values can be numeric, or strings, or something else, and
are converted automatically to string values.
words- one or more words composing a shell command; first is command and others are arguments
exec("process_skycoords.py", RA, DEC),
exec("process_sphericalcoords.sh", RA, DEC, 1.0)
line- command line to execute
exec("do_stuff.py " + RA + " " + DEC)
public static void sleepMillis(int millis)
millis- number of milliseconds to wait
public static void sleep(int secs)
secs- number of seconds to wait
Copyright © 2003-2019 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.