cancel
Showing results for 
Search instead for 
Did you mean: 

Running a batch file on ftp server

Former Member
0 Kudos

HI All,

i am trying to use Command line facility of file adapter to run a batch file..

i batch file i have a single command as

mkdir ranjeet.

how should i call this batch file from file adapter..

i tried putting batch file name in the command line section. I had copied the batch file on ftp server at location of Target Directory..but in audit log of adapter i am getting error as OS command cannot be executed..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Ranjeet.

Command line serve to execute a batch file in XI server, not in FTP server.

If you want to create a directory in FTP server, you must create two batch file:

  • One in XI server, calling with remote shell the second batch (in FTP server)

  • One in FTP server, creating the directory

Regards,

Carme

Former Member
0 Kudos

ok..but what will command to be run of ftp run..

will it be 'mkdir dirname'..

Former Member
0 Kudos

Ranjeet,

>>ok..but what will command to be run of ftp run..

How do you expect any one of us to know what your ftp server is based on.

The previous reply by Carme has answered your XI query and to the point. You acknowledge it with a <b>ok</b>!! I guess it is too rude on your part.

Anway answering your question, that depends on your FTP server. Log in to your FTP server manally and try executing these commands and check.

Regards,

Jai Shankar

Answers (2)

Answers (2)

nisarkhan_n
Active Contributor
0 Kudos

how did you call the script? what command ?

Former Member
0 Kudos

Hi Ranjeet

please follow this blog it will solve your problem.

/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi

Thanks

sudhir sharma