开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Macro for timed band-switching?


 

A little more on using the Perl script, fldigi-shell.? I just updated the fldigi WIKI xmlrpc how-to:?

Tested the XML::RPC install script and works perfect on Mint 21.3.

The fldigi-shell script can be used interactively as a command line remote control of a running fldigi instance, or it can process commands one at a time and exit after each command.? To satisfy this users request two simple fldigi-shell script invocations are needed:

dave@tk7:~$ fldigi-shell -c "rig.set_frequency 14103000"
3580000.000000
dave@tk7:~$ fldigi-shell -c "rig.set_frequency 10148020"
14103000.000000
?
These commands can be added to as a cron job, see "man cron"

Cron jobs are a scheduling tool used in Linux and Unix-like systems to automate tasks by running commands or scripts at specific times or intervals. They are defined using a specific syntax in a file called crontab.

Cron jobs automate repetitive tasks by scheduling commands or scripts to run automatically.

Time-Based Scheduling:
They allow you to schedule tasks based on minutes, hours, days, months, and days of the week.

Crontab:
Cron jobs are defined in a file called crontab, which is a text file that contains the scheduled tasks.

Cron Daemon:
The cron daemon is a background process that periodically checks the crontab file and executes tasks at the specified times.

How they work:
1. Define the Schedule:
? ? You define the schedule for a task using a specific syntax in the crontab file.
2. Cron Daemon Checks:
? ? The cron daemon periodically checks the crontab file for tasks that need to be executed.
3. Task Execution:
? ? When a task's scheduled time arrives, the cron daemon executes the corresponding command or script.
Basic Syntax:
? ? The basic syntax for a cron job entry in the crontab file is:
Code

* * * * * command_or_script
| | | | |
| | | | +-- Day of the week (0-6) (Sunday=0 or 7)
| | | +---- Month (1-12)
| | +------ Day of the month (1-31)
| +-------- Hour (0-23)
+---------- Minute (0-59)
Asterisks (*): An asterisk means "every" for that particular field.

Examples:
0 8 * * * /scripts/monitor.sh - Run the script /scripts/monitor.sh every day at 8:00 AM.
0 16 4 * * /root/clearcache.sh - Run the script /root/clearcache.sh on the 4th day of each month at 4:00 PM.
0 9 1 12 * /root/backup.sh - Run the script /root/backup.sh on the 1st of December at 9:00 AM.

73, David, W1HKJ


On Tue, Apr 1, 2025 at 1:52?PM Dave, W1HKJ via <w1hkj25=[email protected]> wrote:
For very long duration timing and band/frequency changes you should set up a chron?job that sends xmlrpc commands to the fldigi xmlrpc server.??

see:??

This Perl script gives full examples of how to send various commands to fldigi .

73, David, W1HKJ

On Tue, Apr 1, 2025 at 11:30?AM Jeff KP3FT via <kp3ft=[email protected]> wrote:
Oops!? I'm using FLDigi.? I read through the docs on using "Timer" in a macro, but still baffled on how to set it up.? Thanks, 73

Join [email protected] to automatically receive all group messages.