<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Roboto;}
@font-face
        {font-family:Menlo;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple style='word-wrap:break-word;overflow-wrap: break-word;-webkit-nbsp-mode: space;line-break:after-white-space'><div class=WordSection1><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>Keith,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>You have it when running "sudo" because it needs you to authenticate with your password.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>If your machine is <b>secure</b>, you can remove the password for the <b><span style='color:#0070C0'>sysop</span></b><span style='color:#0070C0'> </span>user, like this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-family:Consolas;mso-fareast-language:EN-US'>su -<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-family:Consolas;mso-fareast-language:EN-US'>visudo<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>Add the following line:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>%sudo ALL=(ALL:ALL) ALL<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-family:Consolas;color:#0070C0;mso-fareast-language:EN-US'>sysop </span></b><b><span style='font-family:Consolas;mso-fareast-language:EN-US'>ALL=(ALL) NOPASSWD:ALL</span></b><span style='font-family:Consolas;mso-fareast-language:EN-US'>     <------ ADD<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>And now you can use i.e.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-family:Consolas;mso-fareast-language:EN-US'>sudo service dxspider stop<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>Regards.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:Consolas;mso-fareast-language:EN-US'>Kin EA3CV<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b>De:</b> Dxspider-support <dxspider-support-bounces@tobit.co.uk> <b>En nombre de </b>Keith Maton via Dxspider-support<br><b>Enviado el:</b> domingo, 29 de enero de 2023 22:14<br><b>Para:</b> The DXSpider Support list <dxspider-support@tobit.co.uk><br><b>CC:</b> Keith Maton <g6nhu@me.com><br><b>Asunto:</b> Re: [Dxspider-support] Network Update<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Yes, yes I have.  I’ve been trying that today as it would be the perfect solution.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I did some testing and this didn’t stop the service.   <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Menlo",serif'>50 00 * * * spawn("sudo service xxx stop")</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I tried using sudo systemctl stop xxx as well, no joy.  It shows in the debug log but the service doesn’t stop.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675025460^(cron) cron: 51 20 29 1 0 -> doing 'spawn("sudo systemctl stop xxx")'<o:p></o:p></span></p><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675025460^(cron) DXCron::spawn: sudo systemctl stop xxx<o:p></o:p></span></p><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675025460^(progress) subprocess stats cmd: 'sudo systemctl stop xxx' by DXCron::spawn 82mS<o:p></o:p></span></p><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal>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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Also tried this in case it needed the path.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>02 21 * * * spawn('sudo /usr/bin/systemctl stop xxx')<o:p></o:p></span></p></div><div><p class=MsoNormal><br><br><o:p></o:p></p></div><div><p class=MsoNormal>That also didn’t stop the service.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675026120^(cron) cron: 2 21 29 1 0 -> doing 'spawn('sudo /usr/bin/systemctl stop xxx')'<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675026120^(cron) DXCron::spawn: sudo /usr/bin/systemctl stop xxx</span><o:p></o:p></p></div><div><p style='margin:0cm;font-stretch: normal'><span style='font-size:8.5pt;font-family:"Menlo",serif'>1675026120^(progress) subprocess stats cmd: 'sudo /usr/bin/systemctl stop xxx' by DXCron::spawn 90mS<o:p></o:p></span></p><div><p class=MsoNormal><br><br><o:p></o:p></p></div></div><div><p class=MsoNormal>73 Keith<o:p></o:p></p></div><div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On 29 Jan 2023, at 20:25, Kin EA3CV <ea3cv@cronux.net> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:Roboto;color:#4D5156;background:white'>And you haven't thought about centralizing everything in the spider crontab, it would be easier, I think.</span><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:Roboto;color:#4D5156;background:white'>Kin </span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div id=ms-outlook-mobile-signature><p class=MsoNormal>Obtener <a href="https://aka.ms/AAb9ysg">Outlook para Android</a><o:p></o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>