Publish without FTP

I’m not sure the dropbox solution is what I (we) need.

What I’m trying to achieve is transfer to a server without ftp, as ftp is quickly becoming deprecated because of security issues.

In terms of protocol, I’m sure many would be happy with scp.

In note that there is and option to ‘windows application’

if I put in notepad.exe it fires up notepad with html in it

If you have a windows application is there a way of specifying the (temp?) local file

e.g.

myspecial.exe %1 user@server:/remote

where (for example) %1 is the place holder for the generated html

Is the intention that there is a Dropbox process on the PC that
automatically transfers all files in the Results folder on the PC
to the corresponding Results folder on the Dropbox server. ?

Then your Sailing server is linked to that folder on Dropbox.

···
regards,
Malcolm Osborne
Rondevlei South Africa
  On 2016-08-30 00:05, [sailwave] wrote:

I’m not sure the dropbox solution is what I (we) need.

          What I'm trying to achieve is transfer to a server

without ftp, as ftp is quickly becoming deprecated because
of security issues.

          In terms of protocol, I'm sure many would be happy with

scp.

          In note that there is and option to 'windows

application’

          if I put in notepad.exe  it fires up notepad with html

in it

          If you have a windows application  is there a way of

specifying the (temp?) local file

e.g.

myspecial.exe %1 user@server:/remote

          where (for example) %1 is the place holder for the

generated html


Virus-free. www.avast.comalan@sailfun.co.uk

That wasn’t what what was described.

Of course that can be done with linux headless dropbox sync. It isn’t that hard, but if I need to install software, as my servers are already in the Googel cloud I’d prefer to use google technology.

It is simple enough to transfer a file at command line from a PC to a Google Compute Engine server, th issue is triggering the right PC command

[gcloud compute copy-files](https://cloud.google.com/sdk/gcloud/reference/compute/copy-files) ~/LOCAL-FILE-1 example-instance:~/REMOTE-DIR ``All I need is Sailwave to be able to write the command line with a temp file in the right place, when publishing to 'an installed application'

A generic solution like that could be used by winscp command line, gcloud command line or any other command line app

In the end it is rather easy when you know how.

Install WinSCP

Set up your public/private key pairs using putty gen in the normal way

create a script that is run at startup that uses ‘keepuptodate’ e.g.

open scp://myuser@myserver.uk/ -passphrase=mypassphrase -privatekey=“c:\Users\person\directory\key.ppk”

keepuptodate c:\Users\person/directory/results /home/person/results/

Only took all afternoon to whittle down the options

Alan,

The idea of using Dropbox links is that you don’t transmit anything to the server at all, other than the link. So you just edit your web page in the usual way, add the link and you’re done. No upload.

You do have to pick up the link from Dropbox at the outset, but that’s usually way easier than a server file upload. Say goodbye to FTP (assuming you’re using some other method of keeping your web pages current.)

jrc

···

On Aug 29, 2016 3:05 PM, “alan@sailfun.co.uk [sailwave]” sailwave@yahoogroups.com wrote:

I’m not sure the dropbox solution is what I (we) need.

What I’m trying to achieve is transfer to a server without ftp, as ftp is quickly becoming deprecated because of security issues.

In terms of protocol, I’m sure many would be happy with scp.

In note that there is and option to ‘windows application’

if I put in notepad.exe it fires up notepad with html in it

If you have a windows application is there a way of specifying the (temp?) local file

e.g.

myspecial.exe %1 user@server:/remote

where (for example) %1 is the place holder for the generated html

Thats fine it that is what you want to do, but I want to have the results integrated to the website with navigation etc, to achieve that I upload the html to the server and then extract the content in the and inject that into the web page.

I believe that there are several others doing similar and even a Joomla plugin (I use WordPress for our site) to do similar manipulation.

Hi Alan,

I understand that you are thinking of transferring the files to your server, but with the Dropbox solution there is no need to transfer the files. All you need on the server is a link to the file and this link can be setup before the results are published. You may want to put a file there with html content that tells anyone that accesses it that results haven’t been published yet rather than getting an error 404.

So all the scorer does it publish to a file on their PC - Dropbox will then automatically upload it to the cloud and as your server has a link to this then user will be able to view them instantly. No ftp or scp required !!

Going back to the Publish to Application

The application you specify will be opened with a parameter on its command line of a temporary file containing the html that you publish. So this is doing what you want as I understand. You can make it do anything you want - Transfer via scp if want perhaps with a python or similar script

Jon

···

On 29 August 2016 at 23:05, alan@sailfun.co.uk [sailwave] sailwave@yahoogroups.com wrote:

I’m not sure the dropbox solution is what I (we) need.

What I’m trying to achieve is transfer to a server without ftp, as ftp is quickly becoming deprecated because of security issues.

In terms of protocol, I’m sure many would be happy with scp.

In note that there is and option to ‘windows application’

if I put in notepad.exe it fires up notepad with html in it

If you have a windows application is there a way of specifying the (temp?) local file

e.g.

myspecial.exe %1 user@server:/remote

where (for example) %1 is the place holder for the generated html

Jon Eskdale
07530 112233

Skype “eskdale”

As mentioned, the dropbox solution doesn’t really cater for tighter integration to the website, like generation of navigation menus based on series titles etc and extracting the body. Of course dropbox could be used as an intermediate stageing in that process but is an unnecessary step.

I did assume that perhaps the ‘application’ option might add a temporary file and I did investigate that but for some reason couldn’t get the filename as an input parameter, it might have been because I need to send two parameters, destination filename and the temp file. Clearly that would be the simplest solution to call an application to do the transfer.

e.g. myapp.cmd /path/dest ( and implied temp file as the second parameter

whrere myapp.cmd contains something like

winscp.com /command "open scp://user:password@example.com/" "put %2% %1%" "exit"

Yes - WinSCP scrpt works fins as a windows application

write a .cmd to run the WinSCP.com with a simple put script

Any one need this I’ll share somewhere

yes that would be awesome – not great at scripting so any help / instructions are highly appreciated !

Cheers,

Markus

···

Von: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]
Gesendet: Mittwoch, 31. August 2016 12:32
An: sailwave@yahoogroups.com
Betreff: [sailwave] Re: Publish without FTP

Yes - WinSCP scrpt works fins as a windows application

write a .cmd to run the WinSCP.com with a simple put script

Any one need this I’ll share somewhere



Avast logo

Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.

www.avast.com

Yes please, I’d love to be able to try it. Wish I’d thought of it before !

Peter

OK I’ll write up a blog post ‘how to’ scp/sftp and publish teh link back here when I have done so

awesome thanks so much !

···

Von: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]
Gesendet: Donnerstag, 1. September 2016 00:28
An: sailwave@yahoogroups.com
Betreff: [sailwave] Re: Publish without FTP

OK I’ll write up a blog post ‘how to’ scp/sftp and publish teh link back here when I have done so



Avast logo

Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.

www.avast.com

You may also want to take a look at the publishing component
of SailEvent.net. You can read all about it at http://sailevent.net but, in a
nutshell, you upload your Sailwave series file or files to SailEvent and results
are immediately available on the web as a responsive web page and/or a rolling
display on a screen in your clubhouse.

You can see what the output looks like at
http://sailevent.net/chrw. We are currently beta-testing and, if you would like to try it, please get in touch (info@sailevent.net); we want as much feedback as possible.

Quick note that Dropbox will no longer allow access to html files - recent announcement.

···

Sent from my iPhone

Steve,

Don't see anything on the DB website about this.  Got a reference?

jrc
···

On 2016-09-01 9:41 AM, Steve Dahlstrom
[sailwave] wrote:

sdahlstrom@ymail.com

      Quick note that Dropbox will no longer allow access to html

files - recent announcement.

      Sent from my iPhone

John R Culter IRO CAN

      Vancouver Canada

      +1 604 742-8832

Hi Folks,

I do not have any references. It worked when I opened on my main computer with Dropbox installed, and a shared folder. I did a copy and paste to get the HTML file into my Dropbox.

It requested I join Dropbox when I tried my second computer that does not have Dropbox.

Regards JohnL.

···

From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]
Sent: Friday, September 2, 2016 5:41 PM
To: sailwave@yahoogroups.com
Subject: Re: AW: [sailwave] Re: Publish without FTP [1 Attachment]

Steve,

Don’t see anything on the DB website about this. Got a reference?

jrc

On 2016-09-01 9:41 AM, Steve Dahlstrom sdahlstrom@ymail.com [sailwave] wrote:

Quick note that Dropbox will no longer allow access to html files - recent announcement.

Sent from my iPhone


John R Culter IRO CAN
Vancouver Canada
+1 604 742-8832

OK I have written up how I did this without FTP - I do hope it helps someone

See

Sailwave and sending files by SCP or SFTP - Badly Wired

Please feels free to levae any comments / improvements in the comments section

Sailwave and sending files by SCP or SFTP - Badly Wired
Sailwave is a windows based application that manages scoring and results for sail races and series See http://www.sailwave.com/ Sailwave comes with many different ways to ‘publish’ results, including FTP’ing the html results files to a server. Whilst there are many way…

View on badlywired.com

Preview by Yahoo

See title?

Just found it in the hidden options in ‘user interface’

Cheers

Paul

···

To: sailwave@yahoogroups.com
From: sailwave@yahoogroups.com
Date: Sat, 10 Sep 2016 17:36:19 +0000
Subject: [sailwave] How do I change the settings for tie-break so that Sailwave uses the discard in the event of a tie?

See title?