Problem with shell commands and scripts from an Applescript Application

Hi-
I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
I am also using "try" around each of the items.
What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
Thanks so much!

See here for an explanation of the syntax.
(20960)

Similar Messages

  • G4 AGP, problems with Graphic Cards and booting from Install DVD

    I bought a G4 AGP (with DVD) on Ebay. It has Mac OS9.2 installed and its working correctly so far. It has an additional GraphicsCard in a PCI Slot, on which the Monitor is connected.
    1. The AGP Card doesn't give any output signal... I wondered if this would be the reason that somebody installed the additional Card...
    2. The AGP Card doens't show up in the Profiler... is this normal? According to other users this seems to be a common issue...
    3. I would like to install X 10.4, but when booting from CD, the process stops after a few seconds... and there is no signal on none of the video cards. I tried to remove one or the other card but no luck...
    the firmware is uptodate and the Install DVD is correct aswell, I just bought it from AppleStore...
    I don't have any original CDs available, so I cant run a hardware test.
    Anybody?
    G4 AGP   Mac OS 9.2.x  

    The AGP Card doesn't give any output signal... I wondered if this would be the reason that somebody installed the additional Card...
    Probably. I'd take out the bad original card and replace it with the additional card. Then, check and see if that's what caused the problem. Then only other choice is to take it to the Apple store and have them check it out.
    I don't have any original CDs available, so I cant run a hardware test.
    You can either contact the seller and complain about the missing disks or buy replacement disks for your machine. Give 1-800-MY-APPLE a call. The AHT disk should cost about $20. I don't know what the others would run.

  • Problems with adding music and videos from a different computer?

    I have a 30gig video and it doesnt let me add anything from a computer that my itunes library isnt connected with.
    When i try 2 add something it says ill have to switch to this computers media library and it will delete whats on the ipod. I only want to add a few songs and videos and it without deleteing everything
      Windows XP  

    After you set the iPod to manually update, connect it to the second computer. If that message still appears, click "No" on it. Then, select a song in the iTunes library that you want on your iPod and simply click and drag it to your iPod. The top of iTunes will say "updating iPod" if the song was successfully dragged to the iPod.
    See this article for more information on updating videos:
    http://docs.info.apple.com/article.html?artnum=302509
    The article is much more detailed than what I could ever hope to go into... and it does address manually updating audio files, and using the iPod on an iTunes library that it is not linked to.
    Hope this helps you out
    CG

  • Running Unix commands and scripts from HTML-DB

    Hi,
    How can I run scripts (like perl scripts) that I have on the UNIX machine that the HTML_DB is installed on.
    How for a start can I run even simple UNIX command like "ls" ?
    Thanx,
    Alon

    Alon,
    Best to try the database forum and search for "external process" or "extproc" for this - it needs setup for the listener and in the database itself.
    You need to be aware - all your commands will be run as the oracle user so you should be very careful who can run them and what commands they can run.
    Greg

  • Display problems with print commands and options

    What fonts are required to be installed in windows for Reader X to display all of its component parts?  My fonts were cleaned out and now the print selection screen only displays a blank image with no letters or buttons.  It would be nice not to have to reinstall 1000 fonts just to find the right ones.

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Capture Problem with "escape" command and error message

    Just got my Final Cut Express this week and I'm already having weird dreams about editing... I'm logging about 5 to 7 hours per night trying to figure it all out.
    Anyway, my most pressing issue is that while I am in the "capture" window and I rewind my tape (a Panasonic PV-GS320) (also, running this on my macbook pro with system 10.5.2 just loaded) - I press "now" because that seems to be the easiest to start with and when I try to stop and press "escape" it won't stop. So I tried pressing option/esc and it stops but I get the following message: " The audio sample rate of one or more of your captured media files does not match the sample rate on your source tape. This may cause the video and audio of these media files to be out of sync. Make sure the audio sample rate of your capture preset matches the sample rate of your tape.
    I have some ideas but I wanted to get started working out this issue. Thanks for any help with this all you FXC gurus out there.

    I recorded this in dv widescreen which imports fine in imovie. I am importing in DV NTSC 48Hz. I've tried all the settings. I know I have to probably just find the right mix of settings. I've tried changing the settings in the camera to 4:3 and back to 16:9 but I guess if you record in widescreen, you are stuck with that format. But this is actually a DV not an HDV camera

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • I bought my iphone unlocked from carephone warehouse, I had a problem with the phone and apple swapped it over but they locked it to tmobile!!! what can i do?? I have changed contracts and can not use my phone!

    I bought my iphone from carephone warehouse, sim free and with no contract. 5 months down the line I had a problem with the phone and I booked a genius appointment, they swapped my phone and gave me a new phone but they locked my phone to tmobile!!! I now do not use tmobile and I have an iphone which is locked to tmobile!!! I bought an unlocked phone and apple have locked it!!! what can i do?

    In response to this, Carphone Warehouse (and Phones4U) sell what is commonly referred to as "sim free" handsets - these are not the same as unlocked. Sim free handsets will automatically lock to the first network sim card that the phone is activated with, and that will be permanently. The only way to unlock the handset would be to go through the network (T-Mobile I understand) and request they unlock it for you. More than likely, there will be a charge as you are no longer a T-Mobile customer.
    If you ever want to purchase a new unlocked iPhone, the only place you can buy one is from Apple directly. Any other place will most likely sell sim free handsets.

  • Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    how can i find out what the fix is that works..please

  • Problem with iTunes Match and the song "This will be (an everlasting love)" from Natalie Cole

    Hello,
    I'd like to report a problem with iTunes Match and Natalie Cole's song "This will be (an everlasting love)".
    When I stream it or download it on another device I don't get Natalie Cole's song but another one from Maxine Nightingale (Right back where we started from).
    Please tell me if you have the same problem or how I can report this problem to apple.
    Thank you.

    Hi,
    This is a user to user forum - not Apple. Contact them http://www.apple.com/support/itunes/contact/
    Alternatively if the song was purchased from iTunes, you may be able to report the problem by signing into you iTunes account on your computer. Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
    JIm

  • Hi guys, problem with grey screen and flashing question mark. on top of it while in utility, i'm unable to verify, verify disc permission or repair disc0 which is obviously my main hd. any ideas where to go from here? tried to reistall osx but no luck.

    hi guys, problem with grey screen and flashing question mark. should be straight forward affair but on top of it while in disc utility, i'm unable to verify, verify disc permission, repair or even erase disc0 which is obviously my main hd. any ideas where to go from here? tried to reinstall osx but no luck, stucked when asked to chose location to install osx. would really apreciate any kind of help with this cause i'm quite new mac user. ty

    If you don't have a backup, read this:
    https://discussions.apple.com/docs/DOC-1689

  • I had a problem with my iphone and had to restore and now i have lost all music from itunes any way to get it back ?

    i had a problem with my iphone and had to restore and now i have lost all music from itunes any way to get it back ?

    It should ne in itunes on your computer and included in your regular backup of your computer.
    If for some reason you have failed to backup your music, then - in the U.S only - you can get previous itunes purchases from the beta version of icloud.  Open itunes store, click Purchased, under Quick Links.

  • HT4993 I recently downloaded the latest iOS 7.1. A few days later I had an unrelated problem with my phone and Apple Store provided me with a new iPhone 5.  However, when I tried to restore my backup from the Cloud, it said that iOS7 is required. what do

    I recently downloaded the latest iOS 7.1. A few days later I had an unrelated problem with my phone and Apple Store provided me with a new iPhone 5.  However, when I tried to restore my backup from the Cloud, it said that iOS7 is required. what do I do?

    Update your iphone to ios 7.

  • I hve pop up from adobe that tell me they have problem with my paiement and billing information and to go in my account or my lisence will stop working in 25 days

    I have pop up from adobe that tell me they have problem with my paiement and billing information and to go in my account or my lisence will stop working in 25 days again... I can't find anything wrong in my account infos. What do I need to check and change? Adobe takes the money directly on my credit card since almost 2 years and I haven't change anything sicne then. The expiration date is good. Also, I'm not able to contact the Adobe support, it's not available.

    ImprimerieModerne, my response of about being unable to find the CC was for Kathy P. The issue that you are facing is being worked upon.
    I am sorry for the confusion.
    Regards
    Rajshree

Maybe you are looking for

  • How do I maintain spreads after moving pages from one file to another?

    I'm consolidating several book chapters into one Indesign file, by way of clicking on the thumbnails on the Pages panel and selecting 'Move Pages...' from the contextual menu. The problem I'm having is that I can't maintain the page flow between chap

  • Validation on Master Project

    Hi, I need to make a validation on Master Project, is it possible to do that? I have 1 UDF here, and every project has this 1 UDF and I'm about to make a validation that each project will only have 1 UDF. I tried  this : SELECT U_ProjectDetail, PrjCo

  • I purchase the iMovie app for hours ago, why is it taking so long to download.

    This app is stuck on half way through, I've downloaded it four hours ago. My software is up to date.

  • ClassNoFound Exception

    Hi, After I call java.rmi.Naming.loopup ("xxx"); I got a message about java.lang.NoClassDefFoundError: yyy (1) Server and Client both on the same machine. (2) I used Naming.list to make sure "xxx" is there and registed. (3) the "yyy" is set on my CLA

  • Problem in Vc theme editing

    Hi,            I have a problem in changing vc theme.By using portal theme editor i have changed the theme in FlexRuntimecontrols but its not reflecting in VC.            Currently i am working in VC 7.0  sp13        Regards   Bala