Hi list,
Thanks Fred, thanks Roman - both of your suggestions worked.
As Roman suggested, the problem was that cron does not know much about its environment, so while it seems to know /bin (where nc resides on my system, which is why Fred's suggestion worked), it does not know /usr/local/bin (where pdsend resides on my system).
Thanks a lot for your contributions!
best, flo.H
Fred Voisin wrote:
you may test (it should work): echo "foo bla bla" | nc -u host Pdportfornetreceive
Roman Haefeli wrote:
Probably cron doesn't find the binaries. Either export all PATHes or specify absolute pathes for all files/binaries:
- /bin/echo "foo bla;" | /usr/local/bin/pdsend 3007 localhost
(I know that at least /usr/local/bin/ is not searched by default by cron).