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

Andrew Bartlett abartlet at samba.org
Tue Dec 22 08:50:23 UTC 2020


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.

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba





More information about the samba mailing list