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: Markus Vester <[email protected]>
Date: Tue, 6 Nov 2018 12:12:51 +0000 (UTC)
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1541506375; bh=fnIWQAqWqTKHAZTid6CSvLjTSXar6CnZU9hNzZRwxCQ=; h=Date:From:To:Subject:References:From:Subject; b=qgqd59vQuGjh0nxtbwTfNrepwQuCOunSFfabVumL5AVlHy40tJCTF4NncmFt5JTEOvrjmVA0pr9k6EaerQKSTEgM/kZbWdLQJR3zQChqFLYVu5eWomofYTWLoUjU9OTD43+KFu+Aj9gNii+3ADi7imQkOEy3Y2E65nj+UXZGyN2Gl18gKLMpAlEiZNobkSVoT8RITfenpEhXYRtrSCeUht3QBZwpYDQ6aIyaD/3kOUwNlKnWWf6+cEnfmkzHHV5qBBU4HDZwazz2frs/bXavvVj4puo4wBCJO48Z1kXZER6+w91nhcbgua0U5Zu7tu3IgYMUaxxhgW4RUCvCY/C6bQ==
References: <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
Hi Paul,

the simple solution of uploading both files from one SL instance in a single FTP session normally works well. While FTP is busy uploading the first file, the other SL instance always has enough time to complete its capture. 

If you want a delay you need to invoke conditional actions. In periodic actions, use e.g.
 capture lf2.jpg
 timer1.start(10)
and in conditional actions
 (if) timer1.expired(1)
 (then) exec("ftp_upload.bat")

Best 73,
Markus

-----Ursprüngliche Mitteilung-----
Von: N1BUG <[email protected]>
An: [email protected] <[email protected]>
Verschickt: Di, 6. Nov. 2018 12:00
Betreff: LF: SL FTP upload

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>