with import {}; pkgs.writeShellScriptBin "dropfile" '' #!/bin/bash echo dropping files: for f in $@ ; do echo "https://data.tudbut.de/$(basename $f)" done sleep 2 echo "rm $(for f in $@ ; do basename "$f" ; done)" | sftp -P 23 root@tudbut.de:/var/www/html/ ''