Posts Tagged ‘command line’

Execute Windows Commands from Linux using winexe

Tuesday, September 10th, 2019

I’ve just found a good tutorial to compile winexe.
My host was a CentOS 7 box and I followed the instruction of this link:

Execute Windows Commands from Linux using winexe. Connect from Linux to Windows without SSH

In order to have git working, I opened the outgoing connection of 9418 TCP port on my firewall.

batch ftp script

Sunday, February 7th, 2010

If for some reason You need a quick and dirty script to retrieve some file from a ftp server, just open your text editor and write some things into your file. Then a simple command line command will download the file You have just write the path.

MS-DOS way:

C:\TMP> TYPE COMMANDFILE.TXT

username

password

dir

get wp-config.php

quit

C:\TMP> FTP -S:COMMANDFILE.TXT ftp.server.name

UNIX/LINUX way:

$ cat test

user username password

dir

get wp-config.php

quit

$ ftp -n ftp.server.name < test