how to get files as they are added to a remote server
Posted
by Jordan
on Stack Overflow
See other posts from Stack Overflow
or by Jordan
Published on 2010-06-17T15:40:25Z
Indexed on
2010/06/17
15:43 UTC
Read the original article
Hit count: 218
I am using a bash script (below) on a remote server (so far using ssh to connect) to execute a python script that downloads a lot of pdf files one at a time (getting the download locations from a text file with the URL's) in a loop.
I would like to move the files from the remote server to my local computer as they are downloaded, and then delete the file from the remote server. Is there a way that I can expand my bash script to do this? Or are there alternatives for completing this task?
while read line; do python python_script.py -l $line; done < pdfURLs.txt
© Stack Overflow or respective owner