Skip to content

Commit

Permalink
Minor changes (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarnobat committed Nov 6, 2016
1 parent 7c9535e commit c59425c
Show file tree
Hide file tree
Showing 4 changed files with 1,226 additions and 4 deletions.
1 change: 1 addition & 0 deletions db
2 changes: 1 addition & 1 deletion server.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ public class Yurl {
Process p = new ProcessBuilder()
.directory(file)
.command("echo","hello world")
.command("/bin/sh", "-c", "echo '" + id + ":" + iUrl + "' | tee -a '" + queueFile + "'")
.command("/bin/sh", "-c", "echo '" + id + ":" + iUrl + ":'date +%s` | tee -a '" + queueFile + "'")
//"touch '" + queueFile + "'; echo '" + id + ":" + iUrl + "' >> '" + queueFile + "'"
.inheritIO().start();
p.waitFor();
Expand Down
3 changes: 0 additions & 3 deletions video_download.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ public class VideoDownloadNeo4j {
iVideoUrl)).inheritIO().start();
p.waitFor();
if (p.exitValue() == 0) {
System.out
.println("YurlWorldResource.downloadVideoInSeparateThread() - successfully downloaded "
+ iVideoUrl);
writeSuccessToDb(iVideoUrl);
} else {
System.err
Expand Down
Loading

0 comments on commit c59425c

Please sign in to comment.