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
gst-complete-0.8(1)						   User Commands					       gst-complete-0.8(1)

NAME
gst-complete-0.8, gst-complete - perform bash completion for gst-launch command lines SYNOPSIS
complete -Cgst-complete-0.8 gst-launch gst-complete [--gst-list-mm] [--gst-mm=string] [--print] DESCRIPTION
gst-complete-0.8 enables bash to provide context-sensitive tab completion for gst-launch command lines. See gst-launch(1) for the syntax of gst-launch command lines. You must have a version of bash that supports programmable completion. Such versions of bash provide the complete built-in command. gst-complete is a wrapper script that runs the latest installed version of gst-complete-X.X. For example, if both gst-complete-0.7 and gst- complete-0.8 are installed on your system, gst-complete runs gst-complete-0.8. OPTIONS
The following options are supported by gst-complete-0.8 and gst-complete: --help Display detailed usage message. You can also use -? to specify this option. The following options are supported by gst-complete only: --gst-list-mm List found major/minor versions. This option displays the versions that are available. --gst-mm=string Force major/minor version. This option enables you to specify a specific version to run, if you do not want to run the default version. --print Print wrapped command line. This option displays the command that will be run, and then runs the command. EXAMPLES
Example 1: Generating the Registry of Available Plugins by Running gst-compprep Run the following command in your .bash_profile or other appropriate place: example% complete -C gst-complete-0.8 gst-launch Example 2: Running the Wrapper Script and Displaying the Command Name example% gst-complete --print /usr/bin/gst-complete-0.8 FILES
The following files are used by this application: /usr/bin/gst-complete-0.Executable for bash completion for gst-launch /usr/bin/gst-complete Wrapper script that runs the latest installed version of gst-complete-X.X ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-media | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gst-compprep(1), gst-feedback(1), gst-inspect(1), gst-launch(1), gst-launch-ext(1), gst-md5sum(1), gst-register(1), gst-thumbnail(1), gst- typefind(1), gst-xmlinspect(1), gst-xmllaunch(1), gstreamer-properties(1), libgstreamer-0.8(3), libgstgetbits(3) NOTES
Original man page written by the GStreamer team at http://gstreamer.net/. Updated by Brian Cameron, Sun Microsystems Inc., 2004. SunOS 5.10 14 Oct 2004 gst-complete-0.8(1)