Running python script with system arguments from applescript

Hi,
I am trying to run a python code from within applescript. A string should be passed as an argument to the python script, i.e. from the terminal, I would do the following
cd /Users/thatsme/Library/Scripts/myfolder
python my_python_file.py abcdefg
There are two ways I figure I could do this in applescript. "abcdefg" are contained in the variable strNote
a) directly:
do shell script "cd /Users/thatsme/Library/Scripts/myfolder; python my_python_file.py " & strNote
b) calling Terminal
tell application "Terminal"
  activate
          do script "cd /Users/claushaslauer/Library/Scripts/OO_latex; python my_python_file.py " & strNote
end tell
I would prefer option a) as I don't really want to have Terminal windows popping up. The strange thing is, that I see in the applescript results window the result of the print statements in the python script, but no output is generated (the python script contains a few os.system() commands.
Option b) does what it is supposed to be doing, however, applescript does not wait until the script is finished running.
Why does option a) nor work, and what do I need to change to make it work?

Thank you guys for your help, this is really weird.
Here is my full applescript
set strNoteQ to "1+1=2"
(* for whatever reason, this does not work *)
do shell script "cd /Users/claushaslauer/Library/Scripts/OO_latex; python create_latex_pdf.py " & strNoteQ
Below is my python skript.
When I call it as
     python create_latex_pdf.py 1+1=2
it creates a wonderful pdf.
With the applescript above, it prints the print statements, it also generates the latex file temp.tex -- correctly, so I assume the string in this example is ok.
However, it does not execute the latex related commands (the three os.system calls)
Is it not a good idea / not possible to execute os.system in a python script that is called from applescript? <sorry if I had brought all the attention to the string issue>
here is the python script:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import datetime
import time
def main():
    str_latex_note = sys.argv[1]
    print "%s" %  str_latex_note
    preamble = """\documentclass{article}
\usepackage{amsmath,amssymb}
\pagestyle{empty}
\\begin{document}
{\huge
%s
\end{document}"""% (str_latex_note)
    ## write latex file
    cur_path = r'/Users/mypath/Library/Scripts/OO_latex'
    cur_file = "temp.tex"
    fobj = open(os.path.join(cur_path, cur_file), 'w')
    fobj.writelines(preamble)
    fobj.close()
    ## process latex file
    print cur_path
    os.chdir(cur_path)
    cmd = 'latex temp.tex'
    print cmd
    print "running latex"
    os.system(cmd)
    cmd2 = 'dvips -E -f -X 1200 -Y 1200 temp.dvi > temp.ps'
    print "running dvips"
    os.system(cmd2)
    cmd3 = 'epstopdf temp.ps'
    print "running epstopdf"
    os.system(cmd3)
    print "done!"
if __name__ == '__main__':
    main()

Similar Messages

  • Unexpected error when running Python scripts?

    I always get this crash when I try to run python scripts. Anyone know what is causing this or how to fix it?
    Process:         Python [8022]
    Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python
    Identifier:      Python
    Version:         2.7.2 (2.7.2)
    Code Type:       X86-64 (Native)
    Parent Process:  ??? [1]
    User ID:         501
    Date/Time:       2012-11-23 05:13:46.990 -0700
    OS Version:      Mac OS X 10.8.2 (12C60)
    Report Version:  10
    Interval Since Last Report:          62859 sec
    Crashes Since Last Report:           6
    Per-App Crashes Since Last Report:   4
    Anonymous UUID:                      9A83E25A-0D91-6DC9-960B-E7126A515A89
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00007faa1b19ad5e
    VM Regions Near 0x7faa1b19ad5e:
        MALLOC_TINY            00007faa1b000000-00007faa1b100000 [ 1024K] rw-/rwx SM=COW 
    -->
        MALLOC_SMALL           00007faa1b800000-00007faa1c800000 [ 16.0M] rw-/rwx SM=COW 
    Application Specific Information:
    *** single-threaded process forked ***
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_c.dylib                       0x00007fff87fafde1 tiny_free_list_add_ptr + 112
    1   libsystem_c.dylib                       0x00007fff87fb354e tiny_malloc_from_free_list + 1078
    2   libsystem_c.dylib                       0x00007fff87fb3ad8 szone_malloc_should_clear + 971
    3   libsystem_c.dylib                       0x00007fff87fa6153 malloc_zone_malloc + 71
    4   libsystem_c.dylib                       0x00007fff87fa6c61 realloc + 82
    5   org.python.python                       0x00000001065e6ac9 0x10658b000 + 375497
    6   org.python.python                       0x00000001065e4b23 0x10658b000 + 367395
    7   org.python.python                       0x00000001065e6646 0x10658b000 + 374342
    8   org.python.python                       0x00000001065a4494 PyEval_EvalFrameEx + 8967
    9   org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    10  org.python.python                       0x00000001065dbd7a 0x10658b000 + 331130
    11  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    12  org.python.python                       0x00000001065b79bf 0x10658b000 + 182719
    13  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    14  org.python.python                       0x00000001065a8018 PyEval_CallObjectWithKeywords + 177
    15  org.python.python                       0x00000001065ba46e PyCodec_Encode + 78
    16  org.python.python                       0x0000000106633978 PyUnicodeUCS2_AsEncodedString + 141
    17  org.python.python                       0x00000001065c232f 0x10658b000 + 226095
    18  org.python.python                       0x00000001065c0c91 0x10658b000 + 220305
    19  org.python.python                       0x00000001065bfc43 0x10658b000 + 216131
    20  org.python.python                       0x00000001065bff0d PyArg_ParseTuple + 143
    21  _socket.so                              0x0000000106b2c7f3 0x106b28000 + 18419
    22  _socket.so                              0x0000000106b2b743 0x106b28000 + 14147
    23  org.python.python                       0x00000001065a2f72 PyEval_EvalFrameEx + 3557
    24  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    25  org.python.python                       0x00000001065dbd7a 0x10658b000 + 331130
    26  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    27  _functools.so                           0x00000001068d34a2 0x1068d2000 + 5282
    28  org.python.python                       0x000000010659a6c6 PyObject_Call + 97
    29  org.python.python                       0x00000001065a478d PyEval_EvalFrameEx + 9728
    30  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    31  org.python.python                       0x00000001065a88df 0x10658b000 + 121055
    32  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    33  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    34  org.python.python                       0x00000001065a88df 0x10658b000 + 121055
    35  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    36  org.python.python                       0x00000001065a8869 0x10658b000 + 120937
    37  org.python.python                       0x00000001065a463a PyEval_EvalFrameEx + 9389
    38  org.python.python                       0x00000001065a2147 PyEval_EvalCodeEx + 1934
    39  org.python.python                       0x00000001065a19b3 PyEval_EvalCode + 54
    40  org.python.python                       0x00000001065ddc70 0x10658b000 + 339056
    41  org.python.python                       0x00000001065ddd3c PyRun_FileExFlags + 165
    42  org.python.python                       0x00000001065dd726 PyRun_SimpleFileExFlags + 410
    43  org.python.python                       0x0000000106601e27 Py_Main + 2715
    44  libdyld.dylib                           0x00007fff8fe447e1 start + 1
    Thread 1:: Dispatch queue: com.apple.libsystem_network
    0   libsystem_c.dylib                       0x00007fff87fb32dd tiny_malloc_from_free_list + 453
    1   libsystem_c.dylib                       0x00007fff87fb3ad8 szone_malloc_should_clear + 971
    2   libsystem_c.dylib                       0x00007fff87fa6153 malloc_zone_malloc + 71
    3   libsystem_c.dylib                       0x00007fff87fa6ba7 malloc + 41
    4   libsystem_c.dylib                       0x00007fff8801026d tre_make_trans + 412
    5   libsystem_c.dylib                       0x00007fff8800ff59 tre_ast_to_tnfa + 145
    6   libsystem_c.dylib                       0x00007fff8800ff2f tre_ast_to_tnfa + 103
    7   libsystem_c.dylib                       0x00007fff8800e30b tre_compile + 4627
    8   libsystem_c.dylib                       0x00007fff8800c79f regncomp_l + 346
    9   libsystem_c.dylib                       0x00007fff87f9b278 __asl_parse_time_block_invoke_0 + 151
    10  libdispatch.dylib                       0x00007fff8a6ce0b6 _dispatch_client_callout + 8
    11  libdispatch.dylib                       0x00007fff8a6ce041 dispatch_once_f + 50
    12  libsystem_c.dylib                       0x00007fff87f9ad57 asl_parse_time + 61
    13  libsystem_c.dylib                       0x00007fff87fa139a _asl_time_string + 72
    14  libsystem_c.dylib                       0x00007fff87fa130e asl_msg_to_string_raw + 322
    15  libsystem_c.dylib                       0x00007fff87f99c77 _asl_send_message + 1273
    16  libsystem_c.dylib                       0x00007fff87f99412 _asl_lib_vlog + 513
    17  libsystem_c.dylib                       0x00007fff87f86839 vsyslog + 107
    18  libdispatch.dylib                       0x00007fff8a6d3cd1 _dispatch_log + 224
    19  libdispatch.dylib                       0x00007fff8a6cfba0 _dispatch_update_kq + 430
    20  libdispatch.dylib                       0x00007fff8a6cf9ee _dispatch_mgr_wakeup + 16
    21  libdispatch.dylib                       0x00007fff8a6cee65 _dispatch_wakeup + 28
    22  libdispatch.dylib                       0x00007fff8a6cee10 _dispatch_queue_push_list_slow2 + 33
    23  libdispatch.dylib                       0x00007fff8a6ceecd _dispatch_wakeup + 132
    24  libdispatch.dylib                       0x00007fff8a6cf027 _dispatch_resume_slow + 17
    25  libxpc.dylib                            0x00007fff8ea12ff2 _xpc_connection_listen_for_reply + 198
    26  libxpc.dylib                            0x00007fff8ea13ccf xpc_connection_send_message_with_reply + 122
    27  libsystem_network.dylib                 0x00007fff9163bd8c __net_helper_get_settings_block_invoke_0 + 181
    28  libdispatch.dylib                       0x00007fff8a6d1f01 _dispatch_call_block_and_release + 15
    29  libdispatch.dylib                       0x00007fff8a6ce0b6 _dispatch_client_callout + 8
    30  libdispatch.dylib                       0x00007fff8a6cf47f _dispatch_queue_drain + 235
    31  libdispatch.dylib                       0x00007fff8a6cf2f1 _dispatch_queue_invoke + 52
    32  libdispatch.dylib                       0x00007fff8a6cf1c3 _dispatch_worker_thread2 + 249
    33  libsystem_c.dylib                       0x00007fff87f8fcab _pthread_wqthread + 404
    34  libsystem_c.dylib                       0x00007fff87f7a171 start_wqthread + 13
    Thread 2:
    0   libsystem_kernel.dylib                  0x00007fff85af06d6 __workq_kernreturn + 10
    1   libsystem_c.dylib                       0x00007fff87f8feec _pthread_workq_return + 25
    2   libsystem_c.dylib                       0x00007fff87f8fcb3 _pthread_wqthread + 412
    3   libsystem_c.dylib                       0x00007fff87f7a171 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000000000fffe0  rbx: 0x00000000000009ac  rcx: 0x00007faa1b000000  rdx: 0x00007faa1b09ad80
      rdi: 0x0000000106585000  rsi: 0x00000001066fea00  rbp: 0x00007fff5967ced0  rsp: 0x00007fff5967cec8
       r8: 0x000000000000003f   r9: 0x000007faa1b09ad8  r10: 0x00007faa1b0b6300  r11: 0x000000000000fffe
      r12: 0x0000000000000002  r13: 0x00007faa1b09ad60  r14: 0x00000000066efffe  r15: 0x00000001066fea00
      rip: 0x00007fff87fafde1  rfl: 0x0000000000010202  cr2: 0x00007faa1b19ad5e
    Logical CPU: 0
    Binary Images:
           0x106581000 -        0x106581fff  org.python.python (2.7.2 - 2.7.2) <A3CE5618-7FE0-3307-B2C1-DE2661C936B2> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/C ontents/MacOS/Python
           0x10658b000 -        0x106698fff  org.python.python (2.7.2 - 2.7.2) <B2E5B3C9-2D7C-37D7-B23D-84DEF8DDAF28> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
           0x10689b000 -        0x10689efff  operator.so (60.3) <16E539EB-683E-3BDF-83AA-77ED26146560> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/operator.so
           0x1068d2000 -        0x1068d3fff  _functools.so (60.3) <610F4A5F-CEE5-3353-94CD-F586D4F2DAD0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_functools.so
           0x1068d7000 -        0x1068d8fff  _locale.so (60.3) <D7B03EB6-5126-3306-8699-D3816B044AAB> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_locale.so
           0x1068dc000 -        0x1068ddfff  time.so (60.3) <B81E8A2D-38E3-3BA7-AA2F-7A543F20DACF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/time.so
           0x106924000 -        0x106926fff  select.so (60.3) <191F03CF-4038-38AF-A0BA-22AC770298A0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/select.so
           0x10692c000 -        0x10692dfff  fcntl.so (60.3) <5E2DBA68-27EB-3589-B7B4-8B7918DC9716> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/fcntl.so
           0x106931000 -        0x106934fff  _struct.so (60.3) <2D1A807F-2084-3CEE-9E4B-DE124502AB69> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_struct.so
           0x10693a000 -        0x10693cfff  binascii.so (60.3) <A96BD9F2-1025-3803-A942-AC8AE48243A9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/binascii.so
           0x106940000 -        0x106941fff  cStringIO.so (60.3) <F4174A1F-B66E-3986-985C-0632FCD266F9> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cStringIO.so
           0x106946000 -        0x106949fff  _collections.so (60.3) <20EAC750-00E1-3216-BB1F-472C0CEA6118> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_collections.so
           0x10698f000 -        0x106995fff  itertools.so (60.3) <C273B16D-A69E-3D3C-B3F5-43F6B0BC333F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/itertools.so
           0x10699e000 -        0x10699efff  _bisect.so (60.3) <BEAA36C6-86EF-3272-9F95-29AED2B60109> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_bisect.so
           0x1069a2000 -        0x1069a3fff  _heapq.so (60.3) <C02D109C-B83B-385E-86E9-04F551749448> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_heapq.so
           0x1069a8000 -        0x1069b3ff7  datetime.so (60.3) <B359E7F5-D6D1-343C-A770-F1186D123691> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/datetime.so
           0x1069bc000 -        0x1069c5fff  _sqlite3.so (60.3) <C0006BFF-3590-3B8E-A9B5-DECD4A764236> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_sqlite3.so
           0x106acf000 -        0x106ad3fff  math.so (60.3) <15868E58-734E-3A35-A4C2-AC4625F37902> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/math.so
           0x106b19000 -        0x106b1afff  _hashlib.so (60.3) <9B8C96E2-6DE6-3830-B300-35C790DA40C7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_hashlib.so
           0x106b1f000 -        0x106b22fff  strop.so (60.3) <33FECDE8-3D85-37A8-95CA-08C1F2B820D4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/strop.so
           0x106b28000 -        0x106b2eff7  _socket.so (60.3) <E186283B-C7D4-3D7E-9198-CD7761B70100> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_socket.so
           0x106b36000 -        0x106b39fff  _ssl.so (60.3) <2AEDA15A-56F4-3E82-9415-297BFE6C8F38> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ssl.so
           0x106b7f000 -        0x106b7ffff  _scproxy.so (60.3) <43CCA6F3-BA7C-3186-8450-B63D00D8AC6F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_scproxy.so
           0x106bc4000 -        0x106bc8fff  array.so (60.3) <56A0FB1F-7603-3450-AF31-9801D9AB95D5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/array.so
           0x106bce000 -        0x106bcffff  _random.so (60.3) <E2D3E74F-9797-30D4-A9B7-E9FE72564C50> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_random.so
           0x106bd3000 -        0x106bdffff  cPickle.so (60.3) <869D9434-2C00-3EC8-93A1-2A8104957B7E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/cPickle.so
           0x106c25000 -        0x106c29fff  _json.so (60.3) <5899CF83-4D57-34C0-A01F-DC215C5C26D0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_json.so
           0x106cae000 -        0x106cbffff  _io.so (60.3) <79CDBE7E-1D18-39A6-99AA-CA9466FAD6C2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_io.so
           0x106d4e000 -        0x106d4efff  grp.so (60.3) <F1C42F13-D323-3F5A-B59E-ACB09DD18ABE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/grp.so
           0x106fd2000 -        0x106fd4fff  zlib.so (60.3) <987E51DB-7827-3F1A-AD5E-CF58C673E644> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/zlib.so
           0x106fd9000 -        0x106fdffff  pyexpat.so (60.3) <72D45F21-63F8-3EEF-B71D-DC73B0309D55> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/pyexpat.so
           0x107066000 -        0x107077fff  _ctypes.so (60.3) <A4E934BA-B8B3-3CD6-9AA6-78458DEAA491> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/_ctypes.so
           0x10740e000 -        0x1074b2ff7  unicodedata.so (60.3) <D2954B53-CE7D-3182-8056-F04F7CAABC6C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynl oad/unicodedata.so
        0x7fff66181000 -     0x7fff661b593f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
        0x7fff84fa3000 -     0x7fff8518cfff  com.apple.CoreFoundation (6.8 - 744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff851b6000 -     0x7fff853b6fff  libicucore.A.dylib (491.11.1) <CC318A27-878A-38CE-9292-1B98353FA9C7> /usr/lib/libicucore.A.dylib
        0x7fff85724000 -     0x7fff85729fff  libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
        0x7fff85ade000 -     0x7fff85af9ff7  libsystem_kernel.dylib (2050.18.24) <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
        0x7fff85dc3000 -     0x7fff85dcefff  libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
        0x7fff861ed000 -     0x7fff861eeff7  libSystem.B.dylib (169.3) <365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
        0x7fff86617000 -     0x7fff86625fff  libcommonCrypto.dylib (60026) <2D6537F5-1B5E-305C-A1CF-D1FA80CA3939> /usr/lib/system/libcommonCrypto.dylib
        0x7fff87f30000 -     0x7fff87f38fff  liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
        0x7fff87f79000 -     0x7fff88045fe7  libsystem_c.dylib (825.25) <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
        0x7fff88046000 -     0x7fff88058ff7  libz.1.dylib (43) <2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
        0x7fff88134000 -     0x7fff88159ff7  libc++abi.dylib (24.4) <E7BD9363-1D25-3551-A68A-2E2FF6ABECD7> /usr/lib/libc++abi.dylib
        0x7fff88221000 -     0x7fff88272ff7  com.apple.SystemConfiguration (1.12.2 - 1.12.2) <E095637C-457F-3D8F-AE32-A032F9D5A46C> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
        0x7fff8835f000 -     0x7fff8838dff7  libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
        0x7fff89823000 -     0x7fff8982bff7  libsystem_dnssd.dylib (379.32.1) <62AA0B84-188A-348B-8F9E-3E2DB08DB93C> /usr/lib/system/libsystem_dnssd.dylib
        0x7fff89f9d000 -     0x7fff8a09afff  libsqlite3.dylib (138.1) <ADE9CB98-D77D-300C-A32A-556B7440769F> /usr/lib/libsqlite3.dylib
        0x7fff8a6cc000 -     0x7fff8a6e1ff7  libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
        0x7fff8a704000 -     0x7fff8a750ff7  libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
        0x7fff8ac23000 -     0x7fff8ac24fff  libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
        0x7fff8acf1000 -     0x7fff8adf3fff  libcrypto.0.9.8.dylib (47) <74F165AD-4572-3B26-B0E2-A97477FE59D0> /usr/lib/libcrypto.0.9.8.dylib
        0x7fff8aeea000 -     0x7fff8b00292f  libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
        0x7fff8b070000 -     0x7fff8b072fff  com.apple.TrustEvaluationAgent (2.0 - 23) <A97D348B-32BF-3E52-8DF2-59BFAD21E1A3> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
        0x7fff8b112000 -     0x7fff8b113ff7  libsystem_sandbox.dylib (220) <3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
        0x7fff8ba1a000 -     0x7fff8ba1bff7  libdnsinfo.dylib (453.18) <E7595861-ECF9-336E-9901-BED2620FAA80> /usr/lib/system/libdnsinfo.dylib
        0x7fff8bbfa000 -     0x7fff8bc62ff7  libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
        0x7fff8c0fb000 -     0x7fff8c132ff7  libssl.0.9.8.dylib (47) <923945E6-C489-3406-903B-A362410753F8> /usr/lib/libssl.0.9.8.dylib
        0x7fff8cd20000 -     0x7fff8cd56fff  libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
        0x7fff8d244000 -     0x7fff8d249fff  libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
        0x7fff8ea07000 -     0x7fff8ea29ff7  libxpc.dylib (140.41) <FAC04D8B-680E-325F-8F0C-DD69859D0E01> /usr/lib/system/libxpc.dylib
        0x7fff8eadd000 -     0x7fff8eb2cff7  libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
        0x7fff8eb55000 -     0x7fff8eb57fff  libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
        0x7fff8f0ec000 -     0x7fff8f0f2fff  libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
        0x7fff8fe42000 -     0x7fff8fe45ff7  libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
        0x7fff8fe93000 -     0x7fff8fe95ff7  libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
        0x7fff8fe96000 -     0x7fff8fe9dfff  libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
        0x7fff9022f000 -     0x7fff90230fff  libffi.dylib (18) <D20FE81C-271C-3446-ABC8-50B6A6F5BEA4> /usr/lib/libffi.dylib
        0x7fff904f0000 -     0x7fff9050bff7  libexpat.1.dylib (12) <95D59F1F-0A5C-3F33-BA97-26F7D796CE7A> /usr/lib/libexpat.1.dylib
        0x7fff908e2000 -     0x7fff908e3fff  libDiagnosticMessagesClient.dylib (8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8> /usr/lib/libDiagnosticMessagesClient.dylib
        0x7fff90c13000 -     0x7fff90c14ff7  libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
        0x7fff912c0000 -     0x7fff912c6ff7  libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
        0x7fff91562000 -     0x7fff915cbfff  libstdc++.6.dylib (56) <EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
        0x7fff915cc000 -     0x7fff915ccfff  libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
        0x7fff91635000 -     0x7fff91643ff7  libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
    External Modification Summary:
      Calls made by other processes targeting this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by this process:
        task_for_pid: 0
        thread_create: 0
        thread_set_state: 0
      Calls made by all processes on this machine:
        task_for_pid: 5843
        thread_create: 1
        thread_set_state: 0
    VM Region Summary:
    ReadOnly portion of Libraries: Total=67.5M resident=24.5M(36%) swapped_out_or_unallocated=43.0M(64%)
    Writable regions: Total=66.6M written=11.4M(17%) resident=19.8M(30%) swapped_out=0K(0%) unallocated=46.8M(70%)
    REGION TYPE                      VIRTUAL
    ===========                      =======
    MALLOC                             55.5M
    MALLOC guard page                    32K
    STACK GUARD                        56.0M
    Stack                              10.6M
    VM_ALLOCATE                          20K
    __DATA                             1924K
    __LINKEDIT                         53.6M
    __TEXT                             13.9M
    __UNICODE                           544K
    shared memory                        12K
    ===========                      =======
    TOTAL                             192.0M
    Model: MacBookAir4,2, BootROM MBA41.0077.B0F, 2 processors, Intel Core i7, 1.8 GHz, 4 GB, SMC 1.73f65
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE9), Broadcom BCM43xx 1.0 (5.106.98.81.22)
    Bluetooth: Version 4.0.9f33 10885, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SM256C, 251 GB
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8404, 0xfd110000 / 3
    USB Device: FaceTime Camera (Built-in), apple_vendor_id, 0x850a, 0xfa200000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x024c, 0xfa120000 / 5
    USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821f, 0xfa113000 / 8

    I guess you could say Cheetah is in stable release since 2010 as that was when it was last updated. Python has changed considerably since then.
    Pypl.org shows a list of available packages by ascending Python version. By the time one looks for Cheetah support in Python 2.6, it is strictly Linux. In the Python 2.7 section, there is no Cheetah package listed at all.
    In my estimation, development on Cheetah has been abandoned, and it remains incompatible with Python 2.7.2 as installed on OS X. You should abandon Cheetah. Look at Jinja2, or Django.
    OS X still uses Python scripts for some system activity. If the system version of Python gets messed up with an incompatible module, these system python scripts are compromised too.
    Seriously, look at Pythonbrew. It allows you to create full-blown Python installs and switch between versions and virtual environments.

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

  • What is correct way to run python script in build phases

    in xcode 4.6  build phases i have added a run script
        python build.py
        exit
    when i build project it never finishes it keep on saying running custom shell script
    what is correct way to run python script in build phases ?

    /usr/bin/python build.py
    exit
    still the issue remians.

  • Running Premiere PrO cs6. After upgrading to Yosemite 10.10.2 Adobe Premiere wont run, come up with system error and shuts down. Any one else had this issue?

    Running Premiere PrO cs6. After upgrading to Yosemite 10.10.2 Adobe Premiere wont run, come up with system error and shuts down. Any one else had this issue?

    can try this Premiere Pro CC, CC 2014, or 2014.1 freezing on startup or crashing while working (Mac OS X 10.9, and later)

  • How to run a java class from a shell script with passing arguments

    hi,
    I have a jar with all the required classes. I was using ant to run the classes i needed.
    But now i want to use a shell script to run the class, also the class accepts some arguments so when script is run it should accept arguments.
    So can any one tell me how to set class paths, jar location and call the required class from shell script or batch file with passing arguments to it.
    Thanks in advance.

    Let's say that the order of arguments is as below
    1. Jar file name
    2. Classpath
    Your shell script would look like this
    java -cp $CLASSPATH:$2 -jar $1 I am assuming that your jar file has the required main-class entry in its manifest. Note that $1...$9 represent the arguments to this shell script.
    The same goes for a batch file
    java -cp %CLASSPATH%;%2 -jar %1

  • Trouble using Run Shell Script with python in Automator

    Hi. I have a python script I want to run in Automator (update_puzzles.py). All it does is check, rearrange and update files and there is not supposed to be any input. I can get the script to run outside of Automator, in Terminal, by navigating to the right directory and typing "python update_puzzles.py"
    I must not be setting up Run Shell Script correctly. I have it set to /bin/bash and Pass Input to stdin. The command line simply reads python /pathname/update_puzzles.py (where pathname is the path to the .py file, which I got by dragging the file onto the Run Shell Script command window). There are no actions before this in my workflow and the action after is View Results.
    The log says Run Shell Script failed, and the error is "Traceback (most recent call last):"
    Any suggestions?
    Thanks so much.

    If the script is expecting to do stuff with files in the same directory as the executable, you will probably need to add a statement to change to the appropriate working directory. The shell used in the Automator *Run Shell Script* action is a generic one that does not share any of the environment variables that the Terminal uses.

  • Setup JOB to run sh script with argument

    Hi all,
    Can anyone share your view and experience on How to setup Job to execute shell script with argument?
    For example : I need to execute /export/home/joel/test.sh 20060921
    20060921 is the argument.
    If I define a program to execute the script, can I use DEFINE_PROGRAM_ARGUMENT to set the argument?
    I am not sure because I have the understanding that it will only work with STORED_PROCEDURE program type.
    How does Oracle Scheduler handle such case?
    I really appreaciate your response.
    Thanks

    Hi,
    The thread above contains information specific to shell scripts. For stored procedures you just set job_type to 'stored_procedure' , number_of_arguments to the number of arguments that you want to pass into the stored procedure and then call set_job_argument_value for each argument before finally enabling the job . So for example
    begin
    dbms_scheduler.create_job(
    job_name=>'j1',
    job_type=>'stored_procedure',
    job_action=>'dbms_output.put_line',
    number_of_arguments=>1);
    dbms_scheduler.set_job_argument_value('j1', 1, 'this is my argument');
    dbms_scheduler.enable('j1');
    end;
    Hope this helps,
    Ravi.

  • Run Python Script in Automator

    I have a python script (which was written for me), and I would like to make it so that the script executes every x minutes. I know this should be simple to do, but I can't figure it out.
    Thus far, I have created a workflow in automator, used the "Run Shell Script" action, and pasted the script into the text field.
    "Workflow failed - 1 error
    I'm very new to this, so I'm sure it's a simple error. Any help would great.
    Here is the script I am trying to execute.
    #!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
    # you can change the above line to point to the location of python
    # on your system (you can check this by typing 'which python' into
    # Terminal.app), but this isn't necessary if you execute the script
    # using "python ksl.py [URL]"
    # change the value of NAME to your desired name
    NAME = "Bob Jones"
    # change the value of EMAIL to your desired email
    EMAIL = "[email protected]"
    # your message will be the contact name as mined from the page source,
    # followed by whatever message you enter between the following triple quotes
    MESSAGE = """Replace this text with your message. Newlines are also OK."""
    import mechanize
    import re
    import sys
    def setupBrowser(url):
    b = mechanize.Browser()
    # b.sethandlerobots(False)
    # b.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)')]
    try:
    b.open(url)
    except mechanize._mechanize.BrowserStateError:
    print >> sys.stderr, "You have mistyped the URL. It must by in the following format, including the quotes and the preceding 'http://':\n\t %s [--test] 'http://www.blah.com'" % (sys.argv[0])
    sys.exit(1)
    return b
    def grabLinks(b):
    """Takes in a mechanize.Browser() object pointed to a listings URL and returns a listing of classified ad links."""
    links = []
    for link in b.links():
    # change this line if the URL format ever changes
    if re.search(r'&ad=', link.url):
    links.append(mechanize.urljoin(link.base_url, link.url))
    return links
    if _name_ == '_main_':
    # check for proper command line args
    if len(sys.argv) != 2 and len(sys.argv) != 3:
    print >> sys.stderr, "Usage: %s [--test] url" % (sys.argv[0])
    sys.exit(1)
    args = sys.argv[1:]
    if len(args) == 1:
    # start from listings page
    url = args[0]
    # set up the mechanize browser object
    b = setupBrowser(url)
    # grab only the relevant ad links
    links = grabLinks(b)
    if not links or len(links) == 0:
    # the links do not follow the same format as the original page
    print >> sys.stderr, "The link format has changed, or you have mistyped the URL."
    sys.exit(1)
    # open the first link on the listings page
    b.open(links[0])
    else:
    # start from a single listing
    if args[0] != "--test":
    print >> sys.stderr, "Usage %s [--test] url"
    sys.exit(1)
    url = args[1]
    b = setupBrowser(url)
    # grab the HTML so that we can search for the contact name
    response = b.response().get_data()
    # perform a regex search on the HTML for the contact name
    regexSearch = re.search(r'Contact Name:\s*\s(w+)s', response)
    contactName = ""
    if regexSearch:
    # contact name found -- store it
    contactName = regexSearch.group(1)
    else:
    # contact name not found -- use generic greeting
    contactName = "Hello"
    theOne = ""
    # find the "Email Seller" link (stored as "theOne")
    for link in b.links():
    # again, if the URL changes, change this line
    if re.search(r'xmldb=', link.url):
    theOne = mechanize.urljoin(link.base_url, link.url)
    if theOne == "":
    # something went wrong
    print >> sys.stderr, "'Email Seller' link has changed formats within the HTML."
    sys.exit(1)
    b.open(theOne)
    # fill out the forms. note that I am grabbing the SECOND form here.
    # again, this might change over time, so feel free to change this from
    # nr=1 to nr=0 (for the first form), nr=2 (for the third form), etc.
    b.select_form(nr=1)
    b['form_4'] = NAME
    b['form_5'] = EMAIL
    # append the contact name to the rest of the message
    MESSAGE = contactName + """,\n\n""" + MESSAGE
    b['form_6'] = MESSAGE
    # submit the form
    b.submit()
    b.close()

    If the script works, and all you need is to execute every x minutes, use launchd, and its simple to write with the Lingon GUI: http://sourceforge.net/projects/lingon/files/

  • Automator workflow hangs indefinitely after running Python script

    Hello,
    I have an Automator workflow set up to use a one-line shell script to launch a Python script. The Python script has a GUI and stays open for the user to interact with it. It launches fine, but I've noticed that my Automator workflow hangs and the spinning workflow cursor won't disappear from the menu bar unless I manually kill the workflow or quit the Python app. Not a huge deal to kill it manually, but annoying.
    I saw someone posted a way to kill an Automator workflow using an AppleScript or shell script embedded within the workflow, but adding that as a second step doesn't work for me—the Automator workflow never gets to that step, presumably because it's waiting for my Python app to close. Anyone know a way to make the Automator workflow kill itself after launching a Python script?

    By default, AppleScript (and, by extension, Automator) will wait for theshell process to exit before continuing the workflow (or exiting if the shell script action is the last step.
    This can be overcome by launching the shell process as a background process, which returns control to AppleScript/Automator, and allows your workflow to continue (or end).
    Just append:
    &> /dev/null
    after your shell command to launch it in the background, e.g.:
    /usr/bin/python /path/to/your.py &> /dev/null
    and you should get what you expect.

  • Snow Leopard 10.6.2 takes a long time to run 'X11.app' (with system log)

    Hello everyone, English is not my mother tongue so may not be exactly correct, sorry about that.
    Background:
    I have a MacBook White (13-inch, Mid 2009) that isn't unibody, and was running Leopard 10.5.
    I did a clean installation and now Snow Leopard 10.6.2, with iLife, iWork, and many many apps.
    I am the only one who will use the Mac and my user account is as the 'admin'.
    I previously had a problem concerning X11 too:
    http://discussions.apple.com/thread.jspa?threadID=2343732
    *What I've done:*
    (1) rename my HD to 'Michaels_Home' under 'Get Info' from Finder (I can't rename in Disk Utility though)
    (2) press return (enter)
    (3) change my home folder path to the '/Volumes/Michaels_Home/Users/Michael' (http://eshop.macsales.com/Reviews/Framework.cfm?page=Tips/relocate3/relocate3.ht ml)
    (4) restart
    (5) log in and open X11
    (6) problem solved!!
    ==========
    *BUT NOW* I have a problem after:
    (1) log in as the root user, and use command +ditto -V xyz xyz+ to copy my home folder from '/Volumes/Michaels_Home/Users/Michael' to '/Users>Michael'
    (2) change my home folder path to the '/Users/Michael' (http://eshop.macsales.com/Reviews/Framework.cfm?page=Tips/relocate3/relocate3.ht ml)
    (3) use the Mac OS X Snow Leopard USD$29 disc to boot my Mac up
    (4) delete the 'Michaels_Home' partition (I had 3 partitions: (1) Macintosh HD (2) Michaels_Home (3) Windows XP Professional)
    (5) resize the 'Macintosh HD' partition
    (6) boot from Macintosh HD
    (7) find that there's a problem about X11
    _The problem:_
    it takes a *long time* for X11 to start.
    When I try to open the 'X11.app', the X11 icon begins jumping on the Dock, but nothing happens.
    Jumping and jumping... finally, it doesn't jump any more, with just the X11 icon on the dock.
    What's more, there is no white dot under the icon, which means the app isn't running at the moment.
    I right-clicked the icon, it shows me 'application not responding'.
    So, I open the *Activity Monitor*, and I can see there are 3 apps related to X11 are running:
    (1) X11
    (2) X11.bin
    (3) xauth
    *At the moment now, if you would wait for about 1.5 min., X11 will open.*
    Please see below for the system log (from 'FREEZING' to 'WORKING')
    ==========
    Mar 1 00:42:10 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: main(): argc=2
    Mar 1 00:42:10 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
    Mar 1 00:42:10 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[1] = -psn0139298
    Mar 1 00:42:10 n219073058253 [0x0-0x22022].org.x.X11[327]: Waiting for startup parameters via Mach IPC.
    Mar 1 00:42:10 n219073058253 org.x.startx[335]: font_cache: Scanning user font directories to generate X11 font caches
    Mar 1 00:42:10 n219073058253 org.x.startx[335]: font_cache: Updating FC cache
    Mar 1 00:42:10 n219073058253 org.x.privileged_startx[344]: font_cache: Scanning system font directories to generate X11 font caches
    Mar 1 00:42:10 n219073058253 defaults[370]: \nThe domain/default pair of (org.x.X11, dpi) does not exist
    Mar 1 00:42:12 n219073058253 org.x.privileged_startx[344]: font_cache: Updating FC cache
    Mar 1 00:42:13 n219073058253 org.x.startx[335]: font_cache: Done
    Mar 1 00:42:14 n219073058253 org.x.privileged_startx[344]: font_cache: Done
    Mar 1 00:42:31 n219073058253 org.x.startx[335]: xauth: timeout in locking authority file /Users/Michael/.serverauth.335
    Mar 1 00:42:51 n219073058253 org.x.startx[335]: xauth: timeout in locking authority file /Users/Michael/.Xauthority
    Mar 1 00:43:31: --- last message repeated 1 time ---
    Mar 1 00:43:31 n219073058253 org.x.startx[335]: xauth: timeout in locking authority file /Users/Michael/.Xauthority
    Mar 1 00:43:51: --- last message repeated 1 time ---
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: Listening on socket for fd handoff: (4) /var/tmp/tmp.0.9OYerf
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: Thread created for handoff. Returning success to tell caller to connect and push the fd.
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: Received new $DISPLAY fd: 6 ... sleeping to allow xinitrc to catchup.
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: dostart_x11server(): argc=6
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[0] = /usr/X11/bin/X
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[1] =
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[2] = -nolisten
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[3] = tcp
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[4] = -auth
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[5] = /Users/Michael/.serverauth.335
    Mar 1 00:43:51 n219073058253 org.x.startx[335]: Xquartz: Handoff connection established (try 1 of 5) on fd 6, "/var/tmp/tmp.0.9OYerf". Sending message.
    Mar 1 00:43:51 n219073058253 org.x.startx[335]: Xquartz: Message sent. Closing handoff fd.
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: Xquartz starting:
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: X.Org X Server 1.4.2-apple45
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: Build Date: 20090705
    Mar 1 00:43:51 n219073058253 [0x0-0x22022].org.x.X11[327]: (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
    Mar 1 00:43:54: --- last message repeated 1 time ---
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app Handing off fd to server thread via DarwinListenOnOpenFD(6)
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: DarwinListenOnOpenFD: 6
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: Calling ListenOnOpenFD() for new fd: 6
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: X11.app: Launching /usr/X11/bin/xterm:
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[0] = /bin/sh
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[1] = -c
    Mar 1 00:43:54 n219073058253 [0x0-0x22022].org.x.X11[327]: argv[2] = /usr/X11/bin/xterm
    ==========
    I quit the X11:
    ==========
    Mar 1 00:45:45 n219073058253 [0x0-0x22022].org.x.X11[327]: Quitting Xquartz...
    Mar 1 00:45:45 n219073058253 org.x.startx[335]: /usr/X11/bin/xinit: connection to X server lost.
    Mar 1 00:45:45 n219073058253 org.x.startx[335]: waiting for X server to shut down
    ==========
    AFTER quitting X11, I can see something related X11 is stilling running:
    ==========
    Mar 1 00:46:06 n219073058253 org.x.startx[335]: xauth: timeout in locking authority file /Users/Michael/.Xauthority
    ==========
    So what actually causes this problem?
    Thanks in advance!

    It turns out that there's something wrong about permissions.
    Here's the fix:
    (1) log in as the +root user+
    (2) type +chown -R Michael:staff ~Michael+
    (3) log out the +root user+
    (4) log in your account
    (5) done!
    Hope this thread will help those who encounter the same problem as me!

  • Run several scripts with one master script or an automator workflow?

    I have several scripts that I need to run all at once...
    Could I make a script that would run all the other scripts, then bundle everything into an application( or something similar) so all my scripts would run with just a double click...
    Any ideas?

    Yes, this is possible. Save your master script as either an application or a script bundle (whichever is most convenient). Then, save all of your subscripts inside the bundle.
    You can then load and run the scripts from your master script. The following code does that:
    set aScriptFile to load script file (path to me as string) & "Any additional subfolders" & "Script File Name.scpt"
    run aScriptFile
    Note that "path to me" will not work properly when the script is run from within script editor. It will, however, work when run from the script menu. See the following for a discussion of that:
    http://discussions.apple.com/message.jspa?messageID=2789538

  • Python Script with LabVIEW

    Hi,
    I want to call python script from labview and labview vis from python script.
    Can anybody send me any sample code for this using LabPython??
    Regards
    Meenatchi

    Hi Meenatchi,
    see this link http://forums.ni.com/ni/board/message?board.id=170&message.id=308245&requireLogin=False
    [edit] if you download labPython from there, then you get some examples with it. [/edit]
    Hope it helps
    Mike
    Message Edited by MikeS81 on 05-21-2008 04:05 PM

  • Installing Windows with system disk from Viao?

    I already had my doubts about this but wanted to confirm:
    You cannot install windows with the system disk from a Viao, Dell,
    Hewlett Packard, etc...??? You must have the plain Windows disks, correct?

    Hi,
    since most of the Windows Discs that are bundled with a PC are not full versions, but merely 'restore' discs, they simply won't work.
    Apart from that these Windows Licenses are tied to the computer with which they were bought, so that from the legal point you are not able to 'Activate' them again.
    Sorry
    Stefan

  • RUNNING PHP SCRIPT WITH ZEND FRMWRK IN WINDOWS TASK SCHEDULER

    I have a PHP script which includes the Zend framework Mail.php for sending mails.
    I am running a WAMP server and i used DW to create it.
    I want to run my script in every 5 mins, How i can schedule it in Windows task scheduler.
    I tried running a bat which contains the php.exe path and arguments as php file but it gives an error that zend/mail.php not found.
    Please help its really urgent.

    Thanks for your response.
    bat file has:
    path of the php.exe -f path of php file.
    But when it runs it gives an error that the zend framework file not found.
    I have a seperate PHP includes folder under which zend FW is stored.
    That folder is marked in includes_paths in php.ini.

Maybe you are looking for

  • Unable to start OBIEE 11g Sevices on Windows 7

    Hello, I have successfully installed OBIEE 11g server on windows machine 64 bit When I start BI services from all programs I get following error : SVR_GRP = JAVA Memory arguments: -Xms256m -Xmx1024m -XX:MaxPermSize=512m -XX:-UseSSE42Intr insics WLS S

  • DataadapObject reference not set to an instance of an object in VB,NET 2003

    Huge problem, please help! Just installed ODT 10.1.4 and must have done something wrong. Don't know enough to be able to correct on my own. In VB, after install, new OracleDataAdapter, OracleConnection, OracleCommandBuilder and OracleCommand items ap

  • How to move tables with data from one client to another

    Hello friends I have 2 clients 001 and 002. I have created a table with lots of data on client 001. I have to get the same table on 002 also with the same data. Is there an easier way of transfering this data from one table to another? I would apprec

  • Viewing lock

    I want to use CATBLOCK.SQL in PL/SQL to display locking information. now, I'm in C:\oraclexe\app\oracle\product\10.2.0\server\BIN but CATBLOCK.SQL and UTLLOCKT.SQL are in C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN I use "HO cd" to chang

  • Working with different photo libraries

    I have a work and home computer so therefore I have different libraries with different pictures (and music) I want to sync. Whenever I sync with one computer or the other it changes not only my music but also my photo libraries. Is there a way to sol