CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Outputting from a terminal invocation: Edit Log



CR15P0
New User

Oct 15, 2012, 5:40 AM


Views: 1260
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)


Edit Log:
Post edited by CR15P0 (New User) on Oct 15, 2012, 10:30 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives