
CR15P0
New User
Oct 15, 2012, 5:40 AM
Views: 779
|
|
Outputting from a terminal invocation
|
|
|
Hi, I use a workflow product called Enfocus Switch and this allows me to execute commands that allow me to run perl directly within the application. This is great because I can get perl to do complex alterations to documents that are running through the workflow. However Switch does not like to use of the greater than symbol ">" so this: perl -e "print 'hello world'" > "/Users/user/test_out.txt" cannot be used. Do you know of a way of replacing the > so that I can still output a file? (BTW I have tried invoking tee: perl -e "print 'hello world'" | tee "/Users/richardcrisp/test_out.txt" but Switch doesn't like "|" either!). Many other applications (cpdf, qrencode, etc) do not use > but instead use -o. I know that this command is used for something else in perl but was hoping there'd be something similar. Thanks for you help!
(This post was edited by CR15P0 on Oct 15, 2012, 10:30 AM)
|