Tom Fitzgibbon | Multidata | 212-967-6700 x537
I'll send anyone $10 who can run a PowerShell
script called by Cache (and share the technique). - Tom
Have you tried
s x = $zf(-1, "powershell -file c:\dev\test.ps1")
This will only work for PowerShell 2, I can't remember the command line
for PowerShell 1.
Jason
On 3/19/2015 12:11 PM, Tom Fitzgibbon wrote:
> I am reposting below. No winners so far. Yes I know I can s
> x=$zf(-1,"dir") to run a command line script. How about running a
> Powershell script?
>
> Tom Fitzgibbon | Multidata | 212-967-6700 x537
>
>
> On Wednesday, August 18, 2010 at 9:22:47 AM UTC-4, Tom Fitzgibbon wrote:
>
> I'll send anyone $10 who can run a PowerShell
> script called by Cache (and share the technique). - Tom
>
> --
> --
> Caché, Ensemble, DeepSee
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Caché, Ensemble, DeepSee" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to intersystems-public-cache+unsub...@googlegroups.com
> <mailto:intersystems-public-cache+unsubscribe@googlegroups.com>.
> an email to intersystems-publi...@googlegroups.com
> <mailto:intersystems-publi...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
--
--
Caché, Ensemble, DeepSee
---
You received this message because you are subscribed to the Google Groups "Caché, Ensemble, DeepSee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intersystems-publi...@googlegroups.com.
Tom,
Here’s an example of how to display the results of the Powershell ‘get-alias’ command:
>s cmd="powershell –Command get-alias"
>o cmd:"QR" f i=0:1 {u cmd r x q:$zeof||(x=""&&i) u 0 w x,!} c cmd
-Keith
--
--
Caché, Ensemble, DeepSee
---
You received this message because you are subscribed to the Google Groups "Caché, Ensemble, DeepSee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
intersystems-publi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Caché, Ensemble, DeepSee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/intersystems-public-cache/IcSKxZJnpmg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to intersystems-publi...@googlegroups.com.
I had to strengthen Keith's code
s eofError=$system.Process.SetZEOF(1)
s cmd="powershell –Command get-alias"
o cmd:"QR" f i=0:1 {u cmd r x q:$zeof||(x=""&&i) u 0 w x,!} c cmd
d $system.Process.SetZEOF(eofError)
And it works for me without error now.
Martin
From: intersystems...@googlegroups.com [mailto:intersystems...@googlegroups.com] On Behalf Of Tom Fitzgibbon
Sent: Thursday, March 19, 2015 9:42 PM
To: intersystems...@googlegroups.com