Page 1 of 1
Upload Dayfile With .bat file/Windows - How upload On Linux?
Posted: Fri 28 Aug 2015 7:09 pm
by sperry russ
I just discovered an error message while running MX on Linux that it could not upload my dayfile with .bat file. What would be the way to do that on Linux? I did some searching but at the moment don't see a solution.
Thanks.
Re: Upload Dayfile With .bat file/Windows - How upload On Li
Posted: Fri 28 Aug 2015 7:46 pm
by mcrossley
Cumulus can do the upload for you, but if you want to do it from the command line I'd use cURL which I use for moving backup files around.
On my phone at the mo so I don't have the syntax to hand but there is a man page online.
Re: Upload Dayfile With .bat file/Windows - How upload On Li
Posted: Fri 28 Aug 2015 11:37 pm
by sperry russ
On my windows machine that is what I am doing. In the external programs box using the .bat file Cumulus1 uploads the dayfile once a day. And, I could list the dayfile in the uploaded webfiles section of Cumulus1 or CumulusMX but that uploads it every time I update my website, in this case every 15 minutes.
I am checking out cURL. Any other methods available?
Re: Upload Dayfile With .bat file/Windows - How upload On Li
Posted: Sat 29 Aug 2015 6:05 am
by rogerthn
sperry russ wrote:I am checking out cURL. Any other methods available?
I've found lftp very useful
Code: Select all
sudo apt-get update
sudo apt-get install lftp
Re: Upload Dayfile With .bat file/Windows - How upload On Li
Posted: Sat 29 Aug 2015 6:00 pm
by jank
curl -s -m 10 /path/to/source_file ftp://"$FTPHOST":"$FTPPORT""$FTPDIR"/ --user "$FTPUSER":"$FTPPASS"
-s = Silent (not necesarry)
-m 10 = 10 seconds timeout rto upload this file, otherwise FTP upload error
I hope this helps
Jan
Re: Upload Dayfile With .bat file/Windows - How upload On Li
Posted: Mon 31 Aug 2015 7:57 pm
by TgT
Good stuff, last two posts
