Help with RDP Script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with RDP Script
# 1  
Old 05-31-2010
Help with RDP Script

I am trying to write a bash script to pull out a variable from a dynamically generated "launch.rdp" remote desktop file, and then open rdesktop with that variable. Here's what I have so far:

Code:
#!/bin/bash

rdpfile="$1"

resolution=1024x768
server=$(cat launch.rdp | sed -n "21p" | sed 's/^.\{30\}//g')

/usr/bin/rdesktop -d Domain -g "$resolution" "$server"

sed is pulling out the hostname of the server from the launch.rdp file, and stripping it down to only the address. The script does work, however I'm wanting to get this to work when opening from Mozilla; I.E open with. Any help is appreciated, thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Port forwarding to windows rdp

I need assistance with a port forwarding related problem. ssh root@adress.com -p2222 -L 3389:192.168.0.10:3389 Have to connect to this 192.168.0.10 ip via rdp standard port from my windows machine. I got the linux command which should work but I just don't know how to use it... (1 Reply)
Discussion started by: genius90
1 Replies

2. IP Networking

VPN ssh access over RDP port?

Guys, Can I use an open RDP port to gain ssh access to my Linux server running the other side of our firewall? I work from home on the odd occasion, we only have RDP port 3389 available once logged into the VPN. I would rather ssh into my workstation without the need for a desktop display. ... (3 Replies)
Discussion started by: general_lee
3 Replies

3. Shell Programming and Scripting

RDP access from UNIX.

Hi, How can I access remote desktop shared area from Unix. Like on Windows in Run we use //IP/address Is there any similar command on Unix. I am using HP-UX. Basically I need to transfer a file to Windows from Unix using a shell script. Quick response will be appreciated. Thanks in... (5 Replies)
Discussion started by: Peeyush Sehgal
5 Replies

4. UNIX for Dummies Questions & Answers

Copy file from RDP to Local

Hi All, I am trying to copy a file from remote desktop to my local system using copy and xcopy commands...but none of them worked..is there any batch file or commands to do the copying .if do please share with me..... (5 Replies)
Discussion started by: navsan420
5 Replies

5. Cybersecurity

RDP over SSH Tunnel

Hi all, I'm trying have an alternative way of connecting into a Corporate network. Mostly in case the VPN down as I cannot also change the security policy. I want to expose windows RDP over ssh tunnel. I have 3 hosts in my scenario 1- Host a : Windows 2k8 has no internet access just only an... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

6. Red Hat

Is there a way to use windows RDP with red hat 6

Besides installing VNC on the red hat server which i know i can do, is there any RDP servers (using the windows rdp client) to remote control a red hat 6.2 server? Thanks in advance for this. (1 Reply)
Discussion started by: frankkahle
1 Replies

7. Solaris

How can i connect to win2k3 RDP from Solaris10 or Open Solaris

Hi all, O people of expert how can i connect to windows server 2003 remote desktop through Microsoft terminal server i don't want to install third parties products such VNC server or any web browser tools such as Remotely AnyWhere on the windows box what options and what procedures do i have to... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

8. Shell Programming and Scripting

runx and rdp command

Hi, Iam stuck with a problem... Iam trying to automate some commands by script. I want to execute the script from text mode. My script calls runx, then the window comes, and i have to give commands like "rdp IP_address" I need to pass the command "rdp IP_address" to runx in the script... (1 Reply)
Discussion started by: esham
1 Replies
Login or Register to Ask a Question
xrdp(8) 																   xrdp(8)

NAME
xrdp - a Remote Desktop Protocol (RDP) server SYNTAX
xrdp [ --nodaemon | --kill | --help ] DESCRIPTION
xrdp is a Remote Desktop Protocol (RDP) Server. Unlike Windows NT/2000/2003 server, xrdp will not display a Windows desktop but an X window desktop to the user. It can also be used as a VNC->RDP bridge. OPTIONS
-n, --nodaemon Starts xrdp in foreground instead of starting it as a daemon. -k, --kill Kills running xrdp daemon. -h, --help Output help information and exit. FILES
${XRDP_BIN_DIR}/xrdp ${XRDP_CFG_DIR}/xrdp.ini ${XRDP_LOG_DIR}/xrdp.log ${XRDP_PID_DIR}/xrdp.pid AUTHORS
Jay Sorg <jsorg71@users.sourceforge.net> Simone Fedele <ilsimo@users.sourceforge.net> SEE ALSO
xrdp.ini(5) sesman(8) sesman.ini(5) sesrun(8) for more info on xrdp see http://xrdp.sf.net xrdp team 0.1.0 xrdp(8)