Tag Info

New answers tagged

1

Not an actual solution but these issues in the XFreeRDP issue tracker look to be the same problem (or related) you're running into. freerdp crashing sporadically with connection to gateway #1473 TS Gateway connection problem, Unexpected RTS PDU: Expected CONN/C2 #1505 TS Gateway Support #386 excerpt Got stub length 4 with flags 3 and callid 27309 Got ...


1

The problem is that the shell redirection (<) sends the file over the ssh tunnel. And the Java class is expecting not the file, but a string with the "filename" of a local file that will be read with a FileReader. Instead of passing the filename to the FileReader, read from the standard input. InputStreamReader isReader = new ...


-1

The local file, by definition, is on your local machine. The java program is on a remote machine. The remote machine does not know about your local file, and in any production situation probably does not have permission to read it. I can think of three general approaches to this situation: 1) Change your Java program to read from stdin instead of from a ...


3

I don't know anything about Java, but I can show you a proof of concept. Say we have localfile.txt: Here is the local file. and on the remote machine, we have remote.sh: #!/bin/bash cat /dev/stdin Note that the script on the remote machine invokes a program which reads from stdin. Then pass the contents of localfile.txt to your ssh command: ...


0

There are two ways: either run a Linux MP3 tag editor and arrange for it to display on your Windows machine, or run a Windows MP3 tag editor and arrange for your Windows machine to see the Linux machine's files. Run a Linux GUI program from Windows On Linux, SSH lets you run commands remotely. This includes the ability to run GUI applications on the remote ...


-1

I assume your Linux FS is one of ext2/3/4. If so you can use Paragon ExtFS for Windows or ext2fsd. It will be mounted locally on your windows machine and then you can use your software to edit mp3 tags.


2

The trick is putting the password switch at the end of your command line so that you can leave it blank. This will trigger xfreerdp to prompt your for the password instead of having to provide it via the command line. Example new cli interface (v1.1+) $ xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p old cli interface ...


1

I agree with @slm that this is something of a borderline question. The truth is, Windows incorporates its own remote access protocols as your Unix system incorporates its own. Microsoft Powershell has matured a great deal since it was introduced with Vista, and it can do most if not all of the things you'd expect a shell script to do for you on your Windows ...


0

I would probably dissuade you from using Cygwin just to crutch in a Bash script which will likely need to be highly customized anyway so that it can run on top of Cygwin + Windows. 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 ...


1

You need to supply an empty parameter (without password value). Try this: sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p If that does not work, then you could accomplish this with simple bash script. Save this as rdp.sh: #!/bin/bash # Read Password echo -n Password: read -s password echo # Run Command sudo xfreerdp ...


0

You would use ssh to access a remote ssh server and run a command. For example ssh user@remote.server.address command 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.


7

This can be done by installing Cygwin and an openssh server on your Windows machine. Cygwin will come with bash, which can run your script, and openssh can be installed under Cygwin, and will allow you to login to the Windows machine remotely. Before logging in, you can transfer your script to the Windows machine using scp, and then run it directly with ssh. ...



Top 50 recent answers are included