summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-13 20:15:08 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-13 20:15:08 +0200
commita064dfa16bb9ea9ede32d435a5f9de0facf7156c (patch)
tree612f3cf3de3adfbbf5fa0303f6ac7f97699394ff
parent53a37441cfa3b79a4387ff47a9c2c39e785e6fc3 (diff)
print curl output
-rwxr-xr-xdir-to-movie.pl28
1 files changed, 10 insertions, 18 deletions
diff --git a/dir-to-movie.pl b/dir-to-movie.pl
index f97953d..b109415 100755
--- a/dir-to-movie.pl
+++ b/dir-to-movie.pl
@@ -75,24 +75,16 @@ for my $line (@lines) {
if (defined $endpoint) {
print("upload to $endpoint\n");
- print("$module $tag $parent_dir/renders/$tag.mp4\n\n");
- my $curl_cmd = "curl -X POST -F module=$module -F activity=live -F generated=true -F dataset=$tag -F datatype=video -F file=@$parent_dir/renders/$tag.mp4 $endpoint";
- print `pwd` . "\n";
- print $curl_cmd . "\n\n";
-
- my $curl = `curl -X POST -F module=$module -F activity=live -F generated=true -F dataset=$tag -F datatype=video -F file=@$parent_dir/renders/$tag.mp4 $endpoint`;
- print $curl . "\n\n";
-
- # system("curl",
- # "-X", "POST",
- # "-F", "module=$module",
- # "-F", "activity=live",
- # "-F", "generated=true",
- # "-F", "dataset=$tag",
- # "-F", "datatype=video",
- # "-F", "file=@$parent_dir/renders/$tag.mp4",
- # $endpoint
- # );
+ system("curl",
+ "-X", "POST",
+ "-F", "module=$module",
+ "-F", "activity=live",
+ "-F", "generated=true",
+ "-F", "dataset=$tag",
+ "-F", "datatype=video",
+ "-F", "file=\@$parent_dir/renders/$tag.mp4",
+ $endpoint
+ );
}
print "rendered: $tag.mp4\n";