This script Cue is supposed to echo a message out via Ncat / Netcat. The echo string needs to contain a carriage return. Unfortunately, "^M" does not work. When I try to use \n or \r the script itself produces a line break.
Is there any way, to echo a carriage return?
Best
Lasse
--
Contact support anytime: sup...@figure53.com
Follow Figure 53 on Twitter: https://twitter.com/Figure53
User Group Code of Conduct: https://figure53.com/help/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/5d4b4f19-4038-4421-b39f-2d37b26fb6f5%40googlegroups.com.
set messageText to "test" & linefeed
set ncatCommand to "ncat IP PORT"
do shell script "echo -n " & quoted form of messageText & " | " & ncatCommand
Try this (apologies for any errors, I'm not in front of a Mac at the moment to actually run, so this may need some validation or minor debugging):set messageText to "test" & linefeed
set ncatCommand to "ncat IP PORT"
do shell script "echo -n " & quoted form of messageText & " | " & ncatCommand
Production Coordinator / IT Director
mic...@shoreline.church
do shell script "echo 'test\\n'"
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/E42D1DD0-A27E-4879-9BBC-9DDF6C14F32F%40mac.com.