Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

cmd line?

 
   Macintosh computer (Home) -> RDC RSS
Next:  OS 9 and RDC  
Author Message
Bruce Ingalls

External


Since: Apr 24, 2004
Posts: 2



(Msg. 1) Posted: Sat Apr 24, 2004 6:29 am
Post subject: cmd line?
Archived from groups: microsoft>public>mac>rdc (more info?)

I'm a mac neophyte, coming from the unix world.
I tried installing ms rdc, by launching the downloaded .dmg file, and
dragging its extracted folder into /Applications.

I'd like to script rdc; I'm used to writing Bourne Shell Scripts.
However, when I launch terminal, then do
  cd /Applications/Remote\ Desktop/
  ./Remote\ Desktop\ Connection
I get an error, essentially, that the rdc binary is only a header.

How do I run rdc from the command line?
Am I required to use OSAscript or AppleScript?
Can I pass a hostname, such as 'localhost' or '127.0.0.1' to rdc?

Thanks!

 >> Stay informed about: cmd line? 
Back to top
Login to vote
Marco

External


Since: Apr 23, 2004
Posts: 19



(Msg. 2) Posted: Sun Apr 25, 2004 11:04 pm
Post subject: Re: cmd line? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 24-04-2004 05:29, in article walic.29624$2v.13928@nwrdny02.gnilink.net,
"Bruce Ingalls" wrote:

 > I'm a mac neophyte, coming from the unix world.
 > I tried installing ms rdc, by launching the downloaded .dmg file, and
 > dragging its extracted folder into /Applications.
 >
 > I'd like to script rdc; I'm used to writing Bourne Shell Scripts.
 > However, when I launch terminal, then do
 > cd /Applications/Remote\ Desktop/
 > ./Remote\ Desktop\ Connection
 > I get an error, essentially, that the rdc binary is only a header.
 >
 > How do I run rdc from the command line?
 > Am I required to use OSAscript or AppleScript?
 > Can I pass a hostname, such as 'localhost' or '127.0.0.1' to rdc?

You can create a profile in RDC and save it. If you create an Applescript
which launches that profile it will work just fine :)

 >> Stay informed about: cmd line? 
Back to top
Login to vote
Errol Sayre

External


Since: Jun 18, 2004
Posts: 9



(Msg. 3) Posted: Fri Jun 18, 2004 6:39 pm
Post subject: Re: cmd line? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It seems like the problem you are describing is more an aspect of Mac OS X
file structures. The easiest way to open any application from the terminal
(other than unix binaries) is to use the open command i.e. open
/Applications/Remote\ Desktop or more likely in a script open
"/Applications/Remote Desktop".

Since most mac apps are packages, with a binary hidden inside them you can
usually open them by the standard unix convention
/Applications/App.app/Contents/MacOS/App

The open command shortcuts this, doing the samething as a double click on
the app in the Finder. In this case you would simply call open
/Applications/App.app without the package contents listed out...

The open command is often necessary for non Cocoa apps since they often do
not have the above mentioned package structure.

Hope that helps clear things up, basically just use open and you'll always
be good to go. Please note that open is basically a double click (or
Command+O) in the Finder and can be used to open folders, documents,
applications ‹anything you can open from the Finder.

Errol Sayre



On 4/25/04 1:04 PM, in article BCB1CA58.1EB5F%trash@nospam.demon.nl, "Marco"
wrote:



 >
  >> I'm a mac neophyte, coming from the unix world.
  >> I tried installing ms rdc, by launching the downloaded .dmg file, and
  >> dragging its extracted folder into /Applications.
  >>
  >> I'd like to script rdc; I'm used to writing Bourne Shell Scripts.
  >> However, when I launch terminal, then do
  >> cd /Applications/Remote\ Desktop/
  >> ./Remote\ Desktop\ Connection
  >> I get an error, essentially, that the rdc binary is only a header.
  >>
  >> How do I run rdc from the command line?
  >> Am I required to use OSAscript or AppleScript?
  >> Can I pass a hostname, such as 'localhost' or '127.0.0.1' to rdc?
 >
 > You can create a profile in RDC and save it. If you create an Applescript
 > which launches that profile it will work just fine :)
 >
 >> Stay informed about: cmd line? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Mac RDC using command-line - Is it possible to start a RDC connection using command line parameters? I am attempting to automate something for my users. For example, in Windows I could type in: mstsc /v servername and it would connect directly to the servername. Thanks in..

Win & Mac Networking - I've run into the dredded Win & Mac scenario. I need my OS X 10.3 and Win XP-Home Ed. computers to talk to each other because both contain vital information. I attempted to use the Mac instructions of setting up a network between the two but boy ...

Terminal Services - For my company: I have terminal services already that I use for "green screen" dumb terminals. I have a bunch of MAC OS X machines. What do I have to do on the Terminal Server to get those MAC's using my PC applications?

applescript rdc - Is it possible to script rdc to directly open a connection to a server, preferably with a direct login/password? I have a script that opens all windows I need in the morning, but I can only get rdc to start, not to connect to a server. any help is..

Printing problems - I am successfully using RDC via MacOSX10.3.4 over the internet to access an XP machine with my work data. The problems are: 1. I cannot see or use my local printer (Brother 2850 fax/laser/printer) 2. Cut and paste intermittently works, and at other times...
   Macintosh computer (Home) -> RDC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]