linux eclipse Remote-system shell - linux

I am trying to run commands on my local system (Ubuntu 12.04) through the Remote Systems view in Eclipse (Juno) as explained here: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.rse.doc.user%2Ftasks%2Ftruncmdsview.html&cp=58_4_0
I open the local shell, but no command is executed after I press enter. Am I missing some configuration steps? I installed Eclipse by downloading and uncompressing the program, not through repositories.

Related

Run Windows batch script in POST_BUILD command even when generating on Linux machine

I'm using Visual Studio 2019 combined with CMake to cross compile my project on both PC environment (generating .sln file) and remote Linux machine (Generating Makefile file). I'm switching between the environments using Visual Studio's Cross Compilation feature.
Is it somehow possible to run a Windows batch script on POST_BUILD command even when I'm generating CMake on the Linux environment ?
I want this (or any other solution which will achieve the same) to work even when generating on Linux:
add_custom_command(
POST_BUILD
myTarget
COMMAND cmd /c H:/pathToMyCommand/myCommand.bat
)
(remember that I'm in Windows enviroment as Visual Studio is invoking CMake on the remote Linux machine)
I currently adding a custom command which run a shell script directly from the Linux machine and connecting to the Windows environment, but I prefer to run a batch directly from Windows.
Is it possible?

Cygwin not working on Windows 10 (even after added to system's PATH)

I recently downloaded and installed Cygwin on my 64-bit Windows 10 computer. I'd like to for Cygwin to work with the normal Windows command prompt. Per instructions I found online, I added the path to the Cygwin executable to my system's PATH:
Advanced System Settings -> Environment Variables -> appended ;C:\cygwin64\bin to system's Path
Unfortunately, Cygwin still doesn't work on Windows command prompt. Any suggestions?
You will not be able to make use of all Cygwin functionality at the Windows command prompt. Some limited use of commands -- specifically those commands that exist as binaries in the C:\cygwin64\bin directory, and don't rely on any kind of shell support -- will work. But since your're not running a shell when you're in a Windows prompt, the associated support normally available to you in a Cygwin native command window will not be there.

copy /move the Data from the Linux Command line to local windows

Installed CYGWIN in my windows, I can able to access both windows & remote linux machines with the credentials. But i can't able to configure how the data will be moved from Linux to windows, can anyone please suggest me on this.
Thanks
Srinivas
To log into your cygwin instance remotely, you need to install the sshd module in cygwin and then set it up. Then you will be able to use the ssh command on your linux/unix machine to do one of many things:
open a bash shell in your cygwin instance
execute a remote command from linux/unix using: ssh WINDOWS_SERVER command
copy to the Windows machine remotely using scp or sftp.

How to copy files from windows to linux (cross platform)?

I want to trigger command/script from Linux environment which copies file from windows system to my Linux environment.
I have set up local Linux server for my web application. I am using WinSCP for file transfer and Putty as a console.
I want to automate the process of build deployment of Linux server.For that i have to copy build which is on my windows machine and paste it in my local Linux server so that i can deploy it.
As per my understanding, there should be some shared location which is accessible from Linux environment.
Is there is any script available for this? Also, please tell me the configuration changes require to do this.
You can use synchronize command of winscp from your windows,
winscp synchronize command
or winscp.exe command from your command prompt.
winscp.exe command
Install cygwin and you can use scp, ssh etc just like you would on linux. Besides, you can use ordinary bash scripts instead of crappy bat-files.
OR
http://www.codingepiphany.com/2014/01/13/batch-script-for-transferring-files-from-windows-machines-to-linux-file-server/
OR
Use samba
you can use rsync for synchronize your files. http://linux.die.net/man/1/rsync

Python Lib to excute remote windows commands from a linux Box without using ssh

This a very basic requirement of our project.
I need to run Windows command from a linux box, without using ssh, as not all the windows boxes have ssh installed by default.
I was searching for some python libs that can do this work?
Links, tutorial, are highly appreciated.
Some alternatives:
http://www.krenger.ch/blog/wmi-commands-from-linux/
http://pypi.python.org/pypi/WMI/ (under wine or a Windows bridge VM)
https://code.google.com/p/impacket/source/browse/trunk/examples/psexec.py

Resources