1)I partially connected to remote machine and use WinRm through Java to execute .bat file using xebialabs.overthere jars, which got rejected due to licence issue.
2) I even tried to connect remote machine and run batch file through PSExec (without using WinRm), but due to constraints of installing PSExec to our Master machine, this solution was scrapped.
Please help me if there is any way to get this done.
Thanks in Advance
Related
I am working on a remote desktop connection. I am not allowed to install anything on it, so I have no access to java, but I need it for a task.
My theory is that I can install java on a network drive, which I can access from my remote desktop and then configure my GIT Bash so it knows where java is.
Is there a way to do this ? Havent found anything useful online....
EDIT: This also means that I can access java from PowerShell / CMD. I am just using GIT Bash most of the time...
My Requirement is to export mappings from informatica Server.i am using pmrep command for the same .Currently i am running pmrep command on the machine on which informatica server is Installed and its exporting successfully on the same machine after running command.But My req is to run the command remotely from some other machine and want to store mappings on my local system not on the machine on which Informatica server is installed.Is there any possible way to do that. or some other command which do the needfull. Hope my Requirement is clear to all.Can anybody help me out with some solution..
Thanks.
You have to login to the informatica server using ssh and run the export. After the export file is created, you can do FTP to download the file to your local machine.
All you need is a properly configured client machine. Try installing the client, run pmrep and get back with the details if you'd be getting any errors and would need some help.
Hi,
You can have a script once the mapping is imported in the server, move or copy the mapping in to your local path. The script should include url and password of the local machine
I have downloaded the zip folder of neo4j community edition version-2.3.1 in order to start connecting the neo4j server through Java code. I want to create graph database for indexing of the data. Followed this link originally.
PROBLEMS
I'm unable to start the neo4j server as the batch file is deprecated and it displays the following message:
Tried using the PowerShell scripts commands also with reference to this link, it just opens the script file. the server is not started with these commands.
Where I am going wrong and what is the right procedure to start the local neo4j server and connect it through Java code to create nodes and relationships of the graph.
The batch file will still work even though it has been deprecated. It appears that the batch file cannot find the Findstr command.
findstr.exe should be in %windir%\system32\
If it is there and you are getting the findstr is not recognized as an internal or external command” error, check that %windir%\system32\ is in your PATH.
Once that works, try the Neo4j.bat file again.
And as Anton mentioned, please explain how the Powershell didn't work and what actions you took.
All along I have been pulling the remote files using the Runtime.exec() first by connecting the windows remote machine using "use net.." and then pulling the required files. Now I have a new mac machine and I am unable to connect to that windows remote using java code. I can access the server from finder window using below command:
smb://userName:password#ipAddress/pathToFileOnRemote
but when I run this command in java code using the Runtime.exec() method, I get an error stating No such file or directory.
Is there a different way to access the file on the windows remote from mac as compared to windows?
I'm using Eclipse in Windows. I have an application that should be tested on a Linux server. I usually connect to the server via winSCP and putty, but I want to make automated tests.
My questions is: How do I connect to Linux server from Windows to test the application?
In general, the better way is using ci tool like Jenkins. If you want do it by yourself, just act as ci server or plan your test procedure.
Act as ci:
on-development-host:
commit the source code to verion control system
on-linux:
check any changes in the version control system
get latest source code from version control system (git pull or svn update, or any other vcs tool you used)
build app from source code (use build tool: ant or maven)
run test-cases and send test report
Arrange test procedure by yourself:
winscp to linux from your computer
run test-cases and send test report
There is a problem in winscp. It is a gui tool and is difficlut to automate.
Ant sshexec and scp task is better for automating test.
You use plink to run commands on the server non-interactively.
Go and check for JSCH connction , you can run multiple commands and even scripts(after loading them from your system) using it