jmmitchell / movestough

Bash script to monitor a source directory and move any added objects to a target directory, ensuring via fail-safe handling of data.
MIT License
14 stars 2 forks source link

a bit of advice.. #1

Open callowaylc opened 4 years ago

callowaylc commented 4 years ago

if you find yourself writing a thousand lines of shell, to replace/rethink/modify/update tools thats are .. 30, 40, 50 years old and a standard to every distribution, then it isn't not crazy.

LinuxOnTheDesktop commented 3 years ago

There are two issues here.

  1. Is there any point in adding a wrapper to a long-established, in many ways excellent, standard tool?
  2. If the answer to 1 is yes, then should the wrapper, if it is long, be written in shell?

I think that the answer to 1 is indeed yes. For, Rsync could use the capabilities added by this wrapper. Or so it seems to me.

As to 2: perhaps again yes, given that what the wrapper wraps is a shell tool. Anyhow: if the wrapper works, then, even if the wrapper would better be written in some other language, then there seems to me to be little to complain about - especially if, for one reason or another, the author would find it hard to rewrite the wrapper in another language.