Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: SL FTP upload

To: [email protected]
Subject: Re: LF: SL FTP upload
From: Wolfgang Büscher <[email protected]>
Date: Tue, 6 Nov 2018 20:13:23 +0100
In-reply-to: <[email protected]>
References: <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Hello Paul,

You could use the "conditional actions" to invoke the batchfile, and only set a flag (variable) in the "periodic actions". The "conditional actions" are quite versatile (you have timers there, etc etc) but compared to a real scripting language, a bit tedious to configure.

Details at
   www.qsl.net/dl4yhf/speclab/perisced.htm#cond_actions

A timer can be started anywhere (also in the "periodic actions"), and the "conditional actions" can be used to do whatever you like when the timer expires. There are twenty different timers that may run at the same time, so you could use one timer to wait a few seconds before uploading lf1.jpg, and some other time before uploading lf2.jpg.

The timers are explained in the same document linked above, in the chapter about the conditional actions.

All the best,
  Wolf DL4YHF .


On 06.11.2018 11:58, N1BUG wrote:
Hi LF,

I am trying to set up two SpecLab instances as grabbers to monitor
the EU and NA LF QRSS windows, but I am having some problems with
FTP upload.

Either SpecLab instance works fine by itself, calling ftp_up.bat
with either lf1.jpg or lf2.jpg parameter. But when I run two
instances, one using lf1.jpg, the other using lf2.jpg there are
problems related to both trying to run ftp_up.bat at the same time.
This creates random behavior, many FTP errors and usually only one
file makes it to the FTP server.

I would like to have both SpecLab instances upload every 10 or 15
minutes but I am not sure how to get around this problem. I could
rewrite ftp_up. bat to hard code the two file names and upload both
in one operation. This solves the log out of FTP server but not able
to log back in quickly enough. But it doesn't solve the problem of
both SpecLab instances trying to call ftp_up.bat at the same time. I
thought about having just one SpecLab instance calling ftp_up.bat
but I think this doesn't guarantee the other instance has yet
created the .jpg file to upload.

Any ideas how to do this properly? Is there any way to insert a
delay of some seconds in the SpecLab periodic actions? Such as...

capture lf2.jpg
wait for some seconds
call ftp_up bat

??

I will have some other questions about optimizing SpecLab parameters
for performance later. :)

73,
Paul



<Prev in Thread] Current Thread [Next in Thread>