[Samba] Shutting down a remote PC via "net rpc"

Stefan G. Weichinger lists at xunil.at
Tue Dec 22 08:53:39 UTC 2020


Am 22.12.20 um 09:50 schrieb Andrew Bartlett:
> On Tue, 2020-12-22 at 09:29 +0100, Stefan G. Weichinger via samba
> wrote:
>>
>> And maybe "#!/bin/sh" ... I still don't see why it works from the
>> bash
>>
>> and not in the script (we need it as cron job in the end).
> 
> That will be it.  /bin/sh and /bin/bash are quite different on Debian-
> based systems.
> 
> Use #!/bin/bash and it should be much more like your interactive shell.

We use "#!/bin/bash" already and it doesn't work, so I wonder if 
"#!/bin/sh" might work.

I wasn't clear above.




More information about the samba mailing list