How do I tell unix to run a command via AppleScript?

I have an AppleScript within which I want to start a job running on a remote linux box. Previously in these forums someone helped me do this using the line:
tell application "Terminal" to do script ("rsh Linux_box -l Myuserid scripttorun")
however, this creates a Terminal window that hangs around that I'd rather not have there at all. From within the script, can I just tell the underlying unix system to directly run the rsh command without going through a Terminal?
Thanks.

Don't tell Terminal, use do shell script:
do shell script "rsh Linux_box -l Myuserid scripttorun"

Similar Messages

  • How do you tell if your running leopard or lion?

    How can you tell if your running snow Leopard or Lion?

    go to the "apple logo" at the top left
    click on "about this mac"
    if it says "10.6.8" your running snow leopard
    if it says "10.7" your running LION

  • How do I tell ML to run full Finder on startup...always?

    How do I tell ML to run full Finder on startup...always?  It always runs that almost useless simple Finder.  I have to tell it to run full Finder and enter my admin pw.  I want it to startup with full Finder configured just the way it was when I shut down.

    This is also a reply to red_menace.  I'm sorry I waited so long to get back to this.  My Grandmother passed on Wed. the 14th, and I have been busy helping get the whole fam damily on a somewhat rushed road trip to attend the funeral.
    This IS my admin account I'm talking about.  The computer is new and I have never touched the Parental Controls.  It is completely inactive as far as I can tell.  I restored my system into the new machine with Time Machine and all seemed to go well.
    I think this is related to my other recent post, where I can't see what's in the Trash folder.  I've noticed that when I tell it to run full Finder, and type in my admin PW, not only can I not see or manipulate what's in the Trash, my desktop icons don't show up either.
    Someone replying to my other post suggested I boot into Safe Mode and see if the problem persists there.  I tried that, and the 1st time, the problem whent away.  That is I could see the Trash contents, and the desktop icons where there, but it still insists on starting in Simple Finder.  I even had desktop and Trash back for a while in normal mode, but they went away again, and the last time I booted in Safe Mode, I had no desktop icons and nothing showing in the Trash, when I know darn well that there's something there because I put it there myself.  I AM logged into my admin account.

  • KSLD how to specify kernel name when run ksld command on host

    I am trying to use KSLD v1.0 and I could not reproduce similar result shown on KSLD User Guide. I followed almost everything on KSLD User Guide except I don't know how to specify kernel name when running ksld command. Here is what I have tried.
    #ksld -t debug /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel/sparcv9/unix 99
    I can only get unix and krtld read in. (ksld_dbx)modules could not show any modules *.o
    When I use this
    #ksld -t debug /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel/sparcv9/genunix 99
    then I can only read on genunix.
    Example on KSLD User Guide use unix.281, what is unix.281 created or obtained from target.
    I noticed some SUN Tachnical Support Guru are online to answer questions, thank you for your quick reply.

    I am having the same problem, did you get a solution?
    Thanks,
    I am trying to use KSLD v1.0 and I could not reproduce
    similar result shown on KSLD User Guide. I followed
    almost everything on KSLD User Guide except I don't
    know how to specify kernel name when running ksld
    command. Here is what I have tried.
    #ksld -t debug
    /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel
    sparcv9/unix 99
    I can only get unix and krtld read in.
    (ksld_dbx)modules could not show any modules *.o
    When I use this
    #ksld -t debug
    /ksld-space/slo8/proto/root_sparc/platform/sun4u/kernel
    sparcv9/genunix 99
    then I can only read on genunix.
    Example on KSLD User Guide use unix.281, what is
    unix.281 created or obtained from target.
    I noticed some SUN Tachnical Support Guru are online
    to answer questions, thank you for your quick reply.

  • Total nube to jws, need to run ssh command via web or jws?

    Ok So we had a developer that created this application that can basically run ssh commands via jws I believe. Unfortunately he is no longer here. I am wondering how you do this? I know tha commands that are already set up, but I have no idea how to implement it into my project.
    I am using Struts 2, Java 5, Weblogic 9.2, Spring
    Thanks
    orozcom

    Have a look at:
    http://www.jcraft.com/jsch/
    basically you'd need a small webstart client to wrap something like the above library. Best thing is to try with a standalone java client first. Once that is working have a look at turning it into a webstart app.

  • How can I tell if a message received is via iMessage?

    My daughter has an iPhone  4 with iOS6 on, and I have an iPhone 5 with iOS6 on. We both have iMessage enabled and use it.
    Now I can see when I have sent a message and its an iMessage as it is on blue. But how can tell if a message from my daughter is an iMessage as its in grey/white? I want to make sure that when she's sending me pics its using iMessage and not MMS as its so expensive.
    I know if iMessage can't use data it defaults to SMS, but how can I tell received messages are definitely iMessages? Particularly as I say for pics and videos.
    Thanks

    there's no current way to know that.
    but a simple workaround is - switch MMS on her phone or tell your wireless carrier to put a block on MMS

  • How to create script that run sudo-command, via automator?

    Hi
    I'd want to create script to automate one command I need quite often. I just can't get this to work.
    I'm not using english OS, but I think this is what I do. In automator I choose Utilities -> Run script
    Here's the script I try to run:
    sudo "/Library/Application Support/VMware Fusion/boot.sh --restart"
    I found some tip to do it like this:
    do shell script "sudo /Library/Application Support/VMware Fusion/boot.sh --restart password "pass" with administrator privileges
    Where pass is my admin password.
    This does not work, either.
    Could anybody help me on this?
    Thanks...
    Tomi Toivonen
    Message was edited by: Tomi

    This is not working. What's wrong?
    What's wrong is that the '--restart' is a parameter for boot.sh, and therefore needs to be included within the quotes.
    Additionally, the shell uses spaces to divide parameters, so the spaces in the command will make it appear as multiple commands - '/Library/Application', 'Support/VMware' and 'Fusion/boot.sh'. You need to escape them using a backslash:
    <pre class=command>do shell script "/Library/Application\ Support/VMware\ Fusion/boot.sh --restart" password "pass" with administrator privileges</pre>
    If it's outside of the quotes it would be interpreted as a parameter to 'do shell script' and it won't know what to do with that.

  • Running interactive commands via WFA

    So I am using WFA to deploy my storage systems. For tasks, where there is no commands I am using InvokeWFACluster-CLI.The problem with this is there are some commands that needs a input like the following --security login create -username <username> -application ontapi -authmethod password -role admin -vserver <admin_vservername>--  Is there a way I can provide the password without requiring the user input. In this case, WFA doesn't prompt for a user input either. Thanks,-Prasad

    prasadkm0204,      You need to look to solve the problem of NO WFA Provided commands in the following order: 1. Look for a Posh cmdlet and create your own WFA commands using those. This will almost certianly solve your problem. Powershell cmdlets for almost everything that is possible to do with a cluster/array is provided. See the documentation on this at WFA->Help->Support Links -> Powershell cmdlets Help. See my code example provided here for the specific case of creating a security login account: WFA Input Type of 'password' issues 2.  If at all there is no Powershell cmdlet available for a task, you can create WFA commands using SDK and ZAPIs. They are bundled for Posh and Perl languages.  3. Invoking direct InvokeWfaCluster-CLI is okay but not what I would recommend to use. Not that this will not work, or will create any unwanted issues. It will be fine mostly excapt it may end up askign for User-Inputs. Also the command output unlike ZAPI or Posh cmdlets is returned in string format  and those are compatively difficult to parse and loop through or be useful in creating advanced level commands.  One liners its fine. You'll start to face this as you develope more commands. sinhaa  

  • Running interactive command with Runtime.exec

    I'm trying to run a command via the Runtime.exec interface.
    Occasionally, the command needs to prompt for additional information. The response depends on the specific configuration, however, the command returns a list of options and then waits for a response.
    However, when the command waits for the response, my Java app hangs.
    After I call Runtime.exec, I create 2 threads to consume the contents of stderr and stdout. I then start them and call proc.waitFor()
    I would expect to see the output of the command in the stdout stream even though the command hasn't exited. I had hoped to parse the output to determine the necessary response. However, the calls to read the contents of the stdout and stderr streams block and I never see any output.
    How can I get access to the contents of those streams while the command is still running? Is this supported through the Runtime.exec interface?
    Thanks,
    Shawn

    This article should help:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Hello, How do I tell sql+ to spool output file from windows to Unix server?

    Hello, How do I tell sql+ to spool output file from windows to Unix server?
    I am new to SQL+ and just learned how to spool the file. But file is saved in my local windows enviroment and since it's 2GB in size...I want to spool it directly to another remote unix server.
    Pls answer in detail... I have been to most of the thread and didn't see relevant answer to above question.
    Am I suppose to develope some script which FTP the spool file directly to the server I want to
    or
    i Have to use UTL_FILE Package ?
    Thanks for reply

    You may not be able to...
    SQL*Plus can only spool to the local machine. If you have mapped a directory on the Unix server from your Windows machine, you can specify that directory in your SPOOL command.
    You could telnet to the Unix server, run SQL*Plus there, and spool the file to a local (Unix) directory.
    If the Unix server is also the Oracle database server, you could use the UTL_FILE package rather than using SQL*Plus to spool a file.
    If the Unix server is also an FTP server, you could also FTP the file from your local machine to the server.
    Of course, I would tend to re-examine a requirement to regularly generate a 2 GB text file. It seems likely that there is a better way...
    Justin

  • I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    I'm told there is a virus associated with Adobe Reader. How can I tell if my machine is effected and if so what is the cure. I'm running OS X10.6.8 on an iMac with safari 5.1.5

    There are no viruses currently affecting the Mac but there is something called Flashback which is malware that has been doing the rounds and affected many Mac users. Apple have released some updates to Java that should remove it and improve protection. Run Software Update to see if there is anything for downloading.
    A few precautions that can help prevent your Mac becoming infected:
    If you use Flash only download it directly from Adobe.
    In all web browsers disable Java (but do leave Javascript on as that's something else).
    In all web browsers make sure downloaded files aren't set to automatically open after downloading.
    Consider disabling Java completely (launch Java Preferences in the Utilities folder and disable it - you'll likely rarely, if ever need it. If you do just turn it on and off again when your done).
    You can also check out this link:
    http://lifehacker.com/5900434/how-to-find-out-if-your-mac-was-infected-by-the-fl ashback-trojan-in-one-click

  • How can we tell if a VI is already running before calling Start Asynchronous Call?

    The new Start Asynchronous Call node is awesome for spawning multiple instances of reentrant VIs.  However, I've stumbled a bit in using it for non-reentrant VIs.  The old practice of using the "Run VI" method would allow us to check the Execution.State of the VI before invoking the method to run it.  That way if the State was Running or Run Top Level, we could skip the invoke node and just use a property node to open its front panel.  WIth the Start Asynchronous Call node, it looks like we have to use a strictly typed static VI reference, and when we open the VI reference, the VI gets reserved and its Execution.State = Running.  So, how can I tell if it is not just reserved by the thread but actually executing before making a redundant Start call?
    By the way, the redundant Start has interesting behavior.  It will actually cause the targeted VI to be executed again after it stops.  Even if you hit the Abort button on the target VI, it will immediately execute again and again equal to the number of times the Start Asynchronous Call node was run.  There's nothing wrong with that, and I suppose the simple answer is to just go back to using the old "Run VI" method.  It's just that the ability to wire up those inputs directly to the connector pane is so nice.  Perhaps I am missing something obvious.  Oh, I am referring to the Call and Forget mode (0x80).
    Thanks,
    Dan
    Solved!
    Go to Solution.

    Just throwing it out there, I know I'm a year.5 late on this but if it's a psuedo-modal dialog or some other window that you only want a single instance visible at one time, you can check the FP.State property on the strictly typed vi reference. If it's loaded and visible to the user it will be "Standard", if it was closed or not opened prior then the state will be "Closed".
    I think the standard behavior of serializing execution on another thread would be great for doing a pre-set number of iterations with a sub vi in a non-blocking sort of way but for sub vi's meant for UI interaction checking FP.State works.
    Philip
    CLD

  • How can I tell if my Airport extreme is actually running at "n" speed?

    I have an Airport Extreme (802.11n) with an attached HDD that I use for storing photos etc.
    When I try to access the photos with my MBP it is extremely slow. (so slow and frustrating that I usually take the notebook and sit beside the HDD so I can plug it in directly ... not exactly convenient)
    How can I tell if I'm getting the full performance out of the Airport Extreme?
    I have an Airport Express that I use purely for iTunes. It is NOT an 802.11n model. Will the Airport Express force the Airport Extreme to run at 802.11g speeds even if it is only used for AirTunes?
    Also I have two iPhones (3G and 3GS) in the apartment that connect to the WiFi network. If I upgrade my Airport Express to be 802.11n will I still get slower (g) network speeds because of the iPhones?
    Is there any option other than upgrading to a Time Capsule?
    thanks
    jonathan

    I have an Airport Express that I use purely for iTunes. It is NOT an 802.11n model. Will the Airport Express force the Airport Extreme to run at 802.11g speeds even if it is only used for AirTunes?
    Any non-"n" wireless client (including the 802.11g AirPort Express), connected to a "n" network, will reduce the overall available bandwidth for "n" devices. In addition, to allow these devices to connect, your network must operate on the 2.4 GHz radio ... which has a maximum "n" bandwidth of around 130 Mbps. The 5 GHz, with dual-channel enabled, would provide your "n" clients with 300+ Mbps.
    Also I have two iPhones (3G and 3GS) in the apartment that connect to the WiFi network. If I upgrade my Airport Express to be 802.11n will I still get slower (g) network speeds because of the iPhones?
    Yes.
    Is there any option other than upgrading to a Time Capsule?
    Yes, you may want to consider reconfiguring your AirPorts for a dual-band network by connecting the AirPort Express Base Station (AX) directly to the 802.11n AirPort Extreme Base Station (AEBSn) by Ethernet. In this configuration, you would have two separate wireless networks, one for the higher speed "n" clients and the other for the "g" clients.

  • Trying to install OS X Yosemite but it keeps failing - how can I tell if my iMac is too old? Currently running on OS X 6.8

    Trying to install OSX Yosemite but it keeps failing - how can I tell if my iMac is too old?  Curently running OS x 10.6.8

    Hold on.
    7,1 is a mid 2007 model (20 or 24")
    It can run Yosemite, make sure that you have at least 4GB of Ram.

  • Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

Maybe you are looking for

  • Hide ringtones from the Music Player [S60]

    Tired of having your ringtones listed and played together with your music? Here's how you can hide the tones from the Music Player. This is applicable for Symbian phones only (N82, N95, etc.). WARNING: The advise below involves changing folder attrib

  • Nokia presenets its new flagship phone the 'N97'

    Quite shocking and surprising that none here has bothered to update others about nokia's new i-phone.... oh i mean i-phone competition........ Drum Roll............ Ladies and Gents brace yourself as Nokia presents its new flagship phone the 'N97' Th

  • How to choose Flex2 compliler in VC

    Hi, How do I choose Flex2 compiler in VC? I dont  see Flex2 in options>Compiler>Runtime . regards, subram

  • Where'd the photo go?

    I select get info and add a photo for a buddy. then I choose "use this photo." It works for a few days and then the photo vanishes and is no longer in the get info window. Any help?

  • Difficulty in Getting iTunes U for your University

    Hi all, I'm an employee of Stonehill College in Easton, MA and am researching iTunes U as a possibility at our school. I am wondering about what some of you think about iTunes U, and most important, how difficult it was for your institution to get iT