hi!
I cannot get this to work:
[echo "bla" >> textfile.txt(
|
[shell]
|
[print]
In textfile.txt, I get nothing, and in the console I get:
"bla" >> textfile.txt
as if all the command is a string.
[shell]: echo to a textfile
hi!
I cannot get this to work:
[echo "bla" >> textfile.txt(
|
[shell]
|
[print]
In textfile.txt, I get nothing, and in the console I get:
"bla" >> textfile.txt
as if all the command is a string.
Kubuntu 22.04 / KX repositories :: linux-realtime kernel :: jack2 :: PD vanilla
thank you, I didn't know about [command].
I get exactly the same result. I wonder if it is not a format issue. I tried to escape spaces, but it returns an error
test_command-object.pd
concat.pd
Kubuntu 22.04 / KX repositories :: linux-realtime kernel :: jack2 :: PD vanilla
@rph-r Pipes and redirection don't work with [command] (or shell) which is why I went with the trick using tee
, down to how they quote things for safety reasons, everything after the command is quoted and what you run in that case is exec echo "'bla' >> ~/bli.txt"
The lniked thread shows how to work around that limitation with the goal of logging to a text file which seems to be what you are attempting to accomplish? Or is this just a test for something else? Going with Tcl can provide more elegant solutions but if this is for the same project as your other thread you might not have the gui for tcl?
Edit: Might be able to work around this quirk with eval
, quick test suggests not but I did not explore it deeply. Command substitution also can not be used with [command].
Oops! Looks like something went wrong!