Cfexecute with multiple arguments

Hello,
I'm trying to encrypt a file with CFEXECUTE, using OpenSSL. When I run the code in the command prompt, it works fine and the new encrypted file appears in the correct folder. Also, I can run CFEXECUTE with OpenSSL with just one argument and it works fine. ie arguments="version". But the following does not return a value, nor does it create the new folder:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
    arguments = "aes-256-cbc -a -salt -in ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets.txt"" -out ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets2.txt"""
    variable = "result"
    timeout = "5">
</cfexecute>
<cfdump var="#result#">
Any ideas?
Pete

BYW,
This runs fine:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
    arguments = "list-standard-commands"
    variable = "result"
    timeout = "5">
</cfexecute>
<cfdump var="#result#">
and so does this:
<cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
    arguments = "version"
    variable = "result"
    timeout = "5">
</cfexecute>
<cfdump var="#result#">
Maybe someone has a multiple argument example of CFEXECUTE that runs fine.
I'd be interested to know.
Pete

Similar Messages

  • Implement Comparable with multiple arguments

    Is there a way of implementing Comparable<> with multiple different arguments to the Comparable generics?
    For example:
    public class Foo<K, V> implements Comparable<K>,
              Comparable<V>
    }The compiler complains with the error: "The interface Comparable cannot be implemented more than once with different arguments: Comparable<K> and Comparable<V>"
    Clearly, this cannot be done exactly like this, so I'm wondering if there is a different way of accomplishing the same functionality.
    Edited by: mgolowka on Apr 24, 2008 12:22 PM

    I'm working on creating a generic binary search tree. Currently I have this:
    public class BinarySearchTree<T extends Comparable<T>> implements Collection<T>
    }With the add() function, I can simply do add(T) that will use T's compareTo(T) method to find its place in the tree, however with the remove() and get() functions that I want to have would require an input of T, which isn't what I'm entirely looking for. I could change this to have a key/value pair so it's functionality is like a set, but I'm not sure if that's the best course of action. I could make it implement Map<K, V> to get that functionality...
    There is no time limit on this project as it is a part of a personal project.

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • Call apt with multiple arguments

    Is it possible to call apt inside a java class and pass multiple .class files?
    For example:
    String[] args = new String[5];
    args[0] = "-nowarn";
    args[1] = "-XclassesAsDecls";
    args[2] = "-classpath";
    args[3] = System.getProperty("java.class.path");          
    args[4] = "packageName.FirstClass packageName.SecondClass";
    return Main.process(new MyAnnotationProcessorFactory(),args);Result of the above example is:
    error: Could not find class file for packageName.FirstClass packageName.SecondClass
    1 error

    The class path contains classes that we need.
    This example works:
    String[] args = new String[6];
    args[0] = "-nowarn";
    args[1] = "-XclassesAsDecls";
    args[2] = "-classpath";
    args[3] = System.getProperty("java.class.path");     
    args[4] = "packageName.FirstClass";
    args[5] = "packageName.SecondClass";
    return Main.process(new IapiAnnotationProcessorFactory(),args);I replaced args[4] = "packageName.FirstClass packageName.SecondClass"; with a
    args[4] = "packageName.FirstClass";
    args[5] = "packageName.SecondClass";

  • Applescript with multiple arguments

    AFAIK, Terminal.app does not accept arguments. So, I need for AppleScript to accept some arguments, then open Terminal to run them. Something like this:
    tell application "Terminal"
        activate
        set shell to do script arg1 arg2 arg3  in window 1
    end tell
    All I've been able to accomplish is:
    tell application "Terminal"
        activate
        set shell to do script arg1 in window 1
    end tell
    Help please?

    OK I have no idea how anyone is posting code now with this new ASC software but I can;t get it to work no matter what I do.
    If I make two changes to your code I get the following output in the Terminal window, which seems to be what you want.
    Last login: Thu Jul  3 07:59:35 on console
    LIBMACLAPcaggiano  ~ %
    LIBMACLAPcaggiano  ~ % /Applications/adbFire/adb  -s 192.168.1.196  shell
    zsh: no such file or directory: /Applications/adbFire/adb
    LIBMACLAPcaggiano  ~ %
    The changes were (for testing)
    set daddr to "192.168.1.196"
    hardcoding in the ip address rather then getting it setting it from argv. I'm a bit confused you show a run handler, how is the script being called?
    And second
    set shell to do script "/Applications/adbFire/adb  -s" & space & daddr & space & " shell" in window 1
    adding the -s right to the program string.
    One last thing I run zsh not sure if that has any bearing here.
    I suppose a screen shot is better then nothing
    Actually you can pair down the command to
    set shell to do script "/Applications/adbFire/adb  -s " & daddr & " shell" in window 1
    no real need for the & space in there

  • JNI callback funtion with multiple arguments

    Hi,
    Is it possible to return more than one argument in java callback function.
    for single arg return, I am using below function in my C code.
    jmethodID mid = (*env)->GetMethodID(env, cls, "callback", "(I)V");
    (*env)->CallVoidMethod(env, obj, mid, depth);
    what are the changes require to return more than one arg?
    Thanks in Advance
    Ashwani

    Is it possible to return more than one argument in java callback function.Of course. A 'callback function' is just a method like any other.
    what are the changes require to return more than one arg?1. Adjust the method declaration in the class you are calling.
    2. Compile the class.
    3. Run javap -s to see the new signature.
    4. Adjust the signature in GetMethod() accordingly in your code.
    5. Adjust the CallVoidMethod() call to pass the necessary parameters.

  • Call executable argument with multiple expressions

    I'm using the "call executable" step type in TS 4.2.  My normal command line works with windows [sflashldr com1 w 0 config.cfg binary.bin] where the bin file flashes my chip according to the cfg.  I think that this is a multiple argument expression... TestStand returns "cannot open file".
    How should the argument expression be configured?
    mcnearymw

    Hi mcnearymw,
    Is that the whole error message? If not it would be useful for us to see the entire error message.
    Also have you seen this White Paper? It might give you a better idea of how the Call Executable step works in TestStand. http://www.ni.com/tutorial/8847/en/ 
    Rachel M.
    Applications Engineer
    National Instruments

  • How to read multiple arguments separated with space in one line

    How to modify the
    public static void main (String[] args){
    }so that it can read multiple arguments separated with space in a single line?
    e.g.
    java myprogram username password host
    java myprogram2 ipaddress port
    Thx.

    public static void main (String[] args){
      int index = 0;
      for(String arg : args) {
        System.out.println("args["+(index++)+" = "+arg);
    }

  • Counting rows with multiple criteria

    I know this is a silly beginner question, but is there an easy way to count the number of rows in a table which match criteria based on different columns (sort of a countif with multiple criteria). For example, if Column A in a table has "All, Some, None" responses and Column B has "Main, Off" responses, is there an easy way to count the number of rows in which Column A has All and Column B has Off?

    Neondiet wrote:
    From an intellectual and philosophical view I agree with you. But from a practical view what I really want to do is just use one application for my spreadsheet tasks, not jump back and forth because one sheet I share with MS Windows users, and another with Numbers users, and another with OS X users who don't have Numbers or Excel but do have NeoOffice. Maybe I have to settle for that though.
    Yeah... this kind of situation stinks. Its like needing to writing software that will run on both Macs and PCs.
    Anyway, I've followed the advise in this forum and resorted to using a hidden column with concatenated values to solve my own problem, though it does seem like a bit of a hack compared to managing a single formula in a single cell. Horses for courses I suppose.
    jaxjason has posted a very elegant pivot table like solution that utilizes this technique. See http://www.numberstemplates.com/forums/showthread.php?t=36
    Btw, from what I've read on the net to date, SUM (in Excel) with an array formula answers the original authors problem of counting occurrences of values, not SUMPRODUCT; which I believe sums up the contents of cells in a range, if cells in other ranges match specific criteria.
    Yes, if you use the '*' (as indicated above) then SUM() is sufficient though SUMPRODUCT() will work as it degenerates to SUM when there is only one argument. If you use two arrays as arguments (like: = SUMPRODUCT((A1:A4="All"), (B1:B4="Off")), then SUMPRODUCT() is necessary. Here's my understanding of how it works (I hope your able to follow my abuse of algebraic techniques):
    =SUM((A1:A4="All") * (B1:B4="Off"))
    expanding the array expressions...
    =SUM((A1="All", A2="All", A3="All", A4="All") * (B1="Off", B2="Off", B3="Off", B4="Off"))
    at this point Excel computes the equality expressions, for example...
    =SUM((TRUE, FALSE, TRUE, FALSE) * (TRUE, TRUE, FALSE, FALSE))
    expanding the array multiplication...
    =SUM((TRUE * TRUE, FALSE * TRUE, TRUE * FALSE, FALSE * FALSE))
    Excel, apparently, then, when forced to multiply Boolean values, maps TRUE -> 1 and FALSE -> 0...
    =SUM((1 * 1, 0 * 1, 1 * 0, 0 * 0))
    performing the multiplications...
    =SUM((1, 0, 0, 0))
    summing...
    =1 + 0 + 0 + 0
    resulting...
    =1
    I'm afraid, now, if I continue any further, Yvan will chastise me.

  • Send multiple argument to backend method

    Dear All,
    I am trying to send the multiple arguments to backend server method using Remote Object. At the backend I am using Weborb for .net
    private function initWebOrb(event:AppEvent):void
        weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.arguments =data;
    op.send();
    but It shows the error unable to find method with name "Testmethod"  and the given argument types  at Weborb.Util.MethodLookup..........
    I have also tried.
    private function initWebOrb(event:AppEvent):void
       weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.send(data);
    I also tried to send the data as object
    var data:Object  = event.parameterdata;
    Note: I change the argument type accordingly while dispatching this event.

    try this
    <%
    int parameter=0;
    %>
    <f:invoke var="${bpmobject}" methodName="oper" retAttName="op" retAttScope = "Page">           
                   <f:arg value=<%= parameter> type="int"/>
    </f:invoke>
    the name of bpmobject passed in the arguments form ...
    edit : http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/f/arg.html
    Edited by: cealex on Jan 24, 2010 5:34 AM - :pass "parameter" Parameter :)

  • Split on multiple arguments

    I'd imagine this question has been asked lots of times already, but couldn't really find an answer when searching the forum, se here it goes:
    I want to split a string on multiple arguments instead of only one.
    The aim of it is to do some (quite simple) tokenizing, and I want to split on whitespace, dots, comma's, question mark and all. (in total I'd say about 8 characters)
    Read somewhere that this would be possible with the split function, but can't find how.
    Is there an easy way, or do I need some looping in which I first split on one character, after that on the other?

    Igor_Pavlove wrote:
    And the pattern class looks quite useful as well, need to look into that one as well.Well, it defines the split("[/s.,?!:;]") argument thing. The docs for split() refer to it in the "see also" part and by talking about regex.

  • SUMIFS + multiple arguments for a condition.

    Hello,
    I have a function looking like this :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&355)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&360)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&432)
    and I would like to know if I can get it shorter, something like :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&(355,360,432))
    I tried multiple syntaxes, but none seems to work =/ The idea is that my last condition is valid when Test::*C is equal to 355 or 360 or 432.
    Additionally, I know the formula works if written : "="&355, but can someone tell me what is the meaning of the "&" and why a simple "="355 returns a syntax error ?
    Thanks a lot !

    If you're running out of columns on your main table, there's no reason the OR formula can't be placed on the Test table.
    The problem with the proposed condition: Test :: $C,"="&OR(355,360,432)
    is that the cell in Test C will meet that condition only if ti contains the boolean value TRUE.
    OR(n,n,n), where n is any number, returns FALSE only if all of the numbers are zero, and returns TRUE if any of the three arguments is a non-zero number.
    As the cell addressed by Test::$C always contains a number, not a Boolean value, the comparison (the number in) Test::$C is equal to (the Boolean value) TRUE will never itself be TRUE. As that condition never returns a TRUE value, none of the values in column J will be included in the SUMIF total.
    That SUMIFS conditions cannot accept multiple arguments is not true. Here's a small example. The Formula is shown in the entry box, the result in the selected cell (in a footer row), and the rows included in the sum are highlighted in yellow.
    Regards,
    Barry

  • ArrayDescriptor multiple arguments

    hi all,
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);
    Thanks.

    apexlearner wrote:
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);Does this have anything to do with APEX? Looks like Java.

  • How can a family with multiple existing accounts use Home Sharing?

    I'd like to use the new Home Sharing feature, but it appears to be restricted to families in which all of the family members share a single user account.
    We already have separate accounts for each family member. Is there some way for us to use Home Sharing without abandoning most of our existing accounts, along with all of the purchases made by those accounts? I don't think anyone in this situation would be willing to do that.

    Eh. I am not too sure since I have not messed with it much but I do have a great deal of experience with multiple accounts. Each computer can be authorized for multiple accounts. As can iPods. iPods can sync songs/videos/apps from multiple accounts as long as the computer is authorized with them. What I have set up here, is I buy my stuff I want, my parents buy what they want and so do my brothers. When my bro gets something I want I just move it to my computer. That way all our accounts are separate, but if there is something I want I can get it. Also, since the music no longer has DRM, it won't matter. It will play on any computer. What you should see is if you can just do the shared library with multiple accounts. Then if you don't have videos or such, you can get apps or music. Hope this helps!

  • How do I use your iPhone with multiple iTunes libraries

    Hi, I have my music spread out between 3 seperate Itunes libraries on 3 different profiles on my computer. I have the newest generation Ipod Nano, Ipod Shuffle, and Iphone 4s. My Ipod's are both full, so I've decided to start putting music onto my phone. With my Ipod's, I can plug them into one profile on the computer, download the music on the Itunes library that exists on that profile, then do the same with the other profiles with no issue. However when I try to do this with my phone, It asks me to erase the music I have gotten from one Itunes library and sync with the current library, as soon as I plug it in to a different Itunes on one of the other profiles. I have my Iphone configured with the Manually manage music option, and I still haven't found a way to use my Iphone with multiple music libraries. PLEASE HELP

    http://support.apple.com/kb/PH12113 - If you use manual syncing, you can sync items from more than one iTunes library to your iPod. (You can sync iPod touch, iPhone, and iPad with only one iTunes library.)
    http://support.apple.com/kb/HT1202 - When manually managing content, you can add content from multiple libraries to your iPod or iPad. Even when manually managing music, some content may be available from only one library at time. This includes all content on iPhone and video content on iPod and iPad.
    They seem inconsistent as far as the iPad is concerned but in both articles the iPhone appears to only be able to sync to one library at a time.
    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972

Maybe you are looking for

  • How to group result set to count values in several (2) attributes?

    Hi there, the (simplified) query at the bottom returns the following result set: OBJ_ID Attr 1 Attr2 22674886 HAK44221 GEB132542 22674886 HAK44221 GEB92751 22674886     HAK44222 GEB92744 22674886     HAK17113 null However, we need the number of diffe

  • Link to query Form and auto-execute

    What is the secret after creating a link from a report for example, to not only pass the link parameter to a query form, but to cause the form to execute the query. Currently my query form shows the passed parameter but doesn't auto-execute..

  • Mapping Problem with IF...Else

    HI, im having problems with my if then else condition. What i want to have. (ORDERS IDOC) IF E1EDKA1-PARVW = WE and     E1EDKA1-LIFNR = "XX" then CONSTANT ("true") else Constant ("false"). If i use only one E1EDKA1 segment ... it works. If i use many

  • What is the "Psition Tuner" tool and why it is can't be found under Help?

    Hello, I'm using ID CS4 ME (middle eastern version) under OSX 10.5.6 and in my tools I see and icon that called "Position Tuner). I searched in Help, no such term appears there. I don't understand why. anyone? thank you Shlomit

  • "Photos have been found in iPhoto library that were not imported" .. There's no Import Folder to delete

    Please read the entire post prior to giving a response. Our 2011 MBP has had this problem for a while.  15 photos have been found in iPhoto library that were not imported (twice .. every time).  I've seen several posts that all have the same answer .