cfexecute under linux

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default cfexecute under linux

    hi all,

    i would like to use grep under linux but when i do this code i have this
    error msg

    code :
    <cfexecute name="grep" arguments="-c '| E' ATT856561.txt"
    outputfile="/...../...../plan/test.txt"></cfexecute>
    and this one to:
    <cfexecute name="grep -c '| E' ATT856561.txt"
    outputfile="/...../...../plan/test.txt"></cfexecute>

    error msg :

    An exception occurred when invoking an external process.
    The cause of this exception was that: java.io.IOException:
    java.io.IOException: grep -c '| E' file.txt: not found

    thx for your help ;-)

    Pierre



    lemmings_15 Guest

  2. Similar Questions and Discussions

    1. cfexecute
      Did the solution below work for you? Thanks. Chris
    2. Using CFEXECUTE with Webalizer
      Hi Everyone, I'm having a problem getting CFEXECUTE and Webalizer to play nice. The Webalizer works when I run it from the machine it's...
    3. CFExecute and MX7
      Under testing CFEXECUTE in MX7 I noted it is running under the SYSTEM account. In MX6.1 it ran under the account that was running the MMCF service. ...
    4. cfexecute on linux
      I'm trying to run jwhois on a linux server with cfexecute, but I can't get it to work. It is not throwing any errors. As part of my testing I tried...
    5. ImageMagick & cfexecute
      I just moved all our websites to a new server which is running win2003 and CFMX 6.1 with updates. The old server was Win2k and CFMX 6.1 no updates....
  3. #2

    Default Re: cfexecute under linux

    Quote Originally Posted by lemmings_15 View Post
    hi all,

    i would like to use grep under linux but when i do this code i have this
    error msg

    code :
    <cfexecute name="grep" arguments="-c '| E' ATT856561.txt"
    outputfile="/...../...../plan/test.txt"></cfexecute>
    and this one to:
    <cfexecute name="grep -c '| E' ATT856561.txt"
    outputfile="/...../...../plan/test.txt"></cfexecute>

    error msg :

    An exception occurred when invoking an external process.
    The cause of this exception was that: java.io.IOException:
    java.io.IOException: grep -c '| E' file.txt: not found

    thx for your help ;-)

    Pierre
    <cfset GrepPattern = "| E" />
    <cfexecute
    name="C:\WINDOWS\system32\grep.exe"
    arguments="-c #Chr(34)##Replace(GrepPattern, Chr(34), Chr(92) & Chr(34), 'ALL')##Chr(34)# ATT856561.txt"
    outputfile="/...../...../plan/test.txt"
    timeout="40"
    ></cfexecute>
    Dave Babbitt is offline Junior Member
    Join Date
    Jan 2011
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139