Command line control of AppleVNC or ARD?

I have a headless G3 running that is running the AppleVNC server and I want to shut it off via ssh. I've misplaced the password and I want to use OSXvnc instead. The problem is it seems that AppleVNC is supervised somehow, so whenever I try to kill it it just starts back up again as a new process; a great feature when you want it, but a pain when you don't.I also have a firewall up so I can't start OSXvnc on port 5901 because that port is blocked (I should learn how to unblock this firewall port on the commandline, but I don't yet and it's a bit off-topic...).
Can someone tell me if there are command-line controls to 1) take down the AppleVNC server or 2) change the password? (subquestion, anyone know a good link to learn about OSX firewalls and the command-line?) I read the documentation and I found networksetup and systemsetup but it appears that these are only for Mac OSX Server and I am just running 10.4 End User.
Nate Murray http://www.natemurray.com

If you want to learn about the command line, basically you will be learning UNIX. Apple's version is called Darwin, which is their flavor of FreeBSD.
Here's Apple's site:
http://developer.apple.com/documentation/Darwin/index.html
As far as killing the AppleVNC server, you could find the process in
Utilities>Activity Monitor and kill it there. If it comes back up, then I think
AM allows you to see parent processes. If it is starting up after a kill, that means something else is watching it and restarting it, then also kill that parent process (watcher process)
Or, from the command line you could use ps to find the name of the
process and I think execute kill -9 <process id number>

Similar Messages

  • Is there a way to pass archive file name to the command-line control?

    Hi there,
    I have been researching the flash media live encoder laterly. But still cannot find confirmed anwsers on the following questions:
    1. Is there a way to pass an archive file name to the command-line control when starting an encoder?
    2. Can the username/password to the Flash Media Server be saved in the profile? If not, is there any otherway to provide(GUI mode) them automatically,
        like as variables to a script?
    Thanks a lot in advance.
    Helen

    1. The only way to inform the command-line encoder about the archive file name is to save the FMLE session profile with the file name. The node for saving the file name is <output><file><path>C:\sample.flv</output></file></path>. The easier way to update the xml profile is to use "Save Profile" option of the GUI mode. If you want to programmatically update the file name, read the profile and update the node before launching the encoder. I hope this answers your question.
    2. No. Credentials can't be saved in the profile. The only way to provide them programmatically is to use /ap and /ab commands for the command-line encoder. For GUI mode, there is no programmable option. But still you can try capturing keystrokes.

  • Command line control Profile Manager 2

    Greeting All,
    Any guide that introduce command line that can control Profile Manager 2 to make device camera on/off? Do know is this possible via command line?
    Here is the sernario.
    1. User scan a QR code that trigger App to commnuicate Profile Manager turn off camera.
    2. App to login Profile Manager in background and turn off camera in profile.
    3. Profile Manager push profile to trun off device camera.
    4. App logout Profile Manager in background.
    Any advise is welcome.
    Thanks,
    Spin

    The CommandLine tool is also shipped with JCAPS and which is very useful to tool.
    We can do deploy, redeploy and undeploy with this tool. and the respective docs are available as said in the above location.

  • "Diadem command line control"

    I have a report format that I wish to use many times with different data files. Does diadem support command line arguements so that i can startup diadem and pass it the report format and data file names i want it to use.

    Hi GRD,
    You can indeed start DIAdem with parameters, which Otmar is quite right in saying are usually built into a Windows shortcut, though you can just as easily issue them from the command line. The most useful of these is the "/c" parameter to run a DIAdem command immediately after launching DIAdem. If you have all your commands built into a VBScript, you can run all of them with a single parameter by referencing the VBScript, as follows:
    diadem "/cScriptStart('VBScriptPath')"
    The extra "" quotation characters surrounding the /c parameter enable your path to have spaces in it (i.e. 'Program Files'). If you do not have your commands in a single VBScript, you can queue up multiple /c parameters to be run sequentially after DIAdem start up.
    Note that the syntax for these command parameters follows the old "autosequence" syntax from DIAdem 7 and prior versions, for example, the "/cScriptStart('VBScriptPath') command uses '' quotation characters and has no "Call" statement.
    For the specific case of wanting to load a data file and a report layout file into DIAdem 9.1 just after launching it, use the following parameters:
    diadem "/cDataFileLoad('DataFilePath')" "/cPicLoad('ReportLayoutPath')" /cPicUpdate
    Note that if your path starts with the standard DIAdem path that you can use the "." character to quickly communicate this fact. If, for instance, your files were in the DIAdem user directory, you would use the following parameters:
    diadem "/cDataFileLoad('.\user\dat\DataFileName')" "/cPicLoad('.\user\gra\ReportLayoutName')" /cPicLoad
    Hope this helps,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • TREX command line control

    Good day to all.
    Can I freeze queue in TREX from command line?
    Thanks,
    Alexey

    The CommandLine tool is also shipped with JCAPS and which is very useful to tool.
    We can do deploy, redeploy and undeploy with this tool. and the respective docs are available as said in the above location.

  • Setup error 530 invalid command line!!!!??

    hi guys,
    i have the following error in my addon installation process
    <i>"Setup error 530 invalid command line"</i>
    all my files .ard and setup.exe was generated correctly but whene i try to install my addon
    image capture
    http://aycu19.webshots.com/image/13218/2000674717812036508_rs.jpg

    Hi Manza,
    What are you using to create your setup?
    Have you tried the B1DE package? It contains 2 wizards to automatically create the setup of your addon together with the .ard file.
    You can try to use it at least to use it as a sample of what is needed for your setup.
    Are you setting something in the .ard Command Line arguments for installing/deinstalling your addon? Maybe the error is talking about it...
    Regards
    Trinidad.

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • Controlling Apple Chess from the command line

    Hello is it possible to control Apple Chess with the command line? I would like to get two computers to play against each other over a wireless connection, either airport of bluetooth.
    Any other suggestions would be great!
    Thanks,
    Tim

    Hey all thanks for your replies. I have figured it out using Max/MSP to send Applescript UI messages to the terminal. Each computer has a patch on it and plays after the other one has made a move. It is quite fun to program as it is using the chess app as an algorithm... anyhow i can't use screen sharing because i want the computers to talk to each other as if they were playing a game of chess against against one another by speaking the moves to each other.
    As if they were two computers at leisure playing chess in a park!
    Best,
    Tim

  • Launch remote control via a command line?

    Is is possible to launch a remote control session via a command line as well
    as the other "remote actions"?
    Thanks,
    Bryan

    On Wed, 29 Sep 2004 22:25:17 GMT, Bryan Miller wrote:
    > Is is possible to launch a remote control session via a command line as well
    > as the other "remote actions"?
    take a look at the online documentation which describes this..
    Marcus Breiden
    Please change -- to - to mail me.
    The content of this mail is my private and personal opinion.
    http://www.edu-magic.net

  • Command-line type itunes control - questions

    Hello,
    I'm writing a little tool with Applescript to control iTunes via command-line type interface. I have few general questions, thanks in advance for any answers. First I'll explain my idea, questions at the end. (If wrong forum, please tell me where to go)
    The goal: to control music with as less hassle as possible. I listen music all day, have dozens of gigabites of it, and find mouse/iTunes interface too troublesome. Moodkiller whilst reading a book, for example.
    Tool is pop-up dialog, with a single text field. Write something and hit enter -> search phrase or command interpreted and sent to iTunes as Applescript -> iTunes acts, and a new dialog pops up, ready for next command. (Enter with no text quits app)
    Examples:
    "oasis wonderwall"
    Searches iTunes library and finds Wonderwall of Oasis. Displays a pop-up list of search matches, in this case just one song. Hit enter -> iTunes plays it. (If more results, I get to choose song from list.)
    I find this quicker than to activate iTunes search box with mouse, enter search string, activate results pane with several TAB:s etc...
    "trip-hop"
    Searches an iTunes library, finding over two hundred "trip-hop" genre songs. This time just plays random song among results (thumb rule: if number of results > 100, behave that way, otherwise as above). Library continues playing from that point. Usually means you get to hear a lot of trip-hop. (could also make new trip-hop playlist)
    ">"
    Command: skip to next song. ">>>" skips 3 songs at once, ">>>>" four songs etc
    "<"+" increases three notches, "++" four etc.
    Decrease volume, again "---" three notches etc.
    "play", "pause", "stop"
    Basic player commands, you name it.
    "oasis wonderw >"
    Searches song and adds it to end of current playlist (if more than one result, choose from list).
    Other ideas too, but you propably got the point.
    My questions:
    1) Any applications currently doing this kind of job? With iTunes or other music players? (You can use Quicksilver for iTunes song searching, but I'm not certain if that's very handy or fast)
    2) Would you use this kind of tool, if it were good? (just a theoretical question) If yes, how would you like to control it?
    3) I have used Applescript's basic "display dialog" and "choose from list" commands, but would love more customized pop-ups (fancier song lists etc). Pointers to good scripting additions to accomplish this? Currently the entire tool is made with Applescript.
    If this raises interest, I could post the tool somewhere. It's still very early draft, anyway.
    Cheers,
    O
    Helsinki

    Hi CofeeBreak,
    Thank you for your comment, but I was able to find the problem (didn't solve it yet): In the FM command line interface, calling a HEX file located in a folder with brackets in its name, such as "C:\hello_World(V1)\LabVIEW.hex" will not be recognized by the FM.exe, whereas "C:\hello_World_V1\LabVIEW.hex" will work just fine. In the Flash Magic GUI and Command Line Manual section on hex files there is no mention of that, my solution at the moment is to remove the brackets from folder names.
    Thanks
    Amir

  • In making .ard file what command line argument

    In making .ard file what command line argument  must be kept

    Taken form SAP Business One Development Environment Project.
    .bat file:
    "SAPAddOnRegDataGenFileFolder\AddOnRegDataGen.exe" "YourAddOnInstallXMLFolder\YourAddOnInstall.xml" "1.1" "YourAddOnInstallFolder\YourAddOnInstall.exe" "YourAddOnInstallFolder\YourAddOnInstall.exe" "YourAddOnFolder\YourAddOn.exe"
    .xml file:
    <AddOnInfo partnernmsp="YOU" contdata="Your Name" addonname="YOUR ADD-ON" addongroup="M" esttime="60" instparams="" uncmdarg="/x" partnername="YOU" unesttime="30" />
    Hope it helps.
    D.

  • Command Line via ARD

    Is it possible to turn off the update in flip4mac via the command line using ARD?

    got it! didn't notice the space before the 9's..thanks for the help, though I do have a question about this. I see looking at the file it places that statement in it, the updatecheck checkinterval supercedes the original checkinterval?

  • Command line build and source control (svn)

    Using Flash Builder, what should be checked into source control to enable a command line build without any user interaction? Just checking in all the source directories is apparently not enough - as far as I can tell the individual projects have to be added to the workspace for the build to work.
    I've experimentally determined that .metadata/.plugins/com.abobe.flexbuiler.project and .metadata/.plugins/org.eclipse.core.resources are the 2 directories required for my build to work. the com.adobe.flexbuilder.project directory is pretty straight forward and it's obvious what needs to get checked in. the org.eclipse.core.resources directory has quite a bit more files contained in it - do all of these need to be checked into source control for the build to work? Deleting the .history folder appears to be ok.

    Hi GB_Austin,
    What you need to do is set up a Single Source Layout (SSL) to
    build with the conditional tags. If you are not sure how to do
    this, let me know. Let's assume you have a SSL that can do this and
    it is called "General". To build it using Command Line Compilation,
    use the following command:
    rhcl [address of your project's xpj file] -l "General" -o
    [address of the output directory]
    The -l (lower case L) tells the caommand line to use this
    SSL. If you leave -l "General" out it will compile your Primary
    Layout instead. If you leave out the -o and the address, the output
    chm file will be placed in the current folder. So the basic command
    is just:
    rhcl [address of your project's xpj file]
    I hope this has helped,
    darkagn

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

  • Controlling Application Layer Firewall from Command Line Not Working

    We are trying to manage the OS X Application Layer Firewall for Mountain Lion from the command-line. We have several hundred Macs that we need to manage and it isn't possible to have someone log in to each one to modify settings. We have used socketfilterfw in the past, and can still use it to add items but we can't seem to manage it at all. We are also having issues trying to remove certain items although it appears we can still add items.
    When we try to block or unblock the feedback we get is that the item has been configured however when we do a list the item attributes haven't changed.
    When we try to verify if the item has been signed we get an error Killed: 9
    When we try to sign an item we get the same error, Killed: 9
    With one item specifically, when we try to remove it we get a Segmentation Fault 11 although we can add that same item just fine.
    It should be noted that doing all of this through the GUI works fine.
    Does anyone have any ideas on how to manage the firewall from te command-line that works? Has socketfilterfw been depricated and replaced by something else? Is this just a bug? I am placing the same information in a bugreport but just wanted to check with the co

    It's a known issue that apparently hasn't been fixed. Not a high priority for Apple Engineering, it seems.

Maybe you are looking for

  • Latest on Battery

    Tonight is the first night I do NOT have to charge my battery after using the iPhone for the day... right now the battery is reporting it is about 1/2 way charged. Previously: Friday night, charged on dock for about 12 hours. Phone lasted about 12 ho

  • ITunes match not showing up in settings on my ipad

    It uploaded from my mac fine and it works great on my iphone but it doesn't show up on my ipad. I restored and still nothing. Anyone have a solve for this?

  • Duplicate Invoice Control.

    With regards to duplicate invoice control, can anyone advise if they have found a method to ensure that invoices are not processed more than once? Current process in ECC is too rudimentary. Is there a way to configure the system such that it displays

  • Cant restore iCal library from Time Machine ?

    I could not find Calendar library in Time Machine; I was searching under my user name, nothing there So how can I restore my iCal ? By the way, I am not content with iCal, I would like another calendar, but is there anything for free ?

  • Can i tell Yaourt to just build packages?

    I'd like yaourt to just build my packages, but not install them and i'd like this to happens without user interaction. Is this possible? Thanks.