[SOLVED] Opening Shell and runnning command(s)

Hi,
I have just discovered the wonderful program xbindkeys, and am thus setting all my keybindings.  I ran into a problem when I came to adding the music keybinding [EDIT].  I don't use a gui, just command line mplayer, so this is a bit problematic, as I want to be able to launch a shell and then run a command inside that shell (in this case cd /home/jhl/music/mplaylist && mplayer *).  So when I try :
konsole -e cd /home/jhl/music/myplaylist && mplayer *
It does not do what I expected .  I've looked around here and on google for an answer, but have yet to find one. 
All help is greatly appreciated .
-Josh
Last edited by luskjh (2009-07-12 17:00:12)

Crouse's method worked (thanks crouse )
And the [EDIT] was because I repeated 'adding the music keybindings' twice, and didn't catch it when reviewing the thread, opps .
Thanks for all the help .
-Josh

Similar Messages

  • Trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    Step #1:
    In System Preferences click on Spotlight.
    Step #2:
    Click on the Privacy tab here.
    Step #3:
    Click on the + button here and when the window opens click on "Macintosh HD" (or whatever you've named your HD) and then click the Choose button.

  • Bash script "open terminal and launch command

    I need a script to do this:
    launch a terminal, from this change working directory and then launch a command; the terminal have to remain opened after the command execution.
    Something like:
    $terminal cd $dir && $command
    If I open a terminal and I do:
    cd $dir && $command
    it works
    If I do a .sh script with this:
    xterm -hold -e cd $dir && $command
    or
    terminal -H -x cd $dir && $command
    when I launch it (the script) it doesn't work.
    Last edited by buntolo (2012-01-05 23:44:52)

    karol wrote:
    xterm -hold -e "cd ~/test/ && ls"
    works too.
    I don't know what $command do you mean, but this will list th ~/test directory.
    It works also for me.
    With urxvt and xfce4-terminal don't work.
    But xterm is too minimalist, is there an advanced terminal based on it?
    And I don't unerstand why it doesn't work for xfce4-terminal but for it does for xterm...
    man xfce4-terminal:
    -H, --hold
    Causes the terminal to be kept around after the child command has terminated
    -e, --command=command
    Execute command inside the terminal
    man xterm:
    -hold
    Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
    -e program [ arguments ... ]
    This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.
    What the ...?
    Is only my opinion that there aren't differences between:
    terminal -H -e "cd $dir && $command"
    and
    xterm -hold -e "cd $dir && $command"
    Last edited by buntolo (2012-01-06 13:11:58)

  • [SOLVED] Konsole, shells and zombies, oh my!

    Hello fellow archers!
    Decided to try the new KDE yesterday and after some tinkering, I've managed to put it just how I like it. One thing troubles me though: whenever I open Konsole, do something in the shell and then Ctrl+D or type exit, the actual konsole tab is not closed and the shell is left as a zombie process (see next 2 screens). Tried with zsh, bash, new konsole profile, clean kde4 config (removed ~/.kde4) and nothing changes.
    http://i41.tinypic.com/4rvxax.jpg
    http://i44.tinypic.com/2hyi2r8.jpg
    Maybe this is expected behaviour in Konsole, forcing you to use Ctrl+Shit+W to close the tab but that feels very awkward coming from urxvt.
    Any feedback?
    Last edited by Revolt (2013-04-26 18:35:39)

    konsolerc:
    [$Version]
    update_info=konsole.upd:2.9.0-global-options
    [Colors]
    CurrentPalette=Forty Colors
    [Desktop Entry]
    DefaultProfile=Shell.profile
    [Favorite Profiles]
    Favorites=Shell.profile
    [MainWindow]
    Height 900=490
    State=AAAA/wAAAAD9AAAAAAAAAu4AAAHqAAAABAAAAAQAAAAIAAAACPwAAAAA
    ToolBarsMovable=Disabled
    Width 1600=750
    Shell.profile:
    [Appearance]
    AntiAliasFonts=true
    BoldIntense=false
    ColorScheme=My Color Scheme
    Font=Monospace,9,-1,5,50,0,0,0,0,0
    [Cursor Options]
    UseCustomCursorColor=false
    [General]
    Command=/bin/zsh
    Environment=TERM=konsole-256color
    Name=Shell
    Parent=FALLBACK/
    SaveGeometryOnExit=true
    [Interaction Options]
    AutoCopySelectedText=false
    OpenLinksByDirectClickEnabled=true
    TrimTrailingSpacesInSelectedText=false
    [Keyboard]
    KeyBindings=default
    [Scrolling]
    ScrollBarPosition=2
    [Terminal Features]
    BidiRenderingEnabled=true
    FlowControlEnabled=true
    I've also noticed the following on ~/.xsession-errors:
    konsole(15724) Konsole::Session::closeInNormalWay: Process 16002 did not die with SIGHUP
    konsole(15724) Konsole::Session::closeInForceWay: Process 16002 did not die with SIGKILL
    konsole(15724) Konsole::Session::closeInNormalWay: Process 16036 did not die with SIGHUP
    konsole(15724) Konsole::Session::closeInForceWay: Process 16036 did not die with SIGKILL

  • [solved] rox run action - open xterm and run command?

    Probably a really simple question but I'm not having any luck.
    I want to set a run action in rox for mp3 files to bring up xterm and run mpg123 in it. I've tried pipes and redirects but they don't work. Any ideas?

    You're welcome

  • [Solved] Gnome-Shell and separating programs in the program switcher

    Hi,
    I would like to treat different instances of Emacs as different programs in Super-Tab program switcher in Gnome-Shell (I run mail and music in different instances).
    In the overview they show as different programs via .desktop files.  But with Super-Tab they always collapse into one program (always with the normal Emacs icon).
    Any tips on how to tell gnome that different instances of some program is are to be considered different applications?
    Here's an example of a desktop file that I use to start a "specialized" Emacs instance.
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Name=EMMS
    GenericName=Music Player
    GenericName[es]=Reproductor de música
    Comment=The Emacs Multimedia System.
    Exec=emacsclient -s emms -ca '' --eval "(progn (setq x-resource-class \"EMMS\") (emms-smart-browse) )" -F '((title . "EMMS") (icon-type . "/home/rasmus/.local/share/icons/emms.png"))'
    Icon=emms
    Terminal=false
    Type=Application
    StartupNotify=true
    Categories=AudioVideo;Player;Audio;
    Last edited by Pank (2015-05-28 14:35:58)

    Thanks.  Now, I'm calling (p-wm_class "EMMS") from my emms.desktop file now.  There's also text under the icon now.  Thanks a lot
    Here's the defun:
    (defun p-wm_class (&optional new-class)
    "Return the WM_CLASS for the current window name.
    If NEW-CLASS is a string or list of strings, set a new WM_CLASS.
    If NEW-CLASS is non-nil remove Emacs from WM_CLASS and
    WM_CLASS has more than one value."
    (let ((old-class
    (with-temp-buffer
    (save-excursion
    (call-process-shell-command
    (format "xprop -name %s -f WM_CLASS 8s"
    x-resource-class)
    nil t))
    (when (search-forward "WM_CLASS" nil t)
    (search-forward "=" (line-end-position))
    (split-string-and-unquote
    (buffer-substring (point)
    (line-end-position))
    "[ \t,]"))))
    ;; anyway don't know how to set more than one value...
    (new-class-string (cond ((and (listp new-class)
    (cl-every 'stringp new-class))
    (mapconcat 'identity
    new-class ", "))
    ((stringp new-class)
    new-class))))
    (or
    (cond ((stringp new-class)
    (call-process-shell-command
    (format "xprop -name %s -f WM_CLASS 8s -set WM_CLASS \"%s\""
    x-resource-class
    new-class))
    new-class)
    ((and new-class (member-ignore-case "Emacs" old-class))
    (call-process-shell-command
    (format "xprop -name %s -f WM_CLASS 8s -set WM_CLASS \"%s\""
    x-resource-class
    (car (delete "emacs" (delete "Emacs" old-class)))))
    (car (delete "emacs" (delete "Emacs" old-class)))))
    old-class)))

  • [SOLVED] Open Arena and logout

    After execute openarena  (installed from AUR) it's freezing. Xorg is going to logout and i can see kdm screen. My graphic card: Radeon 9200SE, driver: xf86-video-ati. For example foobilard is working (normal opengl game), in the other hand Tremulous and Enemy Territory don't start (like Open Arena, quake3 engine).
    Some logs:
    My xorg.conf
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    Option "AIGLX" "false" # Dodane
    EndSection
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    # FontPath "/usr/share/fonts/100dpi:unscaled"
    # FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    Load "dri"
    Load "extmod"
    Load "xtrap"
    Load "GLcore"
    Load "dbe"
    Load "glx"
    Load "record"
    Load "freetype"
    # Load "xtt" # Dodane
    EndSection
    # Dodane
    Section "Extensions"
    Option "Composite" "Disable"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "CorePointer"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/input/mice"
    Option "Resolution" "800"
    Option "Buttons" "7"
    Option "ZAxisMapping" "4 5" # scrolling buttons
    Option "ButtonMapping" "1 2 3 6 7" # reszta
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbModel" "pc104"
    Option "XkbLayout" "pl"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    # VendorName "GSM"
    # ModelName ""
    # HorizSync 30 - 83 # analog
    HorizSync 30 - 71 # digital
    VertRefresh 56 - 75
    # Option "DPMS"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "Dac6Bit" # [<bool>]
    #Option "Dac8Bit" # [<bool>]
    #Option "BusType" # [<str>]
    #Option "CPPIOMode" # [<bool>]
    #Option "CPusecTimeout" # <i>
    #Option "AGPMode" # <i>
    #Option "AGPFastWrite" # [<bool>]
    #Option "AGPSize" # <i>
    #Option "GARTSize" # <i>
    #Option "RingSize" # <i>
    #Option "BufferSize" # <i>
    #Option "EnableDepthMoves" # [<bool>]
    #Option "EnablePageFlip" # [<bool>]
    #Option "NoBackBuffer" # [<bool>]
    #Option "DMAForXv" # [<bool>]
    #Option "FBTexPercent" # <i>
    #Option "DepthBits" # <i>
    #Option "PCIAPERSize" # <i>
    #Option "AccelDFS" # [<bool>]
    #Option "DDCMode" # [<bool>]
    #Option "IgnoreEDID" # [<bool>]
    #Option "DisplayPriority" # [<str>]
    #Option "PanelSize" # [<str>]
    #Option "ForceMinDotClock" # <freq>
    #Option "ColorTiling" # [<bool>]
    #Option "VideoKey" # <i>
    #Option "RageTheatreCrystal" # <i>
    #Option "RageTheatreTunerPort" # <i>
    #Option "RageTheatreCompositePort" # <i>
    #Option "RageTheatreSVideoPort" # <i>
    #Option "TunerType" # <i>
    #Option "RageTheatreMicrocPath" # <str>
    #Option "RageTheatreMicrocType" # <str>
    #Option "ScalerWidth" # <i>
    #Option "RenderAccel" # [<bool>]
    #Option "SubPixelOrder" # [<str>]
    #Option "ShowCache" # [<bool>]
    #Option "DynamicClocks" # [<bool>]
    #Option "VGAAccess" # [<bool>]
    #Option "ReverseDDC" # [<bool>]
    #Option "LVDSProbePLL" # [<bool>]
    #Option "AccelMethod" # <str>
    #Option "DRI" # [<bool>]
    #Option "ConnectorTable" # <str>
    #Option "DefaultConnectorTable" # [<bool>]
    #Option "DefaultTMDSPLL" # [<bool>]
    #Option "TVDACLoadDetect" # [<bool>]
    #Option "ForceTVOut" # [<bool>]
    #Option "TVStandard" # <str>
    #Option "IgnoreLidStatus" # [<bool>]
    Identifier "Card0"
    Driver "radeon"
    VendorName "ATI Technologies Inc"
    BoardName "RV280 [Radeon 9200 SE]"
    Option "BusType" "PCI" # Dodane
    BusID "PCI:1:0:0"
    Option "XAANoOffscreenPixmaps" "false" # Dodane
    Option "DRI" "true" # Dodane
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 16 # Dodane
    SubSection "Display"
    # Viewport 0 0
    Depth 16
    Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    # Viewport 0 0
    Depth 24
    Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Rendering test:
    [other ~] $ glxinfo |grep direct
    direct rendering: Yes
    [other ~] $ glxgears
    5887 frames in 5.0 seconds = 1177.391 FPS
    6092 frames in 5.0 seconds = 1218.337 FPS
    6146 frames in 5.0 seconds = 1229.085 FPS
    OpenArena output:
    ioQ3 1.33+oa linux-i386 Dec 15 2007
    ----- FS_Startup -----
    Current search path:
    /home/other/.openarena/baseoa
    /usr/share/openarena/baseoa/pak7-patch.pk3 (76 files)
    /usr/share/openarena/baseoa/pak6-misc.pk3 (191 files)
    /usr/share/openarena/baseoa/pak5-TA.pk3 (11 files)
    /usr/share/openarena/baseoa/pak4-textures.pk3 (1496 files)
    /usr/share/openarena/baseoa/pak3-music.pk3 (9 files)
    /usr/share/openarena/baseoa/pak2-players.pk3 (620 files)
    /usr/share/openarena/baseoa/pak2-players-mature.pk3 (171 files)
    /usr/share/openarena/baseoa/pak1-maps.pk3 (73 files)
    /usr/share/openarena/baseoa/pak0.pk3 (926 files)
    /usr/share/openarena/baseoa
    /usr/bin/baseoa
    3573 files in pk3 files
    execing default.cfg
    couldn't exec q3config.cfg
    couldn't exec autoexec.cfg
    Hunk_Clear: reset the hunk ok
    ----- Client Initialization -----
    Couldn't read q3history.
    ----- Initializing Renderer ----
    QKEY found.
    ----- Client Initialization Complete -----
    ----- R_Init -----
    ------- Input Initialization -------
    Joystick is not active.
    ...loading libGL.so.1:
    Calling SDL_Init(SDL_INIT_VIDEO)...
    SDL_Init(SDL_INIT_VIDEO) passed.
    Initializing OpenGL display
    ...setting mode 3: 640 480
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    SDL_SetVideoMode failed: Couldn't find matching GLX visual
    Using 4/4/4 Color bits, 16 depth, 0 stencil display.
    GL_RENDERER: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE TCL
    Initializing OpenGL extensions
    ...GL_S3_s3tc not found
    ...ignoring GL_EXT_texture_env_add
    ...using GL_ARB_multitexture
    ...using GL_EXT_compiled_vertex_array
    ...ignoring GL_EXT_texture_filter_anisotropic
    GL_VENDOR: Tungsten Graphics, Inc.
    GL_RENDERER: Mesa DRI R200 20060602 AGP 8x x86/MMX+/3DNow!+/SSE TCL
    GL_VERSION: 1.3 Mesa 7.0.3-rc2
    GL_EXTENSIONS: GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_histogram GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_APPLE_packed_pixels GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATI_fragment_shader GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texture_rectangle GL_NV_texgen_reflection GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
    GL_MAX_TEXTURE_SIZE: 2048
    GL_MAX_ACTIVE_TEXTURES_ARB: 6
    PIXELFORMAT: color(16-bits) Z(16-bit) stencil(0-bits)
    MODE: 3, 640 x 480 fullscreen hz:N/A
    GAMMA: hardware w/ 0 overbright bits
    CPU:
    rendering primitives: single glDrawElements
    texturemode: GL_LINEAR_MIPMAP_NEAREST
    picmip: 1
    texture bits: 0
    multitexture: enabled
    compiled vertex arrays: enabled
    texenv add: disabled
    compressed textures: disabled
    ----- CL_Shutdown -----
    RE_Shutdown( 1 )
    XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
    after 198 requests (196 known processed) with 0 events remaining.
    Received signal 1, exiting...
    // Sorry for my English..
    DefaultDepth 24 solved this problem.
    Last edited by Other (2008-06-14 18:46:22)

    This is already in another thread : http://bbs.archlinux.org/viewtopic.php?id=43799
    It's probably a nvidia bug, but there is a workaround given at the end of the other thread.

  • Open Terminal and Run Commands

    Hi I have to ping several IP adresses on a regular basis. Therefore I would like to create an Applescript application that will run terminal and ping the specified IPs so that I can see the results. Any ideas on how to best complete this?

    This script will prompt you to enter the number of times you want to ping each server. You'll need to specify the servers to ping in the "set serverAddresses..." line. It writes the results of each ping to a text file on your desktop and opens the file when finished. The next time you run the script if the text file exists it deletes it first.
    set theDesktop to (path to desktop)
    set serverAddresses to {"www.microsoft.com", "www.apple.com", "www.cnet.com"}
    set pingTimes to text returned of (display dialog "Ping each server how many times?" default answer "1" giving up after 10)
    tell application "Finder"
    if exists file (theDesktop & "ping replies.txt" as string) then
    delete file (theDesktop & "ping replies.txt" as string)
    end if
    set fileID to (open for access file (theDesktop & "ping replies.txt" as string) with write permission)
    repeat with aServer in serverAddresses
    try
    set pingReply to (do shell script "ping -c " & pingTimes & " " & aServer)
    on error
    set pingReply to "No reply from server " & aServer
    end try
    write (pingReply & return & return & "########################" & return & return) to fileID
    end repeat
    close access fileID
    open file (theDesktop & "ping replies.txt" as string)
    end tell
    Robert

  • Track New, Open, Close and Save Recording Info.

    Hi,
    New to the Photoshop SDK and as such would appreciate a push in the right direction
    I need i way to track New, Open, Close and Save commands and record document name and ID.
    Anyone have some sample code showing this?
    Kind Regards
    Flemming

    Thanks for pointing me in the right direction!
    It's fine in almost any situations, except one.
    When working on a new document and the user chooses to save, but in another format than psd, let's say a jpg file.
    Photoshop of cause saves it as a copy and then there is no way to detect the full path and name of that file.
    At least not in any way I can see.
    Any help would be greatly appreciated!

  • How to invoke BASH shell and execute a command in that shell in Windows 98

    Hello, I have a problem and if somebody will help me, I will be very glad. Thank you.
    I am using BASH shell on Windows 98 OS by means of CYGWIN. And I want to invoke this BASH shell and execute a preprogrammed command in the shell (./scan fileName.txt) from a JAVA program. But so far, I am not sucessful. I can not read or write anything from / to BASH shell. It either blocks and freezes (When I use waitFor( ) ) or appears and disappears without executing scan command (When I do not use waitFor( ) ). My code is like this:
    // This method is used for compiling a file.
    // It invokes BASH shell and executes "./scan fileName.txt" command
    public void compileFileMethod () {
    try {
    Process proc = ( Runtime.getRuntime() ).exec ("C:\\MyDocuments\\CYGWIN.BAT); //I also tried to add -c ./scan fileName.txt after .BAT );
    // I also tried to write "C:\\MyDocuments\\BASH.EXE" but it did not help
    OutputStream ostr = proc.getOutputStream();
    BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter (ostr) );
    InputStream istr = proc.getInputStream();
    BufferedReader br = new BufferedReader ( new InputStreamReader (istr) );
    InputStream errorStr = proc.getErrorStream();
    BufferedReader errorBr = new BufferedReader ( new InputStreamReader (errorStr) );
    bw.write("scan case40.10.txt"); /* I am trying to input the scan command to the shell,but it is not working*/
    bw.flush();
    Vector list = new Vector (1) ;
    String str;
    while ( (str = br.readLine() ) != null) {
    list.addElement(str);
    } // End of while
    Enumeration enumForList = list.elements();
    while ( enumForList.hasMoreElements() ) {
    String tempString;
    tempString = ( String ) enumForList.nextElement();
    System.out.println(tempString); // I am trying to read the outputs of the scan command but it is not reading (I can not see any output)
    I tried with and without waitFor( ), it did not work
    // wait for command to terminate
    proc.waitFor();
    // close streams
    br.close();
    bw.close();
    errorBr.close();
    } // End of try
    catch ( IOException ioe ) {
    JOptionPane.showMessageDialog (null, "Input / output error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    } // End of catch
    catch ( SecurityException se ) {
    JOptionPane.showMessageDialog (null, "Security error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    catch ( InterruptedException ie ) {
    JOptionPane.showMessageDialog (null, "Interruption error occured while compiling file ", "Error", JOptionPane.ERROR_MESSAGE);
    } // End of method compileFileMethod
    // Thank you for your helps and time.

    You cannot invoke BAT files directly, you have to invoke the program that run those files which is your Windows 98 shell. For example (under windows 2000), i would invoke "cmd.exe sricpt.bat some args", rather than "script.bar some args".
    Hope this will help you out.

  • TS3391 iMovie 11 is not working. I try to open it and it says it is generating thumbnails for one of my previous projects. All the commands are gray. I have to force it to quit. I just want to capture clips to start a new project.

    iMovie 11 is not working. I try to open it and it says it is generating thumbnails for one of my previous projects. All the commands are gray. I have to force it to quit. I just want to capture clips to start a new project. I googled the problem and there were discussions about deleting files in various folders and renaming clip extensions. I don't like the solutions I saw there and I am not sure they will work.

    Nobody replied so I called Apple. They seemed to think they could fix the problem but I had to agree to pay about $20 first. I told them to put it down as a complaint. I only want to use the software I bought. I can't see that it is my fault it is malfunctioning. I guess I will have to pay. It doesn't seem right.

  • HT4710 when i try to go into iphoto i get a message To examine and repair permissions, quit iPhoto. Press the Command and Option keys while you open iPhoto, and select "Examine and repair iPhoto Library file permissions."

    in iphoto i get the shreen with just thr download circle and nothing happens. i click on on edit and get "
    To examine and repair permissions, quit iPhoto. Press the Command and Option keys while you open iPhoto, and select “Examine and repair iPhoto Library file permissions.“
    it still does not work

    Have you tried doing what it says?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • [SOLVED] Gnome-Shell: Alt+F2 and PATH

    Hallo everybody,
    I have added $HOME/bin to my PATH with
    export PATH="$HOME/bin:$PATH"
    in my .bashrc.
    This works fine with the terminal, but Gnome-Shell's Alt+F2 doesn't find the scripts in ~/bin.
    How can I add ~/bin to the PATH of Alt+F2?
    Thank you.
    Last edited by lunyx (2011-09-05 09:34:41)

    lunyx,
    Welcome to Arch.  If you consider this thread solved, go ahead and edit your first post and add [SOLVED] to the beginning of the thread title.  It helps those searching for solutions.  The moderators don't do that, because we don't really know when members regard things as solved.
    Thanks.

  • Illustrator CC 2014 open and place commands not working after installing Yosemite

    How can I get Illustrator Open and Place commands to work after installing Yosemite?

    Hello,
    I also have the same problem, after 5 minutes I can't open or place anything in illustrator. I have this problem also in photoshop cc 2014. This started after installing Yosemite.
    Tried to reinstall but nothing helps.
    Today after updating creative cloud application it is even worse: illustrator is not opening anything: not even a new file. So I reinstalled... and I can open again for 5 minutes. But then it crashed while saving. Now I can't open illustrator at all...so nothing left to do then reinstalling again I suppose?

  • Hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

Maybe you are looking for