summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules on spawn <spawn@cortex>2018-04-13 12:03:49 +0200
committerjules on spawn <spawn@cortex>2018-04-13 12:03:49 +0200
commit48d9f2e2398014d39f818542795a4e176d5207a6 (patch)
tree8d61b2b1d2ac5f261761704b60dbfd6e1c21f9d1
parentd9f28aa4b5c538468f8b3b8cf39189afc3d13ca5 (diff)
get script in root dir
-rwxr-xr-xget.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/get.pl b/get.pl
new file mode 100755
index 0000000..4447ab3
--- /dev/null
+++ b/get.pl
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+$SIG{TERM} = $SIG{INT} = sub { exit 1 };
+
+chdir('datasets');
+
+foreach (@ARGV){
+ my $s = $_;
+ if ($s !~/\..*$/) { $s .= ".wav"; }
+ system('/usr/bin/wget', 'https://neural:spawn5@asdf.us/neural/' . $s);
+ system('/usr/bin/perl', 'dataset.pl', $s);
+}
+
+END {
+ chdir('..');
+}
+