Shell exec rsync
How to execute remotely rsync that has dependency on some library which is in other path
#!/bin/bash
BD=${HOME}/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH
exec $BD/rsync-real $*
#!/bin/bash
BD=${HOME}/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH
exec $BD/rsync-real $*
Comments