Re: psexec does not work under cygwin-X
On 11/20/2009 04: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. And does it have the same problem if you set tty in your CYGWIN enviroment variable - see http://cygwin.com/cygwin-ug-net/using-cygwinenv.html? Sounds like the same old Win32-program-not-understanding-PTYs issue. Check the Cygwin archives for more. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
Re: psexec does not work under cygwin-X
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 -- 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/
Re: psexec does not work under cygwin-X
Different environment variables are set. I'd suggest in the xterm version saving the env variables (envfile) and then see which one causes the non-X version to stop running psexec. 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 -- 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/ -- 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/
Re: psexec does not work under cygwin-X
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/