RFC_REMOTE_PIPE is Returning 1 alwasys and not able to execute Unix shell script

Hello All,
I am trying to execute a simple unix shell script from ABAP.
What I did so far..
1. created a test.sh file  with single command echo "Hello".
2.  placed this file on application server /Usr/sap/test.sh
3. executing ABAP program which as FM RFC_REMOTE_PIPE
CODE:
CALL FUNCTION 'RFC_REMOTE_PIPE'
   DESTINATION 'SERVER_EXEC'
EXPORTING
   command  = lv_command
   read          = 'X'
TABLES
   pipedate    =  lt_stdout
EXCEPTIONS
system_failure  = 1
communication_failure = 2.
if i populate lv_command  = echo "hello" it works fine
if i give .sh file path in lv_command it is not working. it returns 1.
Please help...
I was searching SDN i found that rfcexec service should be enabled... how do i check that..
i checked t code  \SMGW , i don't see any output...
i checked FM GWY_READ_CONNECTED_SYSTEMS, i don't hsee anyting related to unix...
Please suggest.

I resolved the issue.
It was issue with permission.
Script file should have full permission ( Mode 777)..
Thanks everyone.

Similar Messages

  • Telneting to a remote host and executing unix shell script

    I am using VPN.I want to telnet to a remote server and execute some script there and show it the output in my front end..is it easily possible thru java..i know it can be easily done thru Python...can anyone let me knw if this can ve achieved properly thru java..thnx plz let me knw ASAP.

    Yes surely I have wriiten the code..
    I have first used a Socket to connect to teh host at port 23.
    Then i am using outstream to give the user and passwd .. but in my Inputstream i am getting some vague outputs (some symbols..$,%,etc..) This is the code for ur reference....
    import java.net.*;
    import java.io.*;
    class Telclient {
    public static void main(String args[]) {
    int c;
    try{
    Socket s=new Socket("abc.net",23);
    InputStream in=s.getInputStream();
    OutputStream out=out.getoutputStream();
    String str="user" + "\n" + "password" + "\n";
    byte buf[]=str.getBytes();
    out.write(buf);
    while((c=in.read()) != -1) {
    System.out.println((char)c);
    s.close();
    Please help with teh code , bcoz its not really working..Need urgent helpI also used TelnetClient from jakarta , but failing to understand
    how to use those classes to use..can anyone show me an example...

  • About itunes match, i replaced my iphone 5 at the store on sun, music are gone and not able to sync

    at the title,
    i was replaced my iphone 5 due to camera problems,
    then i cant gte my itunes match on my new iphone 5 again,
    all the music are gone, and not able to sync,
    also, i tried to disable and enable over and over again the service on my iphone, still not able to do that,
    forced power rebooted, problem is not solved...
    so that is why i hope you guys can help me solve my problems,
    and i want my music back,
    so much thanks

    After the first install of iOS8 my iPhone5 locked up with a picture of a cord connected to a device linking to iTunes.  After taking my iPhone5 to the Apple Store, an Expert was able to get my phone operational again.  However, when I returned home I found I no longer had options in iTunes to SYNC or BACKUP my iPhone5.  I suspect that ITunes does not recognize my IPhone any longer.  For the past 1.5 years I have no problems updating or syncing my iPhone…it was only after I upgraded to iOS8 last week.

  • I have inadvertently infringe copyright on facebook and they have subsequently barred me from uploading any more videos. The question I need answered is ( and not able to find the answer on any of you help pages).....  Do the following have free copyright

    I have inadvertently infringe copyright on facebook and they have subsequently barred me from uploading any more videos.
    The question I need answered is ( and not able to find the answer on any of you help pages).....
    Do the following have free copyright to publish on facebook and U Tube?
    1.Garage band sounds?
    2.Slide show...Sample music and Theme music?
    3.iMovie...iMovie sounds and iLife sounds ie.Medal Ceremony and Memorial etc?
    I note one can publish to shared net places directly from iMovie so one assumes these are copyright free for non-profit making and non-comercial use.
    It is impossible to contact apple direct.No email address.We put our selves at risk without this knowledge and like applemac, facebook will not communicate direct.Will applemac please take responsibility for copyright/the above that they are all too willing to sell to us but not support us with that knowledge.
    I have Mac OS X Snow Leopard version 10.6.2 (2009 bought in 2010)

    Thank you Klaus1.The large font, I copied and pasted from my mail box.I'm visually impaired...not to a huge degree but it helps to use the large font.I believe you are right about the copyright on the imac stuff but if facebook decide otherwise, you have to reply electronically to their challenge.If you can't provide a reference directly from the copyright owner then they remove the video.I believe this is a programmed response and no human is involved which now makes it impossible for me to get my video uploading restored.They detect added soundtrack automatically and then challenge.There are many others in the same boat and facebook will not communicate.They have various discussion sites on which I have left messages including Mark Zuckerbergs own facebook but I don't think anyone from facebook ever reads them.I intend to start a second facebook which I can use purely to get my videos uploaded as a lot of my friends enjoy them BUT don't want fall foul of their programming again.If only iMac would put something on the net to this effect.I think it is so unfair that with modern technology it is impossible to contact these large conglomerates personally and receive an email response.I tried emailing [email protected] but I got a failure notice.If you have any ideas on how to get verification from apple direct, I would be very grateful.Thank You.

  • I have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any sugg?

    i have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any suggestions?

    This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.

  • I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be

    I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be selected. Any thoughts? TIA

    Greyed imaged in the Import dialog box mean you have already imported the photos into Lightroom, so there is no need and no benefit to importing them a second time.
    Just go to the Library module, search for the desired photos, and resume working on these photos.

  • TS4449 When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..

    When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..
    And some time it's worked...

    OMG.....this very tiny hole located next to the headset jack........I suffered for the same issue around 20 days after purchasing my iPhone 4S. Even I visit the apple store too, they suggested to talk with apple online.....just before going to apple, i was reading "iPhone: Hardware troubleshooting" (http://support.apple.com/kb/TS2802) and at the very first line, i found "Make sure that nothing is blocking the top microphone (located next to the headset jack)." and this located next to the headset jack solved the problem completely for sound in vidio as well as sound with calling speaker phone.....Actually, I purchased a plastic cover (like screen protector type) that blocked this small hole (microphone hole i think) and the problem was because of this...I remember on the first day i talk with speacker phone (nothing on iPhone at that time) and it was working...
    No need to restore or hard reset anything...i was fearing i'll lost everything if I hard reset my iPhone that took 5-10 to build my iPhone as I like apps, music, vidio on it....

  • When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..So Please need Full Answer?

    When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..

    reset all settings
    settings-general-reset-reset all settings
    now reconnect to wifi
    settings- wifi- click network name- enter password - join
    if issue persists back up and restore as new via iTunes
    Peace, Clyde

  • HT204409 I have a MacBook Pro and not able to connect to Internet? PLEASE help!

    I have a MacBook Pro and not able to connect to Internet.  I have other HP comp and iPad and am able to connect.  I have contacted AppleCare....they said disconnect router and leave unplugged for an hour, which I did...still no connection.  Any suggestions?  Thanks!

    Call Apple Care back & tell them their suggestion did not work. 
    Solution may be found if you search in the "More Like This" section over in the right column.

  • HT1414 my phone went on switch off mode since yesterday and not able to put on again till now.

    my phone went on switch off mode since yesterday and not able to put on again till now.

    I am having the same problem.

  • I have lost my contact from iphone 5 and not able to retrieve the data, however  it reflects old contacts are reflected with Whats app messages

    i have lost my contact from iphone 5 and not able to retrieve the data, however  it reflects old contacts are reflected with Whats app messages

    WWhat are you syncing your contacts with? A supported application on the computer or cloud service? They should still be there.

  • Problem with my Ipod 4...always hanging and not able to surf anything ???what should I do??

    Problem with my Ipod 4...always hanging and not able to surf anything ???what should I do??

    - If Safari is having problems, go to Settings>Safari and delete cookies, history and cache
    - Also try the following one at a time:
    - Reset. Nothing will be lost
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.

  • I have installed photoshop illustrator on mac which is working fine but update online is grew out and not able to update

    i have installed photoshop illustrator on mac which is working fine but update online is grew out and not able to update

    Hi Team,
    The option to disable to update is chosen by your IT admin when he created the package.
    The IT Admin can re-enable the update by following the link below:
    Disable auto-updates | Application Manager | IT administrators
    Cheers!
    md

  • HT201413 when trying to connect itunes to store, error (-3212) display and not able to connect store

    When trying to connect itunes to store, error (-3212) appear and not able to connect itunes

    iTunes has been denied by your firewall. Add iTunes to your firewall allowed list.

  • I installed new OS to my IPhone 4 and now phone gets hangs and not able to type or chat .. how to resolve it now

    i installed new OS to my IPhone 4 and now phone gets hangs and not able to type or chat .. how to resolve it now

    Try a reset to begin with. hold down the Sleep and Home key until Apple logo appears on the screen.
    Regards,
    Steve

Maybe you are looking for

  • Hyper-V encountered an error trying to access an object on computer ...

    I'd like to share an issue which occurred during one of my recent configurations as well as the associated solution which worked for me. While configuring Hyper-V Manager on a non-domain joined Windows 8.1 Enterprise client, to communicate with a non

  • Major IPhoto 09 Error!

    I just imported some photos into IPhoto 09 and shortly afterwards my IMac did a hard shut down. Now when I open IPhoto I get the following error: The Photo Library nees to be upgraded to work with this version of IPhoto. After that I click on upgrade

  • Nokia 101 will not access Contacts on either SIM c...

    Each SIM card operates for calls or SMS. Phone will not touch (read or create) Contacts on either SIM card, says "SIM card not available" end of story. Phone has no USB socket of any kind, menus do not mention BlueTooth, so I cannot relay Contacts vi

  • Vertical vs. Landscape printing

    I want to print my calendar in the "vertical" position with the appointments blocked off by color. Instead, it printing horizontal/landscape with the appointments denoted as a small thin vertical line. Anyway to correct this. I have tried both HP and

  • Updated- Firefox 7 and now i cannot view images

    Just updated -Firefox 7 (BIG MISTAKE ) now the images takes longer to load or never loads, and Firefox 7 is very very slow!!!! Is it just me?