"Watch" command for Leopard?

Is there a command in Leopard similar to the "watch" command available in Linux? To help clarify what I am asking, in Linux I can use the "watch" command to run a command repeatedly, and it displays an updated output to the screen every 2 seconds.
Example:
test-linux:~ # watch netstat -nt
And this gives me the following screen output:
Every 2.0s: netstat -nt Sat Mar 28 10:44:27 2009
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.0.103:22 192.168.0.100:52515 ESTABLISHED
Thanks in advance!

Hi K2theCat;
You might have better luck of an answer if you repost your question over in the UNIX Forum where the command line gurus hang out.
Allan

Similar Messages

  • Keyboard Modifier toggle from command to Control for Leopard

    Hi guys I have this script working after a bit of tweaking and the script was originally posted by Lance Ball long ago for Tiger and was for users with a Pc Keyboard. I am swapping control and command for pure gaming preferences; Unfortunately, The script will not work when the Keyboard Shortcuts menu has been opened last in system preferences, would anyone know how to slightly tweak this applescript so that it selects the keyboard button prior?
    -- Utility script to switch keyboard mapping for Command and Control keys.
    -- Author: Lance Ball & tweaked by Beau Parkes for Snow Leopard
    -- Open System Preferences
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.keyboard"
    end tell
    tell application "System Events"
    -- If we don't have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process "System Preferences"
    get properties
    -- Open up the Modifier Keys sheet
    click button "Modifier Keys…" of tab group 1 of window "Keyboard"
    tell sheet 1 of window "Keyboard"
    -- get the text of the 3rd pop up button
    click pop up button 5
    click menu item "Apple Internal Keyboard / Trackpad" of menu 1 of pop up button 5
    set commandKey to value of pop up button 3
    -- looks like we're in default mode. Swap the keys
    if commandKey ends with "Control" then
    click pop up button 3
    click menu item 4 of menu 1 of pop up button 3
    click pop up button 1
    click menu item 2 of menu 1 of pop up button 1
    else
    -- We're in PC keyboard mode. Swap back to the defaults
    click button "Restore Defaults"
    end if
    -- close the sheet
    click button "OK"
    end tell
    end tell
    tell application "System Preferences" to quit
    else
    -- UI elements not enabled. Display an alert
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.universalaccess"
    display dialog "UI element scripting is not enabled.
    Check \"Enable access for assistive devices\""
    end tell
    end if
    end tell
    Thanks guys, Im excited to hear how I can improve the code.
    Beau Parkes

    Hi, Beau Parks. Welcome to this forum.
    The following version of your script (tested with Mac OS X 10.6.2) should do what you are asking for:
    --BEGINNING OF SCRIPT
    --Optional part:
    tell application "System Events" to set UI_enabled to UI elements enabled
    if not UI_enabled then
    display dialog "This script utilizes the built-in Graphic User Interface Scripting architecture of Mac OS X which is currently disabled." & return & return & "Do you want to activate GUI Scripting by selecting the checkbox “Enable access for assistive devices” in the Universal Access preference pane?" buttons {"Cancel", "OK"} default button 2 with icon 0
    tell application "System Preferences"
    activate
    reveal pane id "com.apple.preference.universalaccess"
    end tell
    return
    end if
    --Main part:
    tell application "System Preferences"
    reveal anchor "keyboardTab" of pane id "com.apple.preference.keyboard"
    tell application "System Events" to tell window "Keyboard" of process "System Preferences" -- GUI Scripting
    click button "Modifier Keys…" of tab group 1 -- open up the Modifier Keys sheet
    tell sheet 1
    click pop up button 5 -- the first button from the top
    click menu item "Apple Internal Keyboard / Trackpad" of menu 1 of pop up button 5
    if (value of pop up button 3 ends with "Control") then -- we're in default mode
    click pop up button 3 -- Control Key
    click menu item 4 of menu 1 of pop up button 3 -- Control Key --> Command Key
    click pop up button 1 -- Command Key
    click menu item 2 of menu 1 of pop up button 1 -- Command Key --> Control Key
    else -- we're in PC keyboard mode; swap back to the defaults
    click button "Restore Defaults"
    end if
    click button "OK" -- close the sheet
    end tell
    end tell
    quit
    end tell
    --END OF SCRIPT
    Message was edited by: Pierre L. (I removed a link to a web page)

  • What is the default key command for the COMMAND key?I seem to have changed it somehow along the way and now when I push the command key it hides all windows or shows desk top I need to correct this as soon as possible-.any ideas?

    What is the default key command for THE COMMAND (apple) key? I seem to have changed it somehow along the way and now when I push the command key (only) it hides all open windows and shows the desk top and when I push it again it shows all windows again...I need to return to default A.S.A.P. just this one key...Any ideas? Thanks in advance...

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • Possible to change color depth for Leopard's VNC server?

    I think it is very nice to include vnc server right into Leopard. But one problem, it seems it will only accept connection from clients when it is set to use full colors. This is painfully slow over WAN, any way to change the requirement from the server end?

    Possible to change color depth for Leopard's VNC server?
    Yes you can modify your screen sharing application so that you can adjust the colour depth. However you need to issue a command in the terminal to get this to work.
    http://www.macworld.com/article/131094/2007/12/screensharepower.html

  • What is the Mac key command for 'send link' in the File Menu?

    Is there a Mac key command for the 'send link' under the File Menu? I use this a lot and like to use key commands.
    Thanks, Connie

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • SOLUTION - Using lpoptions command in Leopard

    I've been wrestling with the lpoptions command for 2 days trying to figure out CUPS printing in Leopard. A new feature in Leopard was overriding the command line request to switch printers and I thought I would post it here.
    Simply check an option other than the Last Printer Used option for Default Printer in the Print & Fax, System Preference. Seems so simple in hindsight, but it was a pain to get there.
    Don't forget to re-enable CUPS shared-printer listening as well if you're on a network.
    Hope this helps

    Thank you very much for your reply.
    Upon changing the query to as you suggest, I am presented with the following:
    Error In SQL Statement Expression. "SELECT *  FROM TESTLIMITS WHERE ModelNumber_Number = " + FileGlobals.ModelNumber
    Specified value does not have the expected type.
    The type of FileGlobals.ModelNumber is a numeric represented as a double precision 64 bit signed integer.
    The database column is also of type int 64.
    Can you suggest a solution?
    Many thanks.

  • Need example vi using AT commands for dialing the modem at the remote end

    Can any one give example vi for dialing up a modem and sending data to remote end

    Hi sindhu6,
    Presuming that you are connected to your modem via a serial connection:
    I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
    And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
    Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
    You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
    The main question is:
    What is the version of your LabVIEW?
    What is the modem that you are using and how is your hardware setup is going to be (e.g. how did you communicate with your modem)? 
    Thank you
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • Questions on Commands for planning application

    Hi,
    1. Where can i get the information on commands for planning functions?
    2. What is the difference between
    ---Execute planning function simple and -
    Execute planning function
    3. I create planning layout with few buttons
    a. Copy: I clicked on the copy button and can see the data in the layout
    b. Save: Clicked on the save icon, Data saved into the planning cube
    c. Change. : clicked on the change and changed few values and then clicked on SAVE button. Data got saved into my planning cube.
    Now I my requirement is when user open the planning layout, It should only be in display mode. But currently automatically all the keyfigures are in change mode (Is it because in query designer, I checked "Start query in the change mode?)
    When user opens the planning layout, he should run the copy function, then should save the data into the planning cube and then should be allowed to chagne. Change button should be in active until data is saved into the plannigng cube. IS this possible?
    Thanks
    Annie

    Hi Deepthi,
    Thanks for your reply.
    I did as you mentioned and its working as expected.
    User wants something like this
    1. Execute the planning layout.
    2. Click on the copy function
    3. Save the data
    4. Click on the change button so that data can be changed now.
    As per your solution, without have change button its working perfectly. But now i want to have change button on the layout. Initially change button should be disabled. When i save the data then it should get active.
    I did the following things but didnt work
    1. Save button i have two commands
    a. Save data
    b. Set_item_parameters
    2. Change button> disable>set_data_entry_mode.
    After executing the layout. I could copy the data and save it. BUT after saving it change button is not getting active.
    I think i did do something in save button (B). I just mentioned button group but didnt mention the change button. Can you please help me?
    Thanks
    Annie

  • How do I transfer a licence for Leopard to a new computer

    Hi.
    I have a family pack for Leopard 10.5. All 5 licenses have been used.
    However, one of the machines now has a different OS on it, so effectively, only 4 of the licences are in use and I wish to re-use the final licence.
    How do I do that please?
    Thanks in advance for your help, folks.
    Neil

    How do I do that please?
    If you haven't already, erase the OS from that machine and install it elsewhere. The client version of Mac OS X uses the honor system, and the number or location of installations isn't stored or tracked anywhere.
    You won't be asked to provide the serial number during installation or setup.
    (49105)

  • Is there a workaround so for Leopard and iCloud yet?

    I have an iMac PowerPC on Leopard at work and a MobileMe account which syncs my iPhone4 (iOS4), iPad1 (iOS4), my work iMac (Leopard) and my home Mac Pro (Snow Leopard). Syncing works perfectly. I love it.
    I've been holding off on updating my MacPro to Lion and my devices to iOS5 and iCloud because I REALLY don't want to lose the ability to use Leopard Addressbook and iCal at work.
    I just hate the thought of my iMac Addressbook and iCal databases not being sync'able anymore rending them useless, certainly more and more as I add to my calendars and contacts on my other 3 devices with my iMac out f the loop since you can't go farther than Leopard on a PowerPC.
    If there is no way to keep my iMac in the synch "loop" after upgrading to iCloud, I guess I'll be forced to use my iPad or iPhone Contacts and Calendar at work and have them sync to iCloud so at least my iPhone, iPad and MacPro will be in sync.
    What a shame. I know I'm not alone. I can't get work to buy me a new Mac (especially since everyone else is on PCs) just so I can use my computer's Addressbook and iCal applications. Otherwise it's still a viable computer.
    I'm hoping there's some 3rd party programmer out there working on solving this issue. There are just too many Leopard computers out there with lots of life in them to become obsolete because of iCloud. What a strange way to kill a computer product and OS line.
    S

    The problem with the post above is that events created in ical don't sync to icloud,ical can only retrieve it from the cloud,so I tried something to solve that.
    Just figured out how to get an icloud-account in ical for Leopard 10.5.8
    you'll find the info in:
    ~/library/calendars/[the calendar that ends with] .caldav/info.plist
    Open the info.plist with textedit
    somewhere down the page you'll find <key>PrincipalURL</key>
    underneath this:
    <string>https://p02-caldav.icloud.com:/XXXXXXXXX/calendars/YYYYYYYY-YYYY-YYYY-YYYY-Y/</string>
    X.....being your unique ID
    Y.....being the calender ID
    In ical:
    -Click create account
    -description = whatever name you like
    -user name= apple id
    -password=apple id
    -server options= https://p02-caldav.icloud.com/[your unique ID]/principal/
    This creates the icloud account.
    Than:
    -export a calendar to the desktop
    -drag the calendar on the icloud account
    there's your icloud calendar!
    click 'get info' from that calendar and you will see the url that should connect to icloud but......it doesn't!
    Can anyone help me with that please?
    I tried a thousand different url's but I can't get ical to connect with icloud.
    Greetz Frank

  • How can I use custom WLST commands for Oracle SOA Suite in Weblogic

    Hi There,
    I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
    I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
    However, my WLST shell is not recognizing the commands and giving me the NameError!
    wls:/devDomain1/domainRuntime> listLogs()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: listLogs
    I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
    I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
    - Launched the WLST shell from Oracle Home.
    cd ORACLE_HOME/common/bin
    ./wlst.sh
    - Tried to run the listLogs command from domainRuntime()
    I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
    I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
    There is no SOA Suite installed.
    Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
    Please advise if this is possible and how?
    Cheers.
    Satish

    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
    I hope this can help

  • Command for "How to find Cursor Size" in Oracle Stored Procedure"

    Hi
    Can u tell me....
    How to find Cursor Size" in Oracle Stored Procedure........
    I want command for that........

    why don't you try select count(*) from your_table;That requires running the same query twice - or rather running two different queries twice. Besides it still doesn't guarantee anything, because Oracle's read consistency model only applies at the statement level (unless you're running in a serialized transaction).
    This is such a common requirement - users are wont to say "well Google does it" - it seems bizarre that Oracle cannot do it. The truth is that that Google cheats. Firstly it guesses the number on the basis of information in its indexes and refines the estimate as pages are returned. Secondly, Google is under no onus to kepp all its data and indexes synchronized - two simultaneous and identical queries which touch different Google servers can return different results. Oracle Text works the same way, which is why we can get a count with CTX_QUERY.COUNT_HITS in estimate mode.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com
    .

  • Event timer for Leopard or Tiger?

    Hey all,
    I want to create an Automator script that will execute at a certain time. Is there a Unix command for this?
    Thanks,
    -Dan Uff

    You can use "cron" to schedule events in unix. I don't know the exact syntax, but you can google it, or check out the man page ("man cron" in Terminal). You can also use iCal to schedule an event, and set the alarm to be "Open file" and then choose your Automator workflow to run.

  • Should I waith for Leopard?

    Thanks in advance, I need advices.
    I am planning to get a 250 GB 2.5" HD (if you know of a larger one internal let me know) for my MacBookPro core duo 2. I will install: Parallel(or one of the others to run windows on my mac),windows xp pro with office 2007, sony acid, ProTools 7.2
    I use adobe photo shop, indesign and illustrato as well.
    I am also waiting for my new Logic and final cut programs (i am learning these two applications).
    All my music and photos will be recorded in external HD and will be installing only the applications in the internal HD.
    1. Should I wait to get leopard to do a fresh install
    2. is it worth it to install the applications and re-install everything when leopard arrives?
    3. how much disk space will be enough to have sony acid and MS office in the windows partition.
    THANK YOU...

    I already have the MacBookPro Duo 2 with 120 gig hd, 2gig RAM.
    I know it is not enough HD. That is why I need a bigger one. I only have 50 gig of free space right now, but I still need to install: sony acid, final cut and logic; PLUS windows xp pro and Micro Soft office PRO.
    The question: is it worth it to install just logic and final cut to play with it, or should I wait for leopard (and my new HD that I still need to buy) to install the applications complete with the accessories that comes with it (sounds, filters, etc.).

  • __ Is there a way to adjust the key commands for switching channels in curves?

    __ Is there a way to adjust the key commands for switching channels in curves?
    By that I mean <command> + 1 for cyan, <command> + 2 for magenta etc. like Photoshop CS3 rather than <option> + 3 for cyan etc.
    There's gotta be a way under Edit --> Keyboard Shortcuts - but I can't find it!
    Thanks,
    Hugh

    Hi,
    You can find the CS4 plug-in here:
    http://blogs.adobe.com/jnack/files/Use_Old_Shortcuts.zip
    It's inline in tis post with some more background info:
    http://blogs.adobe.com/jnack/2010/05/use_legacy_shortcuts_option_in_cs5.html
    regards,
    steve

Maybe you are looking for