I don't know, though I might just find out. So far I've only customized it to block the default Windows install starting and set it to open a cmd prompt proxied by netcat, because cygwin seemed to me to be an awful lot of chore for little return, but now my previously mild curiosity is growing I'll likely return with a report on my experience afters adding it to my pe image.
He also mentions wmic as a tool you can use, and that is a tool which I have often used myself - it grants you pretty powerful access to the Registry backend using SQL-like syntax. I do know that if you wish to execute. Last I will say that porting code from one operating system to another is not done as often as we might like for a reason: it is problematic by its very nature.
Different operating systems behave differently, if nothing else, at the least because they are different. Powershell, as I mentioned above, can be an extremely tedious tool if used for parsing strings, as you may be accustomed to do in a Unix environment, because it treats everything as an object in its own right.
So good luck. If you want to know how to set up a windows machine as a ssh server, that is a question for the windows forum. However, everyone's suggestion to use cygwin and open ssh is a good idea. This seems very much like an XY Problem. Instead you'd be better served in directing the running of a script thats been written in a scripting language that's native to windows instead. There are a wealth of options on Windows using anything from a simple. Any of these solutions can then be executed from your Linux system using winexe , requiring you to not have to install anything on the Windows system beyond making sure they have access to your script.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Running bash script on a remote Windows Machine Ask Question. Asked 7 years, 9 months ago. Active 7 years, 9 months ago. Viewed 26k times. First of all, is this possible? If yes, then how can it be done?
Improve this question. Gilles 'SO- stop being evil' k gold badges silver badges bronze badges. Mandar Shinde Mandar Shinde 2, 10 10 gold badges 35 35 silver badges 53 53 bronze badges. I dont know if i have a script written in korn shell with. If i want to execute that how can i do that? Can anybody suggest the best book to learn korn shell scripting.
Thanks sam71 1 Reply. RedHat Commands. OpenSolaris Commands. Linux Commands. SunOS Commands. FreeBSD Commands. Full Man Repository. Advanced Search. Contact Us. Forum Rules. Mark Forums Read. Thread Tools. View Public Profile for kyawlin. Find all posts by kyawlin. View Public Profile for Perderabo. Find all posts by Perderabo. View Public Profile for fpmurphy. Find all posts by fpmurphy. View Public Profile for Neo. View Public Profile for kduffin.
Find all posts by kduffin. Asked 12 years, 9 months ago. Active 12 years, 9 months ago. Viewed 9k times. I'll need a way of passing the user's credentials. Can anyone recommend the best way to call a Unix script from a Windows application? Add a comment. Active Oldest Votes. To answer your comments, which would take too long for another comment: 1 Why is it better to use cygwin's ssh utility instead of the Windows ssh utility?
Tanktalus Tanktalus Thanks for the answer. Two related questions: 1 Why is it better to use cygwin's ssh utility instead of the Windows ssh utility? Actually, I don't think it's built in to Windows bad assumption on my part. I think it's a third-party utility we have installed. If I run into problems with the ssh I have I'll try cygwin. Thanks again. Jason Baker Jason Baker k gold badges silver badges bronze badges. Tracker1 Tracker1 I like the AIX service suggestion, too.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
0コメント