40 users online (1 members and 39 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 0
  2. Replies: 2
  3. Website & Web Applications for sale    Forum: Websites For Sale
    Replies: 0
  4. Open file in local directory    Forum: CGI Perl Forum
    Replies: 0
  5. Replies: 7
  1. #1
    Emmanuel's Avatar
    New User

    Status
    Offline
    Join Date
    May 2006
    Posts
    3

    Question Local applications

    I have written code to execute a local applications. It works well (systanx is ok) on comandline, but can not execute, probably because a window is launched on local machine it gives me this error. When i debug it comes like this.
    Guys what do i do, ihave tried these different methodsincluding the backslashes, am stuck;
    HTML Code:
    #@args = ("/Program Files/DHI/MOUSE 2002/Bin/mouse604.exe", '\MOUSE\Tutor1.mpr', "Ro", "Run", "Close", "NoPrompt","Minimize");
    #@args1 =("/Program Files/DHI/MOUSE 2002/Bin/mouse604.exe", '\MOUSE\Tutor1.mpr', "HD" ,"Run", "Close", "NoPrompt","Minimize");
    #system (@args)==0 or die "system failed at: $?";
    #system (@args1)==0 or die "system failed at: $?";
    $mouse = ("/www/cgi-bin/mouse.bat");
    local *PIPE;
    open (PIPE,"$mouse |")or die "Can not open pipe";
    print while <PIPE>;
    close PIPE;
    #system $mouse ;
    #@output=`@args`;
    #@output=`@args1`;

  2. #2
    uthus's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2006
    Location
    Ft Hood
    Posts
    75

    Re: Local applications

    Do the /'s need to be escaped with \? i.e. "#@args = ("\/Program Files\/DHI/MOUSE 2002\/Bin\/mouse604..."

    u



Tags for this Thread