cancel
Showing results for 
Search instead for 
Did you mean: 

Run Operating System Commands

Former Member
0 Kudos

Hi,

There is an urgent requirement, i want to know about Run Operating System Commands in file adapter. What are all possible commands for windows operating system? and how it works? Kindly send me your suggestions and links at the earliest.

Your help will be appreciated.

Thanks,

Sadhna.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Run Operating System Command Before/After Message Processing

● Command Line

An operating system command specified here is executed before or after the message processing of a file that was found in a run. The default value is an empty character string (no command).

When the operating system command is called, the file name currently being processed can be specified with the following placeholders:

● %f (file name)

● %F(absolute file name including path)

● Timeout (secs)

This specifies the maximum runtime of the executing program in seconds. When this time interval is exceeded, the adapter continues processing. The executing program continues to run in the background.

● Terminate Program After Timeout

Set this indicator if the adapter is to terminate the executing program when the timeout is exceeded.

The adapter writes the output (STDOUT and STDERR) for the operating system command in the system trace.

Regards,

Phani

Former Member
0 Kudos

Hi Phani Kumar,

Thanks for promt reply. I read this in library link, but i want commands which are used to process some file like open, copy, edit, etc. I dont know the exact syntax. Kindly forward me the complete walkthrough for this. Also tell me that is it possible to use more than one command and how?

Thanks,

Sadhna

Edited by: Sadhna Achhra on Apr 1, 2008 9:02 AM

former_member238007
Contributor
0 Kudos

Hi Sadhana.,

If u want to run more that one command ., the only option is try to create a batch file and call the batch file in the Run time Operating system command.,

cmd /k e:\usr\sap\trans\AGCO\Packslip\PS_Upload.bat

the batch file should be stored in XI server..

try with this and post with any queries..

regards

Kishore

Former Member
0 Kudos

Hi Sadhna,

OS commands are MS DOS commands if your using Windows as your OS,

Please specify which OS are you using, in case of windows, here it is:

http://www.easydos.com/dosindex.html

http://www.computerhope.com/msdos.htm

Thanks,

Varun

Former Member
0 Kudos

Hi,

Refer below link to see the list of commands with examples

http://www.simotime.com/ftp4cmd1.htm

Thanks

Swarup

Answers (3)

Answers (3)

aashish_sinha
Active Contributor
0 Kudos

Hi,

Look into this thread related to Run operating system commands.

also check out these links.

/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

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos
Former Member
0 Kudos