开发者

Cygwin and alternatives to replicating linux commands on windows

I keep running into issues with a .bat script I want to write to automate some tasks related to the setup of my PHP application. I can't for instance do simple wget to download files and so on.

I hear that by installing Cygwin, the user should be able to have access to all linux related commands, so my script will run without problems.

Another way is to get the user to download each GnuWin32 version of the commands I'm using in my script, like wget, gzip, diff but this sounds like a lot more trouble than installing a single Cygwin program.

Can someone recommend the easiest approach here.. Is C开发者_如何转开发ygwin the standard or are there easier alternatives.


I haven't heard of alternatives to Cygwin, and from my personal experience, it seems like it would perfectly suit your needs. You'll just need to launch your script from Cygwin's shell instead of Windows' prompt, but that hardly is a problem.


If you are having problems with batch files then rather than install Cygwin, I'd look at PowerShell and WScript.


Hard to answer, because the way you phrase your question seems to imply that the person answering must have absolute knowledge about what is easiest and that there's not any alternatives.

Among the people I know Cygwin is the standard for getting a posix like environment under windows.

I'd go for cygwin.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜