summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-13 20:13:29 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-13 20:13:29 +0200
commit53a37441cfa3b79a4387ff47a9c2c39e785e6fc3 (patch)
tree31c08fbf66ab042d87d93ece3ec0aeb482622e9e
parentab5d2e62fb0be9ee962782da4c93839deedcb952 (diff)
print curl output
-rwxr-xr-xdir-to-movie.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/dir-to-movie.pl b/dir-to-movie.pl
index 0e85b73..f97953d 100755
--- a/dir-to-movie.pl
+++ b/dir-to-movie.pl
@@ -75,9 +75,13 @@ for my $line (@lines) {
if (defined $endpoint) {
print("upload to $endpoint\n");
- print("$module $tag $parent_dir/renders/$tag.mp4\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";
+ print $curl . "\n\n";
# system("curl",
# "-X", "POST",