为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:V8
【操作系统】:linux-mint 21
【CPU】:
【问题描述】*:
source /etc/profile
CURRENT_DATE=$(date +'%Y%m%d%H%M%S')
/home/dameng/dmdbms/bin/dexp USERID=SYSDBA/SYSDBA@127.0.0.1:9003 FILE=archive_backup_${CURRENT_DATE}.dmp DIRECTORY=/home/aqie/dexp LOG=archive_${CURRENT_DATE}.log FULL=Y
public static void main(String[] args) throws IOException, InterruptedException {
URL resourceUrl = OtherController.class.getResource("/bin/back.sh");
String scriptPath = resourceUrl.getPath();
System.out.println(scriptPath);
ProcessBuilder processBuilder = new ProcessBuilder("sh", scriptPath);
try {
Process process = processBuilder.start();
} catch (IOException e) {
throw new RuntimeException(e);
}
}