This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: psexec does not work under cygwin-X
- From: "DePriest, Jason R." <jrdepriest at gmail dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 20 Nov 2009 19:37:03 +0000
- Subject: Re: psexec does not work under cygwin-X
- References: <50be591b0911200134y5dfdcfbei2b799648a75e38d0@mail.gmail.com> <50be591b0911200145h13c4499fo6ab326f459bf2937@mail.gmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
On Fri, Nov 20, 2009 at 9:45 AM, Hemal Pandya <> wrote:
> Hello,
>
> It seems psexec (from sysinternals) does not work correctly under
> cygwin-X. If I run it at the bash prompt in a command window it
> completes normally but from a rxvt or xterm window it stops after the
> first line of output from the remote process.
>
> I am trying to write some bash scripts that run some processes on
> remote machines. I would like for them to be run under X, though
> that's not an absolute requirement. Is there a work-around for this?
>
> Thanks in advance,
>
> - hemal
>
How are you calling psexec?
You can try something like this:
cmd.exe /c C:\\sysinternals\\psexec.exe
Instead of calling psexec directly.
That would make it run under a cmd.exe prompt instead of directly under bash.
-Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/