LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
winexe


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

http://eol.ovh.org/winexe/


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

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

C:\WINDOWS\system32>


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%***** //mysite.com 'wmic share get caption,name,path'

it hangs...
 
Old 01-06-2010, 02:25 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
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
yuletak
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".
 
  


Reply


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 AM.

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