Hi Nix Devs,

I've created a bash script that does a duplicity backup to an s3 instance
(but this is trivial).  When I run the script from cli, it works as
expected, but when this script is called from a systemd timer, I do get all
kind of errors about basic binaries not being found when using subshell
commands, like eg

HOST=$(hostname) # (or HOST=`hostname`)

The errors are like these:
hostname: command not found
ps: command not found
awk ..
sendmail ..

Any ideas on what's going on so I can solve this and have this script
running correctly when started by systemd?

Kind regards,

Erik
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to