command line tool

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johny Begood

    command line tool

    Hi All,

    How do I get php to run a command line tool, in Windows Server 2003, and the
    continue with the job in hand, is this possible?

    Cheers





  • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

    #2
    Re: command line tool

    Johny Begood wrote:
    How do I get php to run a command line tool, in Windows Server 2003, and
    the continue with the job in hand, is this possible?
    First, RTFM:



    Then, UTFG and STFW:




    --
    ----------------------------------
    Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

    Una celebridad es una persona que ha pasado toda su vida tratando de llegar
    a famoso y cuando lo consigue, usa gafas negras para que nadie lo
    reconozca.

    Comment

    • Johny Begood

      #3
      Re: command line tool


      "Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
      wrote in message news:f3r4k4$mr4 $1@hercules.coh p1...
      Johny Begood wrote:
      >
      How do I get php to run a command line tool, in Windows Server 2003, and
      the continue with the job in hand, is this possible?
      >
      First, RTFM:
      I couldn't agree more
      Thanks for the direction
      Thanks again for the direction
      >
      >
      --
      ----------------------------------
      Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
      >
      Una celebridad es una persona que ha pasado toda su vida tratando de
      llegar
      a famoso y cuando lo consigue, usa gafas negras para que nadie lo
      reconozca.

      Comment

      • Johny Begood

        #4
        Re: command line tool

        Hi Iván,

        Thanks for your help, I can get the script to run the program but it seems
        to be stuck, hanging,

        this is what I've done

        $instruct="smss ender.exe [[/i] /p:0035385740733 5 /m:test from code ]";

        exec($instruct) ;

        I can see the program running in task manager, Win2003, $instruct is what
        would be typed at the command line, any ideas?, what am I missing?

        Cheers

        "Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
        wrote in message news:f3r4k4$mr4 $1@hercules.coh p1...
        Johny Begood wrote:
        >
        How do I get php to run a command line tool, in Windows Server 2003, and
        the continue with the job in hand, is this possible?
        >
        First, RTFM:
        >

        >
        Then, UTFG and STFW:
        >

        >
        >
        --
        ----------------------------------
        Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
        >
        Una celebridad es una persona que ha pasado toda su vida tratando de
        llegar
        a famoso y cuando lo consigue, usa gafas negras para que nadie lo
        reconozca.

        Comment

        • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

          #5
          Re: command line tool

          Johny Begood wrote:
          Thanks for your help, I can get the script to run the program but it seems
          to be stuck, hanging,
          Then it's the program's fault, not PHP's.
          $instruct="smss ender.exe [[/i] /p:0035385740733 5 /m:test from code ]";
          Out of curiosity: Why the brackets?

          For debugging purposes, please do an echo($instruct) just before the exec(),
          and try putting exactly that into a command line. Does it get hung there?

          --
          ----------------------------------
          Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

          "Wagner's music is better than it sounds."
          - Mark Twain (1835-1910)

          Comment

          • Johny Begood

            #6
            Re: command line tool

            Then it's the program's fault, not PHP's.

            You are correct, I just thought I was missing something
            >
            $instruct="smss ender.exe [[/i] /p:0035385740733 5 /m:test from code ]";
            >
            Out of curiosity: Why the brackets?
            They shouldn't be there
            >
            For debugging purposes, please do an echo($instruct) just before the
            exec(),
            and try putting exactly that into a command line. Does it get hung there?
            echo($instruct) produces smssender.exe /p:0035385740733 5 /m:test from code

            No it doesn't hang when I put exactly what $instruct echo's on the command
            line, I think it may be the smssender.exe from M$oft, any guidance on where
            I could an sms sender which operates from the command line?, I'm stuck with
            win32.

            Cheers


            Comment

            Working...