[Dxspider-support] Network Update
Kin
ea3cv at cronux.net
Mon Jan 30 09:06:49 GMT 2023
Keith,
You have it when running "sudo" because it needs you to authenticate with your password.
If your machine is secure, you can remove the password for the sysop user, like this:
su -
visudo
Add the following line:
%sudo ALL=(ALL:ALL) ALL
sysop ALL=(ALL) NOPASSWD:ALL <------ ADD
And now you can use i.e.
sudo service dxspider stop
Regards.
Kin EA3CV
De: Dxspider-support <dxspider-support-bounces at tobit.co.uk> En nombre de Keith Maton via Dxspider-support
Enviado el: domingo, 29 de enero de 2023 22:14
Para: The DXSpider Support list <dxspider-support at tobit.co.uk>
CC: Keith Maton <g6nhu at me.com>
Asunto: Re: [Dxspider-support] Network Update
Yes, yes I have. I’ve been trying that today as it would be the perfect solution.
One of the commands I’m running through the system crontab is to stop a service. I tried the same thing through the spider crontab.
I did some testing and this didn’t stop the service.
50 00 * * * spawn("sudo service xxx stop")
I tried using sudo systemctl stop xxx as well, no joy. It shows in the debug log but the service doesn’t stop.
1675025460^(cron) cron: 51 20 29 1 0 -> doing 'spawn("sudo systemctl stop xxx")'
1675025460^(cron) DXCron::spawn: sudo systemctl stop xxx
1675025460^(progress) subprocess stats cmd: 'sudo systemctl stop xxx' by DXCron::spawn 82mS
I’ve also tested using ‘ instead of “ because I have some spawn commands in my spider crontab with ‘ and some with “, neither work to stop the service.
Also tried this in case it needed the path.
02 21 * * * spawn('sudo /usr/bin/systemctl stop xxx')
That also didn’t stop the service.
1675026120^(cron) cron: 2 21 29 1 0 -> doing 'spawn('sudo /usr/bin/systemctl stop xxx')'
1675026120^(cron) DXCron::spawn: sudo /usr/bin/systemctl stop xxx
1675026120^(progress) subprocess stats cmd: 'sudo /usr/bin/systemctl stop xxx' by DXCron::spawn 90mS
73 Keith
On 29 Jan 2023, at 20:25, Kin EA3CV <ea3cv at cronux.net> wrote:
And you haven't thought about centralizing everything in the spider crontab, it would be easier, I think.
Kin
Obtener Outlook para Android <https://aka.ms/AAb9ysg>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230130/c45b20c5/attachment.htm>
More information about the Dxspider-support
mailing list