Os command for ftp server

I use file adapter receiver channel to transfer messages to external ftp servers. After a file is transported to the ftp server completely, I need to run a OS command to rename the file accordingly.
My question is where I should put the OS command file? On XI or ftp server? Any blog on this topic available?
Thanks!
Regards,
Hui

Hi,
Try using RUN OPERATING SYSTEM COMMAND AFTER MESSAGE PROCESING and RUN OPERATING SYSTEM COMMAND BEFORE MESSAGE PROCESING.
You just post ur output file in some folder(Target) , lets say /usr/sap/sapout/test/.and the shell script in this path /usr/sap/bin/convert.sh (use ur Rename logic here).
Inside the File access parameters put target directory and filename scehme and for shell script give processing parameters as File construction mode , File type and OS Command and use a space after the shell script name and the %F.
And for input can use it directly.
For the shell script (which u will use to rename the file after processing) you can put anywhere inside /INTERFACE/XI/ but athe time you provide the pat it will be exactly matching as from where you are using the Shell Script and the file at the coressponding places. It shud be in XI. Thats it and u r done.
Check out these links. First one will help you in acheiving want you want.
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
I hope this will solve your problem
Regards
Aashish Sinha
PS : reward points if helpful

Similar Messages

  • Enable logging for FTP server in 10.8

    Can't figure out how to enable 10.6-style logging for FTP server in 10.8. It used to be configurable via Server Admin allowing you to choose what to log and so on and the logs would go to /Library/Logs. Now I only see some irrelevant stuff in /var/log/system.log and I want to have all the transfers logged on this server. Tried setting parameters via serveradmin ftp:setting = param but it wouldn't appear in the list afterwards no matter what (just copied those off a working 10.6 server).
    As a bonus, I can't figure out where the settings for logging are stored in a 10.6 server either. There's certainly not a mention of a file named FTP.transfer.log. Weird!

    So to help anyone who finds themselves in the same boat and wants to enable ftpd logging on OSX 10.8 proper:
    All operations assume root which is obtained by issuing 'sudo su' or just prefixing every command with 'sudo'.
    First you edit the ftpd's launchd plist file:
    pico /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.a pple.ftpserver.plist
    Find the section titled 'ProgramArguments'. Amend it so it looks like this:
    <key>ProgramArguments</key>
            <array>
                    <string>ftpd</string>
                    <string>-ll</string>
                    <string>-r</string>
                    <string>-n</string>
                    <string>-d</string>
                    <string>-c</string>
                    <string>/Library/Server/FTP/Config</string>
                    <string>-L</string>
                    <string>/var/log/ftpd.log</string>
            </array>
    Second you edit /etc/asl.conf. This is necessary to make '-d' (debug) switch work since by default syslog won't log any debug-level messages at all.
    pico /etc/asl.conf
    At the end of the file add the following:
    # ftpd verbose logging
    ? [= Facility ftp] [<= Level debug] file /var/log/ftpdv.log
    Third important step is to reboot the server. ftpd's plist configuration is cached somewhere so restarting just the ftp server alone won't work.
    Now what the added switches do:
    -ll enables some logging (PUT and GET commands only despite what the man pages leads you to believe) to a file specified later by -L /path/to/file
    -d enables debug mode which logs everything - including server's response. May be too verbose but at least you get a log of every single command issued to the server by your clients.

  • New command for radius-server source-ports

    I am trying to find the new command fro radius-server source-ports 1645-1646 since it appears to be depricated.  We use tacacs so we do not have the radius server specified but we do need to put in the ports.  Can someone please tell me the new command for radius-server source-ports?
    Thanks

    Both of the links that Peter posted are interesting and helpful. I would like to take a slightly different approach in answering your question.
    In every version of IOS there are certain commands that get inserted into running-config when a particular feature is activated. It looks like in your version the radius-server source-ports is one of those commands. I do not think it is anything that you should be concerned about.
    And I do not believe that having the radius-server source-ports command would prevent TACACS from working. I believe that there is likely to be some fault in your configuration. If you would post the aaa parts of the config then maybe we could see what the problem is.
    In my experience configuring aaa some of the common problems include not correctly identifying the TACACS server, not having exactly the same key configured on the Cisco device and the TACACS server, not having connectivity to the TACACS server (can the Cisco device ping the server, and can the server ping the device), or errors in the authentication or authorization prameters specified.
    Post some information and we will see what we can do.
    HTH
    Rick

  • How to create the anonymous user for FTP server in Linksys E3000?

    I made a FTP server in my Linksys E3000 and everything work great. But when I send URL to my friends to download file, everyone must login
    So, can I create Anonymous User (like FTP server in PC) to simplified everything ?
    Thank you so much!

    Thank Great_White!
    But i mean not that. I can create user to access my FTP server but that users must have user name and password.
    I want to create Anonymous User like FTP server in Computer (no user name and password). So when i send link to my friends, they can download without login user name and password

  • What is the commands for SQL server job to ftp file to remote server?

    I created the job to bcp data out and create file on file system. after that, I need to ftp the file over to another box. how can I do it from sql server job?
    JulieShop

    I would like to suggest a SSIS package with a
    FTP Task instead.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Command for proxy server /power suppliesinformation

    Hi All,
    I want to know the proxy server for my solaris 9 machine..in windows we check internet connection we can see the proxy server setting.
    i want a command to see how many power supplies are connected to a sun solaris machine.
    Thanks,
    Pavi

    I used my SunSolve account id directly to where the URL on the page normally take you.
    wget http-user=XXXXXXX  http-passwd=YYYYY http://sunsolve.sun.com/private-cgi/pdown
    load.pl?target=120469-01&method=hs -O 120469-01.zip
    Get the xref via:
    wget http-user=XXXXXX http-passwd=YYYYYY http://sunsolve.sun.com/private-cgi/pdown
    load.pl?target=patchdiag.xref
    I've had to change this various times when Sun makes site changes though.
    I thought I had an example with Perl LWP somewhere that takes the xref over http and creates a file handle out of it suitable for a (<while_file>) type of loop. Can't find that one though, must have scrapped it for some reason. If I come across it, I'll post it for ya.
    I would think it wouldn't be to difficult to turn an xref file into something that smpatch -x could take and let it go get everything.

  • Gettiing error message 503 Bad sequence of commands from ftp server.

    IE works for these ftpsites, FireFox doesnt.

    Firefox only supports downloading via passive FTP.
    If a server needs active FTP or if you need to upload then look at an extension like FireFTP or an external program like FileZilla.
    You can look at:
    * FireFTP: https://addons.mozilla.org/firefox/addon/fireftp/
    * FileZilla: http://filezilla.sourceforge.net/

  • Can't set up remote path info for FTP server to connect Contribute to new Mac

    I just bought a new Mac and need to connect Contribute to my website. This all worked great on my previous Mac.
    I called Bluehost (my provider) to have them walk through the connection questions, but we got stuck at the Remote Path Info. Something appears to be getting blocked on the Adobe end of things.

    Moving this discussion to the Bridge General Discussion forum.

  • VRF and FTP Server

    I have a weird problem with VRF and FTP Server. I have a lab setup whereby two VRFs Client1 and Client2 are created. Both the VRFs are in the same subnet. I have configured FTP-Server and TFTP-Server on this router. TFTP-Server works perfectly fine from both the networks. But for FTP-Server, I can login in to the FTP Server and authenticate positively. But when I try to do listing of directory, it gives a error "can't bind data".
    The web access to this router also works perfectly fine.
    Any idea why FTP fails.
    Before configuring vrf, the FTP server did work fine.
    Any idea why. here's the config :
    interface FastEthernet0/0.371
    description Client1
    encapsulation dot1Q 371
    ip vrf forwarding client1
    ip address 10.0.1.1 255.255.255.0
    interface FastEthernet0/0.372
    description Client2
    encapsulation dot1Q 372
    ip vrf forwarding client2
    ip address 10.0.1.1 255.255.255.0

    Ohhhhhhhh!!!
    I'm even more convinced its a passive/active problem with the ftp control channel. Did you try the gentleman's suggestion of passive ftp?? What's happening is that from a client on one vrf, you're attempting to terminate the ftp session in a router whom is in the second vrf. The ftp data session isn't vrf-aware from the sound of it, hence my question about what device models and IOS you're using.
    But I agree, it's getting complicated enough that sounds like TAC-time. My bet is something isn't vrf-aware to the point that the data is lost. For instance, to ping from one device to another from _within_ a vrf router instance, you have to use the keyword "vrf" like "ping vrf VRF_Name src dest".
    In your situation, your source is on one vrf while the destination is _within_ the second vrf, not just simply the IP packet being routed from vrf1-client (like a Windows PC) to vrf2-server (like a Unix ftp server).
    I'd be interested in hearing their solution.
    -Jeff

  • How to connect to an FTP server via Midnight Commander _User_Menu_?

    Hi everyone.
    There's a nifty command that works in MC and makes it connect to an FTP server and display its directories just as if they were local ones: cd ftp://USER_LOGIN@SERVER_NAME. The only thing it asks for is a password, obviously. That's exactly what i'm looking for, theoretically.
    I know it's not really a standard Bash command, because if invoked outside MC, it returns an error (directory not found).
    I got kind of tired of typing it in (or copypasting it) every time, so i thought why not make it automatic? A Bash alias or a shell script wouldn't work, because as i said, it's not really a bash command.
    But what surprised me was that it didn't work as an entry in MC's menu, too.
    Tried to go another way, discovered kftp, apparently it's completely not what i am looking for.
    And i didn't even understand what F9 > Left > FTP Link in MC did. It isn't automatic as well anyway, i have to type everything in manually.
    Can anyone advise how to automate FTP connection in MC, or even in Bash (so that MC just treats it like a regular directory)?
    Big thanks in advance.
    Last edited by kiruch (2010-07-04 20:53:44)

    kiruch wrote:mcsilva, here are the contents of my ~/.netrc file: machine ftp.0fees.net login MYLOGIN password MYPWD
    When i invoke cd ftp://ftp.0fees.net, it tells me bash: cd: ftp://ftp.0fees.net: No such file or directory
    This is not the correct way. You are using bash command line. For this to work it must be:
    # mc cd ftp://ftp.0fees.net
    kiruch wrote:When i invoke it as an entry of MC's menu (what i'm aiming for), i get /tmp/mc-cyril/mcusr6BWdYd: line 2: cd: ftp://ftp.0fees.net: No such file or directory - well, basically the same.
    I don't know what do you mean by "invoke an entry of MC's menu",
    Is this:
    Left->FTP link or Right->FTP link ?
    kiruch wrote:And finally, if i type cd ftp://ftp.0fees.net manually into MC's command prompt, i get a red alert message that says Cannot chdir to "ftp://ftp.0fees.net". Input/output error (5)
    In the first post you said you were able to login with "cd ftp://USER_LOGIN@SERVER_NAME", so MC is working well.
    This error you showed is the same which I have when I type "cd ftp.0fees.net" in the MC command prompt (maybe you typed wrong...)
    Instead, when I try "cd ftp://ftp.0fees.net" the popup error is:  "ftpfs: Login incorrect for user anonymous"
    This is what I expected, because I don't have the username and password and I'm trying a anonymous login.
    Are you sure your typing is right? Please, check your typing and try again.

  • Receive file by FTP (Server is restricted to get command only)

    Dear all,
    I would like to receive a file from a very special FTP server. And I am not sure if the File Adapter is able to handle this:
    The FTP server I wand to connect to is a very special one. This server allows only to log in and to receive a specific file. This means that the only allowed command is
    get file.dat
    It is not possible to change directory or to get the directory listing. When the file was received it is not necessary (and not possible) to delete the catched file. The FTP server notices that the file was received and removes its content. This means that the file will not be removed. So it is always possible to get the file. But in most cases the file is empty (but that should not be a problem - the File Adapter can handle or ignore empty files.).
    From my point of view it seems that SAP XI 3.0 SPS17 does not support to interact with this special kind of FTP Server. In RWB I can see the following error message:
    "An error occurred while connecting to the FTP server 'XXX.XXX.XX.X:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 500 -3002 : command : invalid command'. For details, contact your FTP server vendor."
    I connected to this FTP server manually. I get this error message when I try a command which is not allowd by the FTP server ("ls" for example). So I guess that SAP XI uses "ls" before catching the file.
    Do you have an idea how I can configure the File Adpater to work with this FTP Server properly?
    Many thanks
    Michael

    Hi Michael,
    This is a tricky one. The set of required ftp commands that need to be supported to be RFC compliant is quite small (see RFC 959) but it seems that the file adapter assumes a certain minimum set (including CWD and LIST, both of which are optional).
    There are several options, varying in complexity immensely:
    1) Scripting the transfer process so that files are transferred to a local filesystem, from where they can be processed by XI
    2) Adjusting the "special ftp server" so that it ignores commands it doesn't understand - I'm guessing this isn't possible?
    3) Creating a "more relaxed" ftp JCA adapter, one that doesn't assume a certain minimum set of commands
    4) Something else I'm not thinking of so early in the morning
    Hope that helps a little...
    Regards, MJ

  • FTP Server in FXP mode : PASV / Illegal PORT Command

    Hello,
    In our workflow, we transfer the media files with the FTP protocol in mode FXP (server to server), the commands are initiated by an automation system.
    This system work with the plateforms windows (serv-u), linux (vsftpd), osx (tnftpd) but it's impossible on a osx server (xftpd). The aim is to write file on our Xsan.
    The error is an illegal PORT command, when the automation system sent the IP adress of the other server.
    For test, If the IP adress of the destination server is the same that the automation server, the transfers are good, the PORT command is accepted.
    But in our case, the ip adress, is a other server...
    We can't to run the ftp server in FXP mode, and I do not want to install a Pureftp for to replace the tools included with osx server (and server admin).
    I think that's is possible, because this workflow works on a osx after we have modify the ftpd.conf (checkportcmd off).
    We not found in the file ftp access and nothing on the Internet, that's why I write on this board.
    I need your help, anyone have a solution, it's really important ?
    Thank you very much.
    Franck

    Hello Franck,
    I'm attempting the same thing.  Did you find a solution to your problem?

  • Os10.5.8 connection FTP server no popup windows asking for my logging and password

    I'm actually working on mac book pro 10.5.8 and I try to access a FTP server. Finder then command+P and my address. The finder open me two files "Array and Info" but nothing in the Array folder where everything should be. The problem found is that the system is not asking me for my password and login. My friend who is working on 10.6 get this popup windows asking for login and password. Why I don't get this windows on os 10.5.8. 

    find the trick. ftp://name@server

  • Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.

    Could not able to execute FTP commands in windows server machines 2012/ windows server 2008.
    From windows server 2012 and windows server 2008, Opened port 20,21,22 in firewall bidirectionally. After Establishing connection by passing credentials  230 log in  successful.
    ftp commands executing getting as " 425 Use Port or PASV first" , "500 Illegal PORT command".
    But I could able to do windows client machines like windows 7 and windows 8 with same environment
    Note : Firewall ports are opened.  have tested by making firewall down to avoid filters. 
    Pandiyan Muthuraman

    Hi Pandiyan Muthuraman,
    Did you mean even you disable or open the related port the FTP issue still exist? I found this errors most time occur when we use the ISA firewall and the FTP configured passive
    mode, if you have ISA firewall please refer the following KB to fix this issue.
    How to enable passive CERN FTP connections through ISA Server 2000, 2004, or 2006
    http://support.microsoft.com/kb/300641
    The have a specific form for the IIS question, if you have the further IIS related question you can ask in IIS forum.
    IIS support forum
    http://forums.iis.net/
    Thanks for your understanding and support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • FTP server: PORT command not supported??

    Hi,
    In a nutshell - we are trying to set up PASV -- PORT connection between a Tiger server (10.4.11) and another system (say it's a windows FTP server). Issuing a PORT command to a Tiger FTP server fails with this error:
    -> PORT 192,168,11,3,199,158
    <- 500 Invalid PORT command
    I have done some research on the web and as far as I can see - this is just a feature that is disabled in Mac OS X ftp server.
    What's strange is that "features" command states that PORT is supported.
    Has anyone seen PORT command work for a Tiger Server ftp daemon?
    Has anyone succeeded enabling this command on a Tiger server?
    Can you recommend another FTP server that works well on a Tiger server?
    Thanks a million,
    Darius

    Passive (PASV) and Port (PORT) mechanisms are orthagonal.
    If you're working with PORT, then you're almost certainly trying to clear through one or more firewalls. And a firewall can also trigger the Illegal Port Command error for a PORT command.
    (Though I don't see a PORT command in the Mac OS X ftp client. I've checked a couple of clients, and it isn't common to expose it.)
    ftp is a mess. Insecure, difficult to configure, insecure, firewall unfriendly, insecure, and slow. And did I mention insecure?
    (No, I'm not a big fan of ftp.)
    Some reading material:
    http://www.cert.org/techtips/ftp_portattacks.html
    http://www.slacksite.com/other/ftp.html
    http://cr.yp.to/ftp/security.html
    As for a suggestion, chuck ftp and switch to sftp.

Maybe you are looking for

  • HT201269 how do i move all my data from blackberry bold 9700 to iphone 5

    Hi, I want to move from Blackberry Bold 9700 to an Iphone 5 but I want to save all my current data on my blackberry and move it all to the iphone 5.  How can I do this?  Many thanks for any help you can give me.

  • Photos do not appear in iMovie 11

    Suddenlhy photos imported into iMovie 11 do  not appear in iMovie anymore. Previously imported photos appear fine. I am using OSX Mountain Lion. Any idea what is wrong ?

  • Calendar Integration with Portal Server 6.0

    Hi, I have installed Calender Server 5.1.1 with portal server6.0..When click the Launch Calendar channel link in my portal page,it takes me to login page for Calendar Server on.I expected it to take me to the calendar page .I donot want to re-authent

  • Brand new 80gb! very frustrated?!?!

    i have a brand new ipod classic 80 gb. i had a 30 video and absolutely loved it, but it was stolen in a vehicle robbery and this is my replacement. when i hook it up, i am given a message that the ipod "ipod" requires itunes 7.4 or later and to downl

  • Migrating from Sybase 11 to Oracle 10G : Data not Captured

    Hi, We are working on an interesting customer engagement - one part of the effort is to migrate our Customer's Database. Our Customer is using the Sysbase 11 Database - we are planning to migrate this to Oracle 10G. We are using the latest Migration