Unix open command

Hello everybody,
I have made a program in QT and because I'm working in the terminal I use the open -a applicationname command. But it doesn't work any more, at least for my program.
This is the error message
LSOpenFromURLSpec() failed with error -10660.
It only works when I use the open -a absolutepath/applicationname.app
Does anybody know how to solve this?
Maybe an old symlink?

CyberboyNL,
how did you solve this? i use the 'open' command all the time, and once in awhile this error kicks in and won't go away until i restart.
eric

Similar Messages

  • Hyperlinks from my MSWord files suddenly don't work because "/FirefoxHTML\Shell\Open\Command" has somehow been added to the end of each URL.

    When I click to open the hyperlink in my Word file, the message I get in Firefox is "The requested URL /submissions.htmlFirefoxHTML\Shell\Open\Command was not found on this server." When I delete that portion of the URL, the website opens fine. What can I do to make the hyperlinks work properly?

    Thanks for the suggestion. I tried it, but it didn't work. The link information is written correctly on the MSWord page. But when I click on it and the Firefox tab opens, the page can't be found because "FirefoxHTML\Shell\Open\Command" has been added to the end of each URL. Might it help if I reset Firefox?

  • エラー Could not complete the Open command because there is not enough memory(RAM).

    Windows 版 Adobe Photoshop CS6 13.0.1(32 ビット)を使用して JPEG 2000 ファイルを開くと、エラー “Could not complete the Open command because there is not enough memory(RAM)”を発生しました。
    詳しい情報:
    http://helpx.adobe.com/jp/photoshop/kb/cq04220115.html
    上記の文書を参考にしてください。

    リンク先に下記のように書かれています。
    追加情報 (Additional Information)
    Photoshop CS6 に付属の JPEG 2000 プラグインに問題があることが確認されています。開発チームは現在、問題の修正に取り組んでいます。
    修正の取り組みはいつまでかかるのでしょうか?
    Photoshop CS5 に付属の JPEG 2000 プラグイン を入れれば直るなら、
    Photoshop CS5 に付属の JPEG 2000 プラグイン配布するのは無理なんでしょうか?

  • Open command for Appleworks Imac G5 OS 10.4.2

    When I use the open command from the file menu it takes 20secs before the document window appears, same when I save as or save for first time.
    Also occurs with Office 2004 applications and other applications but strangely not with "pages trial"

    You have 10.4.11 Macs that iTunes can connect to the iTunes Store???
    I was pretty sure they changed to a minimum of 10.6.8
    Are downloading iTunes 9.2.1 from here...
    http://support.apple.com/kb/DL1056

  • UNIX sed commands to clean up data before loading into BI

    Hi all,
    we are trying to load the data into BI from text files.. This data needs to be cleaned before it can be loaded into BI and this has to be done using UNIX sed commands!!
    We basically need to do a data cleansing act, like removing unwanted characters (tab values and newline values as part of the characteristic values). How can it be done using unix sed commands??
    your help is very much appreciated.
    Regards

    Hi all,
    we are trying to load the data into BI from text files.. This data needs to be cleaned before it can be loaded into BI and this has to be done using UNIX sed commands!!
    We basically need to do a data cleansing act, like removing unwanted characters (tab values and newline values as part of the characteristic values). How can it be done using unix sed commands??
    your help is very much appreciated.
    Regards

  • Open a command window and send some keystroke to the opened command window

    Hi All,
    I am trying to open command prompt and send some key stroke to that command prompt. Here I am using Robot to send keystroke. But the problem is, the keystrokes are not sent to the prompt. I guess I need to activate progamitically the command prompt to accept the keystrokes . Please find the code below ( as I did).
    try
    String command = "cmd.exe /c start";
    Process child = Runtime.getRuntime().exec(command);
    Robot robot = new Robot();
    Thread.sleep(5000);
    String lol = "indranil";
    for(int i=0;i<lol.length();i++)
    robot.keyPress(lol.charAt(i));
    int g = lol.length() - 1;
    robot.keyRelease(lol.charAt(g));
    catch (Exception e) {}
    I guess I am doing some mistake here while sending the keystroke/openning the command prompt. Can anyone please help me how can I open a command window and send some keystroke to the opened command window. I am in fix.
    Thanks,
    Indranil

    The first thing to do is read the API and examples for the Robot class.
    Also check out this thread with a similar discussion: [http://forums.sun.com/thread.jspa?threadID=5385677]
    The short spoonfed answer - keyPress() and keyReleaseI() do not take chars. Read up on KeyEvent

  • Where are the settings for the "open" command, located at /usr/bin/open?

    I have Windows XP installed on a partition on my Macbook and I use Parallels to access some of the Windows applications.
    When I am in Mac OS X, and I don't even have a virtual machine running, if I enter the following command in the terminal, I get some really strange behavior:
    /usr/bin/open -a firefox http://localhost/~myname/somewebpage.html
    The open command will launch firefox within Mac OS X and display the page, but, it WILL ALSO TRY TO LAUNCH FIREFOX VIA PARALLELS. So, it starts a Parallels session and tries to launch Firefox. I see the Firefox icon in my dock twice, once normally, and once with the Parallels version of the Firefox icon. But, I cannot view the Parallels instance of Firefox.
    In order to debug this, I removed Firefox from Mac OS X (deleted Firefox.app from my applications folder) and I un-installed it from the windows partition using Add/Remove programs in windows.
    Now, running the open command as stated above launches Safari in Mac OS X and it still launches parrallels.
    Where is the list of application associations that the "open" command uses? I assume there is some incorrect associate that is causing this but, I have no idea how to find it.
    Thanks in advance for any advice you can give.

    Thank you for your reply.
    I actually checked out the man page for "open" but, I was unable to find LaunchServices in the finder. I was hoping there would be some sort of manifest, or application map, within LaunchServices that might be the source of my problem.
    Regarding using the full path: Good suggestion. That will clear it up when I use the command line, or if I were writing my own app, etc...unfortunately, I became aware of this problem because Netbeans is using the command in the abbreviated form I posted above (to launch web applications I am debugging), and I can't edit it.
    I removed Firefox from both Windows and Mac OS X on my machine, and tested the Netbeans functionality, it launched my application in Safari with no errors. I reinstalled Firefox on my Mac OS X partition and selected it in Netbeans preferences as the browser to use when debugging an app. When I tried to debug an application in Netbeans again, I got the same behavior...parallels launched. Ugh.
    There was a folder, on the Windows side of things, called something like Parallels\Shared Applications. It had a shortcut to Firefox in it but, I removed that before doing my testing. I was hoping there would be something similar on the Mac OS X side but, I haven't been able to find anything.
    Thank you both for your help. I think I might need to visit the Parallels forums for this one.

  • Gerring Error -"Could not open command file"

    Hi All,
    I'm using Business Object Data services XI 4.0 .When I executes the job it given an error -"Could not open command file "
    so if anyone know the solution then please let me know.
    Thanks
    Rajeev kumar
    SAP-BODI Developer

    The -compat=4 (and the default -compat=5) compilation modes are not related to the compiler version. All compiler versions from 5.0 (1998) through 5.10 (2009) have these options. The C++ Migration Guide
    [http://docs.sun.com/app/docs/doc/819-5266]
    explains the differences in detail between -compat=4 and -compat=5, with examples of how to make old code compatible with standard C++.
    There is no compiler version 7. Perhaps you are thinking of the Sun Studio release. There is a Sun Studio 7 (containing C++ 5.4), but it is End Of Life, no longer available for purchase, and is not supported on Solaris 10. The recent releases are these:
    Sun Studio 11, C++ 5.8, supports Solaris 8, 9, 10
    Sun Studio 12, C++ 5.9, supports Solaris 9, 10, Open Solaris, Linux
    Sun Studio 12 update 1, C++ 5.10, supports Solaris 10, Open Solaris, Linux
    (Sun Studio 12 update 1 should be released next week. Watch this forum for an announcement.)
    Please run the command
    CC -V
    to find out your compiler version.
    When compiling on Solaris, 32-bit compilation is the default. You don't get 64-bit compilation unless you ask for it, via the -xarch option on older compilers, or the -m64 option on current compilers.

  • Open command in Terminal

    When I try to open a folder from Terminal using the open command, instead of a Finder window opening for the folder, another Terminal window opens up with contents like the following:
    *Last login: Sat Nov 14 16:14:45 on ttys001*
    *jt-imac:~ terrator$ /Users/terrator/Music ; exit;*
    *-bash: /Users/terrator/Music: is a directory*
    logout
    *\[Process completed\]*
    In addition, I get the same symptom when I try to open folders from the Dock and Spotlight so I think the problems are related.
    I have done the following in trying to resolve this problem:
    1. Repair permissions and repair disk with Disk Utility using the Installation DVD after booting from it.
    2. Repair LaunchServices using Onyx
    3. Created a test user to see if this user has the same problem. No, the problem doesn't happen in this user.
    4. Deleted the com.appl.terminal.plist and some other plist files.
    5. Reinstalled Snow Leopard on top of my existing installation.
    None of those attempts have resolved the problem.
    Anyone has any ideas on how to resolve this problem?

    For Terminal.app I don't see anything with name "Folder" but I see one with roles "Editor":
    The Terminal does not execute anything. It is a character terminal emulator that is connected to pseudo (fake) serial terminal device (/dev/pty**)
    The other side of that pty device is attached to an independent process that happens to be running a shell of some kind (default being the bash shell).
    The shell will create child processes on demand and run commands requested by the user. Any text send to standard out or standard error by the shell or any of the children processes started by the shell, will be sent to the pty and the Terminal will read the other side of the pty and display the text in the Terminal window.
    The Terminal will also listen to the keyboard, and send any text you type to the pty where the shell or a child process created by the shell will read the other side of the pty and do what you tell it via the keyboard.
    That is the Terminal's job. communicate through this fake serial device. It does not execute commands. I knows nothing about Folders, nor files, nor TYPE/CREATOR fields, nor file type suffixes. Just reads text you type, and displays text sent back from the shell or its child processes.

  • How to call unix script/command in ODI

    Hello Gurus,
    Please let me know how to call unix script/command in ODI?
    Thanks
    Shridhar

    you can call shell script using the OS command found in Package.
    Step 1. Drag the OS Command in the Packgae
    Step 2. In the Text mentiond call the script say for ex sh /opt/path/script.sh
    Step 3. Execute.
    Note : Make sure the User through which ODI is triggering does have the required permission to execute shellscript , also always provide the full path , since scripts are execute from the oracldi/bin folder so its necessary to provide the complete path of the script location.
    Hope this helps.

  • Problem with unix "foreach" command

    Hi,
    I am facing a problem with unix command "foreach". I trying to process files using unix foreach command. When running the script with 500 or 1000 files. It is running fine. But when I am trying to the script with 2000+ files. Its throwing an error "Arguments too long".
    below is the syntax I am using in the script:
    foreach name (*)
    end
    Could anybody help me on this issue.
    Thanks in Advance.
    Manasa.

    UNIX/Linux systems expand wildcards onto the command line before invoking the
    individual commands. In effect, the shell rewrites the command line you give
    substituting the wildcard expansion. There is a limit to how long this command
    line can get.
    For example, suppose you have two files ("foo" and "bar") in your directory.
    The line:
    foreach name (*)
      echo $name
    endgets rewritten to:
    foreach name (foo bar)
      echo $name
    endand then the shell starts interpreting your script. So if you have many, many
    files, the rewritten line becomes:
    foreach name (f1 f2 f3 ... f10927)
      echo $name
    endso chances are the "foreach" line simply gets too long. To avoid problems do
    it this way; it avoids any problems based on how many files you have:
    ls | while read name
    do
      echo $name
    doneThis way the shell never exceeds its line length limitations because the
    wildcard is never expanded.
    Cheers

  • Invoking a UNIX shell command from Java stored procedure

    The program below is suppose do send an email using UNIX mailx program. It works correctly when I compile it in UNIX and invoke it from the command line by sending an email to the given address.
    I need this program to run as a stored procedure, however. I deploy it as such and try to invoke it. It prints the results correctly to the standard output. It does not send any emails, however. One other difference in execution is that when invoked from the command line, the program takes about a minute to return. When invoked as a stored procedure in PL/SQL program or SQL*Plus anonymous block, it returns immediately.
    Why would mailx invocation not work from a stored procedure? Are there other ways to invoke mailx from PL/SQL?
    Thank you.
    Michael
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.OutputStreamWriter;
    public class MailUtility
    public static void main(String[] args)
    System.out.println(mailx("Hey, there", "Hello", "oracle@solaris10ora", 1));
    * Sends a message using UNIX mailx command.
    * @param message message contents
    * @param subject message subject
    * @param addressee message addressee
    * @param display if greater than 0, display the command
    * @return OS process return code
    public static int mailx(String message, String subject,
    String addressee, int display)
    System.out.println("In mailx()");
    try
    String command =
    "echo \"" + message + "\" | mailx -r [email protected]" + " -s \"" + subject + "\" " + addressee;
    if (display > 0)
    System.out.println(command);
    try
    Process process = Runtime.getRuntime().exec("/bin/bash");
    BufferedWriter outCommand =
    new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));
    outCommand.write(command, 0, command.length());
    outCommand.newLine();
    outCommand.write("exit", 0, 4);
    outCommand.newLine();
    outCommand.flush();
    process.waitFor();
    outCommand.close();
    return process.exitValue();
    catch (IOException e)
    e.printStackTrace();
    return -1;
    catch (Exception e)
    e.printStackTrace();
    return -1;

    try adding the full explicit path to "mailx" in the command string that gets sent to Runtime. i would guess that the shell that gets spawned might not have a proper environment and thus mailx might not be found.
    == sfisque

  • How to pass command-line options to app using the "open" command?

    I am using jedit, and since I'm doing a lot of stuff in a shell, I'd really like to launch it from the command line as though I'd opened from finder, so I wrote a script that contains this:
    open -a /Applications/Jedit.app "$@" &
    This works well for everything except NEW files, where I get this error:
    2007-02-16 19:29:48.072 open[1032] No such file: /Users/millerti/projects/ateon/new_file
    Is there a way I can override this?
    So, it occurred to me that I might try running jedit directly this way:
    /Applications/Jedit.app/Contents/MacOS/jedit -- "$@" &
    The trouble is that this suffers all sorts of weird problems. For instance, if there's already a jedit running, it launches another one (despite the fact that -server is default). Moreover, the file it opens, existing or not, is not the one I specify. If I'm in ~/mydir and I open ./myfile, jedit opens instead /Applications/myfile.
    Obviously, I'm doing something wrong. Can someone help me figure out what open is doing internally so that I can launch jedit compatible with how open does it so that I can both open existing files and create new ones the same way from the command line?
    BTW, I can make more complex script.
    Also, if this isn't the right forum for this, can someone tell me where would be a better place to get the question answered?
    And I'm not expecting to get jedit support here. This isn't a jedit problem because it's behaving correctly.
    Thanks.

    Applications rarely take command line arguments. I don't know anything about Jedit, whether that is an exception, but you are not sending an argument to Jedit with the open command. The file name on your command line is an argument to the open command. The open command says "open this file with the specified application". The application doesn't see the argument. It sees the file exactly as if it were opened from the Finder. That's why naming a non-existent file doesn't work.
    What if you open Jedit with no file, create a new document in the application. (Again, I am not familiar with Jedit.)

  • FirefoxHTML\Shell\Open\Command is appended to URLs selected in Excel, Windows 8, ver 27.0.1

    When clicking on a link in MS Office 2007 components such as Excel, FirefoxHTML\Shell\Open\Command is appended to the URL causing the search to 404.
    I am using Windows 8 on a Sony Vaio, and version 27.0.1 of firefox.
    Firefox is up to date, and is my default browser.
    Web research shows this is a recurring problem with issues dating back to very early versions.
    This began happening after my last update to the current version

    Try to redo the default browser setting and temporarily set another browser as the default browser.
    *https://support.mozilla.org/kb/How+to+make+Firefox+the+default+browser
    *https://support.mozilla.org/kb/Setting+Firefox+as+the+default+browser+does+not+work
    You can also check for problems with DDE.
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

  • Error Installing 8i in UNIX Open Server 5.0.5

    Dear Friends,
    When I installing Oralce8i in Unix open Server 5.0.5 box,I am getting this error.
    relocation error: symbol not found:real path.
    I copied the entire oracle 8i disk to location /orasoft and from there I am running the ./runInstaller
    Installtion starts with the message
    Initializing Java Virtual Machine from ../stage.Components/oracle.swd.jre.1.1.7/DataFiles/Expanded/jre/unixware/bin/../bin/i386/green_threads/jre:relocation error:symbol not found: real path
    Pl. Help to overcome this problem
    Thanx,
    Rams.
    null

    user4306972 wrote:
    Hi all,
    I need help in installing 8i on win 2000 server.What should i do???????/
    Hardware is Intel(R) Xeon(TM) cpu 3.40 GHz, RAM =2GB.
    Is the above hardware is compitible with 8i installation
    I would appreciate your valuable suggestions.
    Regards,
    Asma.
    Edited by: user4306972 on Dec 9, 2009 1:02 AMI've already given you several suggestions: "surely you realize that Win 2000 server didn't even exist until long after 8i was fully *DE*-supported ..."
    That means 8i was never certified on Win 2000. That means there's no guarantee that you can install it, or that it will work after installed.
    But if you are determined to go down this totally uncertified, unsupported path, my only suggestion is to go back and read ... and heed ... all the points in the fine installation guide. Particularly the part about installing the loopback. Don't assume "I don't need that". Just do what the install guide says.

Maybe you are looking for

  • Installing Windows 7 using Bootcamp?

    I got a Macbook Alumimum 13.3", release in late 2008. It's now installed with Snow Leporand 10.6.2 OS. I'd like to know if bootcamp support installing Windows 7 as well?

  • Printer works fine from PC but the buttons don't work. Is it time for a new one?

    C5180 All-in-One printer scanner copier. Are the buttons on the front supposed to light up? None of them respond except the power button. Any quick fix?

  • Send mail not working in MINISAP

    Hi experts, I did automatic workflow customizing in SWU3, then created a test workflow to send mail notification to  workflow initiator. After running WF, the mail is not received in user workplace. In workflow log it shows Mail has send. Did any add

  • Report incompatibility beacause of database name change

    Hi ! I am using Crystal Reports 2008 with a MSQL 2005 database. I want to use the same report on two databases with same structure but different names. I keep getting error message: "Failed to retrieve data from database" ,"invalid object name... [Da

  • Bundling of IDOCs using BPM.PLS Help .Its very very URGENT

    Hi all, I have a IDOC to file scenario in which I have to bundle some number of INVOIC02 IDOCs. For this I have an IDOC whosw occurance is 1...1. I have an XSD for the same IDOC whose max occurance is 1.....9999999999. Si I have created one mapping f