The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 12:21:56

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 110  

/etc/cron.hourly/somejob refuses tor start a bash script

I have tested now several versions
Version 1

head central_sync
#!/bin/bash
# synchronise Unlimited number of directories on different hosts
... 

central_sync is a hardlink to /usr/local/bin/central_sync.bash

version 2

cat central_sync2
#!/bin/sh
set
/bin/bash /usr/local/bin/central_sync.bash

exit 0

version 3

cat central_sync3
#!/bin/sh
set
/bin/bash -x /usr/local/bin/central_sync.bash

exit 0

version 4

cat central_sync4
#!/bin/sh
set
/bin/bash --posix /usr/local/bin/central_sync.bash

exit 0

They all produce in the protocol log:

...
set 
...
SHELL=/bin/sh

Consequently the program fails, which runs when called in the console/terminal
Parameter expansion fails in hte rsync command


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

Board footer