cancel
Showing results for 
Search instead for 
Did you mean: 

help on OS bat execution...

Former Member
0 Kudos

Good day everybody...

i have problems running a simple bat file from XI on the file adapter (FTP).

********************************************************************************+

<b>

Run Operating System Command After MEssage Processing</b>

Command Line : <b>D:\EXPORTS\MYTEST.BAT</b>

**************************************************************************

and mytest.bat contains...

ftp -s:parameters.ini some.ftp.server <b>> output.txt</b>

i added the > output.txt as a log of the bat execution...

but the file is never created...

can anyone help me runing this bat file ?

(is on my local pc, and im using a local ftp server as the Receiver)

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Luis,

The log file will be created on the XI server. It will not create on your desktop. So please do a search in XI box.

---Satish

Former Member
0 Kudos

hmm ..

got it... , all the OS executions will be made locally... not remotely 😛

now i have a question...

wich is the OS user that XI uses to run the scripts?

im guessing that i have a lack of privileges on the path wich im trying to put my logs.

Regards.

Former Member
0 Kudos

Luis,

<i><b>all the OS executions will be made locally... not remotely</b></i>

Yes you are correct. You can only execute on your xi system and not in any other system.

<i><b>wich is the OS user that XI uses to run the scripts?</b></i>

Even you can run the script provided you have necessary privileges.

<i><b>im guessing that i have a lack of privileges on the path wich im trying to put my logs.</b></i>

I would request to write the file in a location where you are currently writing any files in any one of your current interface. This will make us to confirm whether you are getting the log file or not. If it gets then in this directory you have permissions.

---Satish

Former Member
0 Kudos

thx a lot satish...

in my initial failed testings i made a test with an output

>> filename.ext

that one failed to me...

then i used a full path...

>> /full/path/instead/just/filename.ext

and it worked fine...

Thanks a lot buddy

Former Member
0 Kudos

Glad it worked Luis.

Have a good weekend.

---Satish

Answers (0)