Permalink
Browse files

Script to keep Ubuntu's FTP sessions open

  • Loading branch information...
1 parent 50e4d3c commit f9cb469307e961d090dea16953c47d43413ee7fb @dave1010 committed Jun 3, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 keep-alive-ftp.sh
View
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Ubuntu closes FTP connections after a few idle minutes
+# This script keeps all mounted FTP connections alive
+
+while true
+do
+ ls ~/.gvfs/FTP* &> /dev/null
+ sleep 60
+done

0 comments on commit f9cb469

Please sign in to comment.