]> git.scottworley.com Git - picsort/commitdiff
SSH connect timeout.
authorScott Worley <scottworley@scottworley.com>
Mon, 25 May 2015 03:40:26 +0000 (20:40 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 25 May 2015 03:40:26 +0000 (20:40 -0700)
slurp-pics

index 9602c3f4b7b20d54d6f81c174edc386d752d74b1..68a2b126e69e9e24f5d671fc745863f1c0c8650c 100755 (executable)
@@ -6,7 +6,7 @@ while read host path;do
   {
     mkdir -p "$outdir" "$seendir/$outdir"
     echo "cd $path"
   {
     mkdir -p "$outdir" "$seendir/$outdir"
     echo "cd $path"
-    sftp -v -P 19362 -i .slurp-key "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
+    sftp -v -P 19362 -i .slurp-key -oConnectTimeout=4 "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
       sed 1,2d |
       while read filename;do
         output_filename="$outdir/${filename/jpg/jpeg}"
       sed 1,2d |
       while read filename;do
         output_filename="$outdir/${filename/jpg/jpeg}"