Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the shell has achieved it's task, but every time I use that to initiate another task (with a [bang( -- [del 100] in between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going to the list instead! Yahoo! - ya boo. I'll copy and paste in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
hi ed
i had these kind of problem too with shell on macosx+linux. the issue
was that whenever a process did exit whit a nonzero status a zombie
pd process was left and shell claimed that the process was still
running. the solution was to make sure that the return status of the
executed script is zero and to [delay] the bang for a short while. as
far as i remember i used a value below 100.
Am 11.11.2005 um 16:10 schrieb Ed Kelly:
Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the shell has achieved it's task, but every time I use that to initiate another task (with a [bang( -- [del 100] in between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going to the list instead! Yahoo! - ya boo. I'll copy and paste in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars -
http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
I haven't tried shell on OSX yet, attached is a patch that might fix the problem. Apply with
patch < shell_osx.patch
Let me know if it helps (or not).
Cheers,
Guenter
On Fri, 11 Nov 2005, Ed Kelly wrote:
Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the shell has achieved it's task, but every time I use that to initiate another task (with a [bang( -- [del 100] in between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going to the list instead! Yahoo! - ya boo. I'll copy and paste in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
.. and forgot the attachment
Guenter
On Fri, 11 Nov 2005, günter geiger wrote:
I haven't tried shell on OSX yet, attached is a patch that might fix the problem. Apply with
patch < shell_osx.patch
Let me know if it helps (or not).
Cheers,
Guenter
On Fri, 11 Nov 2005, Ed Kelly wrote:
Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the shell has achieved it's task, but every time I use that to initiate another task (with a [bang( -- [del 100] in between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going to the list instead! Yahoo! - ya boo. I'll copy and paste in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hey Günter,
Apologies for the wait - I tried your patch and it didn't work! I made a patch to examine the problem, it seems that when the zombie is still running the right output does not get banged. The kill seems to make no difference, but then I guess that's why it's a zombie!
Now I know why the wonk version has only 1 out. I got around the problem in my patch by not using the right outlet (there was a way!),
Best, Ed
--- günter geiger geiger@xdv.org wrote:
I haven't tried shell on OSX yet, attached is a patch that might fix the problem. Apply with
patch < shell_osx.patch
Let me know if it helps (or not).
Cheers,
Guenter
On Fri, 11 Nov 2005, Ed Kelly wrote:
Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the
shell
has achieved it's task, but every time I use that
to
initiate another task (with a [bang( -- [del 100]
in
between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going
to
the list instead! Yahoo! - ya boo. I'll copy and
paste
in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk
superstars - http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
Le 05-11-14, à 10:57, Ed Kelly a écrit :
Apologies for the wait - I tried your patch and it didn't work! I made a patch to examine the problem, it seems that when the zombie is still running the right output does not get banged. The kill seems to make no difference, but then I guess that's why it's a zombie!
Yeah, as I was explaining in an other thread, http://lists.puredata.info/pipermail/pd-list/2005-11/032673.html :
""" curl "http://www.sourcelibre.com/puredata/rpc.php?foo=bar&hello=world" &
I think it *is* better to use the & operator of the shell when using [shell]. """
This might be a workaround. It does bang the right outlet from time to time... Maybe OSX's [shell] is buggy ?
aalex
Le 14 Novembre 2005 11:42, Alexandre Quessy a écrit :
Le 05-11-14, à 10:57, Ed Kelly a écrit :
Apologies for the wait - I tried your patch and it didn't work! I made a patch to examine the problem, it seems that when the zombie is still running the right output does not get banged. The kill seems to make no difference, but then I guess that's why it's a zombie!
Yeah, as I was explaining in an other thread, http://lists.puredata.info/pipermail/pd-list/2005-11/032673.html :
""" curl "http://www.sourcelibre.com/puredata/rpc.php?foo=bar&hello=world" &
I think it *is* better to use the & operator of the shell when using [shell].
I don't think so. & sends the curl process in the background. You don't want that. -- Marc
Marc Lavallée wrote:
I think it *is* better to use the & operator of the shell when using [shell].
I don't think so. & sends the curl process in the background. You don't want that.
but why not ? you could poll the filename for existance (somehow), to see when the file is finally downloaded. of course this will only work for applications that do not have any direct feedback. (e.g. querying a database with the "&" is probably a bad idea; but when you are shutting down your machine it doesn't matter that much)
mfg.adr. IOhannes
Le 14 Novembre 2005 12:48, IOhannes m zmoelnig a écrit :
Marc Lavallée wrote:
I think it *is* better to use the & operator of the shell when using [shell].
I don't think so. & sends the curl process in the background. You don't want that.
but why not ? you could poll the filename for existance (somehow), to see when the file is finally downloaded. of course this will only work for applications that do not have any direct feedback.
Because there's no output when appending "&" after a command. To collect the output of a background process, "expect" seems more appropriate than bash (http://expect.nist.gov/) -- Marc
On Mon, 14 Nov 2005, Ed Kelly wrote:
Hey Günter,
Apologies for the wait - I tried your patch and it didn't work!
Hmm, ok, this means I have to get on one of these machines and try to debug myself. Thanks for trying. It seems that there is something different on OSX in the implementation of waitpid().
Guenter
I made a patch to examine the problem, it seems that when the zombie is still running the right output does not get banged. The kill seems to make no difference, but then I guess that's why it's a zombie!
Now I know why the wonk version has only 1 out. I got around the problem in my patch by not using the right outlet (there was a way!),
Best, Ed
--- günter geiger geiger@xdv.org wrote:
I haven't tried shell on OSX yet, attached is a patch that might fix the problem. Apply with
patch < shell_osx.patch
Let me know if it helps (or not).
Cheers,
Guenter
On Fri, 11 Nov 2005, Ed Kelly wrote:
Hi list,
I'm still having problems with the shell object, the right outlet is supposed to bang when the
shell
has achieved it's task, but every time I use that
to
initiate another task (with a [bang( -- [del 100]
in
between) I get "old process still running" and the task remains undone. All I want to do is create a series of folders within a folder!
Ed
PS, I'm still having problems with my email...apologies to the list, but every time I forward one from the list, to myself, it's going
to
the list instead! Yahoo! - ya boo. I'll copy and
paste
in future!
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk
superstars - http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
-> -> --> ---> -----> --------> -------------> r3search + praktik EK5perimenz
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 11/14/05, günter geiger geiger@xdv.org wrote:
Hmm, ok, this means I have to get on one of these machines and try to debug myself. Thanks for trying. It seems that there is something different on OSX in the implementation of waitpid().