Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-06-2010, 01:49 PM   #1
LQ Newbie
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0

Has anyone messed with winexe? It's a very cool program. Let's you get into Windows from Linux.

[]# ./winexe -U domain/username%*****// 'cmd'

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.


However it seems to have some limits. For example, I can't get it to work with "wmic" commands. For example:

[]# ./winexe -U domain/username%***** // 'wmic share get caption,name,path'

it hangs...
Old 01-06-2010, 02:25 PM   #2
Senior Member
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,799
Blog Entries: 14

Rep: Reputation: 280Reputation: 280Reputation: 280
Interesting. Anyone tried it for virtual guests on the same machine, kind of as a cli version of vmware?
Old 02-26-2014, 07:17 PM   #3
LQ Newbie
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
If this still hangs, it could be due to winexe's dealings with pipes.

My version of winexe:
[Wed Feb 26, 12:12:54 in ~]=> ./winexe --version
Version 4.0.0alpha11-GIT-UNKNOWN

I can run your command via the CLI with no problems. I also do this in non-interactive mode. If you run it from the background like in Nagios (via a Python script for example), you'll have problems if you don't do something w/ stdin, e.g. cat < /dev/null | /path-to/winexe

Note that Python's subprocess module has a minor note regarding the limits of reading from stdout, which is 65k. Anymore than that and it will hang. There are some solutions out in the web. Search on "subprocess pipe enemy".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration