The springboot project needs to execute linux commands to execute dataX programs
the initial code is:
String[] cmdArr = {"cd","/home/datax/bin/"};
The correct should be:
String[] cmdArr = {"/bin/sh", "-c", "cd","/home/datax/bin/"};
Read More:
- The first time I write OpenGL program, what should I do when I encounter “can’t open include file:” GL / glaux. H “: no such file or directory”?
- Error: ENOENT: no such file or directory, open ‘E:\Program Files\nodejs\tmp\upload_38b32f25bc984333c
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- Error “/run/lvm/lvmetad.socket: connect failed: No such file or directory” – but not Grub related
- nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
- nginx: open() “/var/run/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- When Python Django creates a database, can’t open file ‘ manage.py ‘: [Errno 2] No such file or directory
- fatal error: Python.h: No such file or directory compilation terminated.
- ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
- Failed to get D-Bus connection: No such file or directory
- No such file or directory error when redis is started under Windows
- sh: 0: getcwd() failed: No such file or directory
- gcc: error trying to exec ‘cc1‘: execvp: No such file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- Ubuntu 64 prompts bash: no such file or directory file exists