@"Line 1
Line 2
Line 3
Line 4"@ | my_exe

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com


-----Original Message-----
From: Joseph L. Casale [mailto:[email protected]] 
Sent: Wednesday, July 06, 2011 4:42 PM
To: NT System Admin Issues
Subject: Powershell heredoc and io redirection

How does one perform the ps equiv of a bash heredoc:

my_exe << EOF
commands
commands
commands
EOF

The requirement of the binary is each command on a line of its own (so followed 
by a cr).

Thanks!
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to