Hi list,
I am trying to send messages to Pd from cron.
However, the following entry in my crontab...
* * * * * echo "foo bla;" | pdsend 3007 localhost
... does not seem to make it to the following Pd patch:
[netreceive 3007]
|
[print]
whereas running the same command manually creates printout in Pd as expected.
I also tried to encapsulate the above line into a shell script, without success. The same crontab executes other (non-Pd-related) jobs without trouble.
Anyone got a clue what daemons I am fighting here?
best, flo.H
Hi,
you may test (it should work):
echo "foo bla bla" | nc -u host Pdportfornetreceive
(where nc is netcat, and -u for using UDP protocol) Best,
Fred
Florian Hollerweger wrote:
Hi list,
I am trying to send messages to Pd from cron.
However, the following entry in my crontab...
- echo "foo bla;" | pdsend 3007 localhost
... does not seem to make it to the following Pd patch:
[netreceive 3007] | [print]
whereas running the same command manually creates printout in Pd as expected.
I also tried to encapsulate the above line into a shell script, without success. The same crontab executes other (non-Pd-related) jobs without trouble.
Anyone got a clue what daemons I am fighting here?
best, flo.H
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi
Probably cron doesn't find the binaries. Either export all PATHes or specify absolute pathes for all files/binaries:
(I know that at least /usr/local/bin/ is not searched by default by cron).
Roman
On Wed, 2010-01-20 at 21:46 +0000, Florian Hollerweger wrote:
Hi list,
I am trying to send messages to Pd from cron.
However, the following entry in my crontab...
- echo "foo bla;" | pdsend 3007 localhost
... does not seem to make it to the following Pd patch:
[netreceive 3007] | [print]
whereas running the same command manually creates printout in Pd as expected.
I also tried to encapsulate the above line into a shell script, without success. The same crontab executes other (non-Pd-related) jobs without trouble.
Anyone got a clue what daemons I am fighting here?
best, flo.H
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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).