I have a cron job that launches a Java program This Java program launches some other programs (Example "YouTube- DL "). Java uses the program process, runtime, etc. ... (using the code found on many web sites) it also processes one. WaitFor (); But the Java program did not wait. The Java program is finished and simultaneously killing the YouTube-DL process (child process).
When a single Java program runs from the command line (not from the cron) runs fine (I can see YouTube - as part of the DL process list) there is a problem in pasting the code. (Due to formatting) the code pasted here
The logs are here ... Tuesday March 17 19:01:06 UTC 2015: youtube-dl is not running Now launching. .. Tuesday Mar 17 19:02:06 UTC 2015: YouTube-DL is not running. Launching Now ... Tuesday, March 17 19:04:58 UTC 2015: YouTube-DL is not running. Now launching ...
cron script youtube-del (but wget Was working fine for a similar script attached) The reason may be because wget was already available in raspbian, where YouTube-DL was manually installed by me.
However wget and simultaneously works well in any script started by the YouTube-DL user, the -dl script failed when triggered by youtube chrome.
How I called YouTube-DL, changed it.
It was before
youtube-dl
Now it is
It works entirely from the cron.
Now, there is no need to launch me. I will make the whole thing shell script from java ...
No comments:
Post a Comment