Re:File CC OS Commands

Hi All,
I am working on IDOC to File scenario where I need to execute receiver end main frame operating commands, is it possible? or I need to create a batch file  on SAP XI server where File adaptor resides, and this batch file has a commands to connect to FTP server and executes Main frame Operating system commands?
any one can throw some light on this topic.
Thanks
Rajeev.

Hi Rajeev,
>What is the place holder Operating system commands before message process AND after message process? Can I place receiver end Operating commands (In my case its main frame Operating commands)?
If you place a script before message processing your script will be called before the file is written in the output and if you place after message processing the script will be called after the file is written.
> So In order to execute Main frame Operating system commands I need to create a scrpit file on SAP XI server ?
Yes you need to do have that script on XI server.
>We cant execute Receiver end Operating sytem commands with out a script file on SAP XI server?
No
> Script file contains only Receiver end Operating system commands or I also need to include connection parameters for example FTP Parameters?
You need to have the connection paramters also. You need to first connect to the mainframes using ftp parameters and then i assume you need to send the output file as an input to the script for whatever your process is.
Regards,
---Satish

Similar Messages

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • File adapter OS command line - Calling a command remotely ??

    Hi,
    We have a scenario where in which receiver file adapter after putting a file on the FTP  , a subsequent XML loader needs to be called which would load data into the client legacy ERP system.
    There seems to be some idea about doing it through file adapter OS command line.
    The problem is the how to call this loader command remotely from our file adapter OS command line.
    Any help would be appreciated ???

    >> The problem is the how to call this loader command remotely from our file adapter OS command line.
    The below link might be helpful ...
    http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

  • Unable to run a Batch File Operating System Command

    Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing.
    My Batch file:
    gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin
    My Command Line (ID scenario)
    exec "cmd.exe /c C:\Progra~1\GNU\GnuPG\boagpg.bat %F"
    If I execute
    exec "cmd.exe /c type C:\Progra~1\GNU\GnuPG\boagpg.bat >xis.txt"
    It displays the contents of boagpg.bat file in xis.txt.
    I just don't understand why when I run the batch file, I would expect an %F.asc encrypted file in the same directory as the %F unencrypted file.
    Any ideas?
    or will I need Basis to create commands that will allow me to run GPG from XI Command Line?

    Check this links if its helpful
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/c7423347dc488097ab705f7185c88f/frameset.htm
    /people/sap.user72/blog/2004/01/30/command-line-help-utility
    Check this thread a similar problem
    Process Integration (PI) & SOA Middleware
    Note 841704 - XI File & JDBC Adapter: Operating system command
    http://service.sap.com/sap/support/notes/841704
    Try to see the below links
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    OS Command on FTP
    OS command line script - Need help
    FTP - Run OS Command before file processing
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    If I understand correctly, you want to do the following:
    1. Create one or more tab-delimited files that specify a series of query strings (that LabVIEW will send to your products) and expected reply strings (that LabVIEW will look for in response to each query)
    2. Run your LabVIEW program (the test engine) and have it execute one or more test scripts from file using either TCP/IP or serial communication to your units under test
    3. Track how many of the queries are met with the expected response, and output an indication of whether each step passed or failed
    If this is close to correct, then I've attached a sample test file and LabVIEW VI as an example; I chose the TCP/telnet method because it allowed me to use the ni.com Web site to simulate my tes
    t hardware. If you happen to own the LabVIEW Internet Toolkit, there's a VI called "Telnet Play Script" in the Telnet palette that does something fairly similar using TCP. The same general model would also work for Serial communications.
    Hope it helps,
    John Lum
    Attachments:
    test_engine.zip ‏24 KB

  • File Ownership via Command Line

    Hello - oh my I went and did a stupid thing. I renamed my home folder and restarted which logged me as a brand new user. I can see my previous folder in the Users folder with all of it's files and everything is there - but I can't access it through the log-in pane.
    I have been told by more than a couple of mac stores that it will require 5-7 days to fix... however I googled it and found one specific document on what to do at the command level to fix this. I need assistance from anyone who knows the right syntax in which to do this. I have started by making a backup of all the original home files I want to keep. This is what I found on-line...
    "Changing File Ownership: chown
    The chown command is used to change the ownership of files. Only the root user can execute the chown command. The simplest form, and the one in which you'll end up using it the most frequently, is chown <username> <filename> , which changes the ownership property of <filename> to belong to the user <username> . The command can optionally be given as chown <username> : <groupname> <filename> to change the user and group at the same time. Additionally, -R can be specified after the command to cause a recursive change in an entire directory, instead of to a single file. The command documentation table is shown in Table 24.1"
    Can someone show me how the command line should look as I proceed with this?
    Thank you very much.
    -Derek
    MacBook   Mac OS X (10.4.8)  

    Actually, I was thinking about being even more cautious (being there, done that, ain't pleasant).
    Let me make sure I understand where you are:
    1/ you have only one login, it's your new name, but the Home associated with it is empty (has all the "regular" folders that come with the creation of a new account)
    2/ your old account cannot be accessed upon login but you "ex" home is still there and you have access to it
    If that's right, then do 2 things
    1/ create a new admin account. Call it whatever you want. In case of anything, you'll still have one with admin privileges. You may want to keep it for the future. It's always a good idea to have such an account, never used but for troubleshooting, where the Preferences are pristine.
    2/ start copying (not moving) what you had in your old home into your new one (you wanted that new name anyway, right?), making sure that the privileges are indeed associated with your new name. That should work as you are doing the copying from your new account.
    When you are all done and have made sure that everything works, then you'll be able to delete the old folder. Or you may want to keep it around for a while.
    If you have too much stuff to copy (movies, etc...), then let me know. Having the "third" account (the one I mentioned in 1) may help you. You could log in with that one, and change the names back of your homes (old and new). You would have to check what you have under Syst Pref/Accounts

  • Advice on constructi​ng a test engine and formatting a spreadshee​t test file to perform command line interface testing on a product through telnet or serial interface

    Advice on constructing a test engine and formatting a spreadsheet test file to perform command line interface testing on a range of products through telnet or serial interface and output pass/fail results.

    Hello j. smith,
    TestStand gives you the ability to create "sequence files" which are lists of tests to be run sequentially or in parallel. These tests can be written in any language: LabVIEW VIs, C/C++ DLLs, EXEs, ActiveX objects, .NET Assemblies, etc.
    You can run your TestStand sequence files from a command-line prompt using the following syntax:
    \bin\SeqEdit.exe" /quit -run
    This will launch the TestStand Sequence Editor (and optionally prompt you for TestStand login information if you have this configured), run your sequence file, then exit.
    If you're using the TestStand process model, it can output your results to a report file or database if you configure this. To use a TestStand process mo
    del to execute your sequence file, use the following syntax:
    \bin\SeqEdit.exe" /quit -runEntryPoint
    Here's an example:
    C:\>"C:\Program Files\National Instruments\TestStand 3.0\bin\SeqEdit.exe" /quit -runEntryPoint "Single Pass" "C:\Program Files\National Instruments\TestStand 3.0\Examples\Demo\C\computer.seq"
    Note that multiple sequences and sequence files can be specified on the command line.
    TestStand supports remote sequence execution using DCOM (Distributed COM), which is an east way to remotely execute tests. But as for running tests or commands through a telnet or serial interface, you would have need to check Windows documentation on how to execute command-line remotely like this.
    David Mc.
    NI Applications Engineer

  • Compress/zip files from the command line in Windows 7?

    In Windows 7 is there a native way to compress or zip files from the command line?  I'd like to do it without installing any third-party utilities such as 7Zip.

    I fully agree that Compact is not the answer. There are additional concerns with the Compact command. It enables disk compression which is a total no-no. Very bad! It makes your computer very slow and is quite difficult to undo. The only time anyone should
    use this command is when they're removing disk compression because someone turned it on to save space.  Turning this off has to be done by booting into the recovery console, if my memory serves me correctly, and it's a real nuisance.  So
    definitely no to the Compact command.
    If you wanted to compress files before sending them to another drive, or over a network, or by email, then Compact wouldn't actually help at all because the files have to get uncompressed whenever they're accessed, especially before sending them anywhere. 
    When I say accessed, I mean that just looking at a file triggers the OS to decompress it in the background and present you with an uncompressed version of it then letting you change it and recompressing it again for storage every single time you access the
    file, which is why your machine gets slower.  If you have folders or files that have blue text instead of black, then you've probably already made this mistake.
    I would also like to know if there is a built-in command for zipping files/directories, or, if there isn't such a thing built into Windows, then I would like to know if this is feature is accessible through Visual Studio, which would be just as good as having
    a command-line program for those of us that do a bit of programming.
    If anyone knows if MS provides such a feature, either by command-line or through an API, then I'd love to hear about it.  Good luck to those of you that have disk compression turn on.

  • File save as command

    Hi is there a way to get acrobat to retrieve data from the first form input field and then use it in the file naming convention when using the "file save as" command. is there a javascript or something to do this?
    In other words, I have a savable form that I created. it is going to be a template that will be filled out by people in my organizatin. Once they complete the form, they will save it to a network directory. I don't want it saving as the same file name and having people accidetnaly overwriting files already saved. Some people are not smart enough to change the file name. I would like acrobat to retrieve informatino from the first input field and use this as the name of the file to be saved. MS word does this when you create a document. I don't see why acrobat can't do it either....many thanks for anyone that can help.

    The only way is to install a folder-level JavaScript file on each user's system or use a certified document and get the users to trust it for restricted JavaScript. For more information, see this fie tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • Some files need to be updated first .Specify --force to overwrite remote files. while vlt command co

    Hi
    apps\collab\commons\components\components\.content.xml:
    Some files need to be updated first .Specify --force to overwrite remote files. while vlt command co
    What has to be done?

    have you tried vlt up --force ? Make sure that you are using latest version of vault tool. Also let us know sequence of command you are using ?
    http://dev.day.com/docs/en/crx/current/how_to/how_to_use_the_vlttool.html
    Yogesh

  • Setting IIS W3C Extended Log File settings via command line, registry or configuration file

    I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file.  More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default. 
    If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.

    I believe I have found a valid solution. You must have the WebAdministration module loaded.  I hope this helps someone.
    Use the following syntax to view current W3C fields:
    Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
    Use the following syntax to set W3C fields:
    Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"}

  • Running jar files from the command line

    I have always felt it would be useful to run a jar file from th command line in EXACTLY the same way as an EXE. On some systems, typing MYAPP.JAR will run the app, but doesn't output and command line data, so it only works for GUI apps. I've come up with a tiny C program that runs java -jar xxxx.jar for you.
    #include <stdio.h>
    #include <string.h>
    #include <process.h>
    void main(int argc,char *argv[])
         char cmd[1024];
         strcpy(cmd,"java -jar ");
         strcat(cmd,argv[0]);
         strcat(cmd,".jar");
         for(int arg=1;arg<argc;arg++)
              strcat(cmd," ");
              strcat(cmd,argv[arg]);
         system(cmd);
    }Simply compile this to an exe, rename the exe to the name of your jar file and put it in the same directory. Then just type 'MyJarFile' (no jar extension) and it should run. It passes all command live args as well. Comments ?

    Here's a better version. The JAR and the EXE can be anywhere in the PATH:
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <process.h>
    void main(int argc,char *argv[])
         char jar[1024];
         char cmd[1024];
         strcpy(cmd,argv[0]);
         strcat(cmd,".jar");
         _searchenv(cmd,"PATH",jar);
         strcpy(cmd,"java -jar ");
         strcat(cmd,jar);
         for(int arg=1;arg<argc;arg++)
              strcat(cmd," ");
              strcat(cmd,argv[arg]);
         system(cmd);
    }

  • Adobe Reader XI does not open files with a command line "path" argument.

    Adobe Reader XI does not open files with a command line "path" argument. Version X and lower all worked fine. I have deleted and reinstalled the program with no success. Is this a bug?

    Hi Daniel,
    What is the make of the printer and is it using PCL or PS driver.?
    Do you have Acrobat installed on this machine as well?
    Please check if 'Print Spooler' service is running on the machine.
    Regards,
    Rave

  • Where can I find the LOG file for bash/command history typed into Terminal?

    Where can I find the LOG file for bash/command history typed into Terminal?
    For 2 weeks ago I was searching for a log file on my server. Somehow I opend a file where I could see a list of all bash-commands I had ever entered into OSX Terminal.
    Now I need this file.. but cant find it.
    What is the official location for this LOG file?
    Thank you so much for helping.

    cat .bash_history

  • Creating .swf from .fla file using ADT command line

    Dear Adobe Community and Moderators:
    Is it possible to use the ADT command line to directly compile an .fla file into an .swf file? Context: I have an app created in Flash Pro CS55 (6 months worth of work), but now found Adobe has dropped Flash Pro in favor of Flash Builder or Flex. I have some native extensions I want to use for iOS, but they require Air 3.1 to compile (swf-version=14) i.e. using the MessageUI framework in a static .a library for an Air app. Flash Pro CS55's top end limit seems to be swf-version=13 (Flash 11). Because of heavy investment in time and energy into our Air app in Flash Pro, it's not feasible to convert to Flex by end of week. I tried creating an .swc file, and taking the library.swf from that, but alas, a catch-22, Flash Pro CS55 only compiles to swf-version=13.
    Is there any way to either (a) directly compile my root .swf file (from the .fla file) using a command line (so I can use ADT from Air 3.1 SDK) or (b) some way I can marry a native extension I've found I can use on GitHub which is swf-version=14? Again, my issue is that I have to use Air 3.1 since only it supports iOS5.
    Any thoughts, suggestions, comments are highly appreciated (including if it's not possible to do what I'm trying to do).
    Thank you Adobe community in advance,
    Alex

    I have the exact same question, please respond if you hold the answer to this! mxmlc won't work for me since I have created too many assets within the fla already! Thanks!

  • [SOLVED] Bash: Append file contents to command prompt

    Hi,
    is there a way to append the contents of a file to the command prompt? Say I have defined an alias and I want to change it on the fly. So I'd do
    $ which <my_alias>
    then mark it with the mouse, and paste it to the command line. What I would like to do instead, would be:
    $which <my_alias> > some_temp_file
    $vim some_temp_file #edit the command the way I want it
    $ # somehow get the file contents into the prompt here
    I did try to google it, but to no avail and I know, I could just create a script from some_temp_file but I want the content to appear at the command prompt instead. So is there a way?
    regards,
    mox
    Last edited by Mox (2014-03-07 15:46:09)

    Mox wrote:@progandy: Yes, this might be a step in the right direction. But what do the -i and -v options do? I did not find any documentation in the manpage. And is there a way to expand $COMMAND in the command line before running $COMMAND?
    Why do you want to have the command in a prompt twice? "read -er COMMAND && eval "$COMMAND"" creates a prompt-like environment and then executes the input string. What the options do you can read in the bash-internal help, e.g.:
    $ LC_ALL=C help read
    -e use Readline to obtain the line in an interactive shell
    -i text Use TEXT as the initial text for Readline
    -p prompt output the string PROMPT without a trailing newline before
    attempting to read
    -r do not allow backslashes to escape any characters
    Here is an example:
    [progandy@pamobile ~]$ alias some_test='echo -e Hello WORLD"!"'
    [progandy@pamobile ~]$ command_to_edit="some_test"
    [progandy@pamobile ~]$ read -erp "Edit and execute: " -i "$(command -v $command_to_edit)" COMMAND
    Edit and execute: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ ####### in the line above you edit the command and bring it in the final form with all necessary paramters.
    [progandy@pamobile ~]$ echo -E " *~* Now running: $COMMAND"
    *~* Now running: echo -e Hello WORLD"\t!"
    [progandy@pamobile ~]$ eval "$COMMAND"
    Hello WORLD !
    [progandy@pamobile ~]$
    Last edited by progandy (2014-03-05 05:21:39)

Maybe you are looking for