2 Replies Latest reply on Nov 23, 2007 1:19 AM by Vikash_Agrawal

    Please suggest

      I am working in linux platform with CF8.
      I made a .sh file with some FTP commands. i want to execute it and read the output of this execution.

      I am using CFEXECUTE tag in which i have written command as
      bash /usr/vikash/testing.sh 1>/usr/vikash/outputTest.txt

      Here testing.sh contains all ftp commands.

      PLease suggest how i can do it or any alternative of doing it.
        • 1. Re: Please suggest
          Dan Bracuk Level 5
          Since you have created >/usr/vikash/outputTest.txt, you can read it with cffile or mail it to yourself with cfmail.
          • 2. Re: Please suggest
            Vikash_Agrawal Level 1
            That is OK that i can read it.
            But this file contains only some javaarguments.xml and something like this contents.
            I want to know ki how i can execute it properly to get output of file .sh file.
            Testng.sh contains----
            ftp <<**
            FTP NAME
            cd wach

            I want to execute this command through my CF application in linux platform

            bash /usr/vikash/testing.sh 1>/usr/vikash/outputTest.txt

            Please suggest with syntax.
            Thanks in advance