Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Executing .bat file on a Remote Windows client from AIX server

Former Member
0 Likes
639

Hi guys,

I would like to execute a bat file on a remote Windows print server from SAP AIX server. The bat file includes a command which sends a text file to a windows shared network printer's spool.

the command is as follows "copy c:\test.txt \\10.0.0.1\Printer".

This setup is working on a SAP windows server by using SXPG_COMMAND_EXECUTE by creating an O/S command in SM69 but we are migrating our servers to AIX.

So i tried a few ways to achieve it but i could not manage to get the process working. I tried creating an entry on AIX server which uses LPR command to directly send the text file on printer's queue, but no deal. Any help will be appreciated

Thanks in advance.

Cem.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

solved by using LPR command.

Hi guys,

I would like to execute a bat file on a remote Windows print server from SAP AIX server. The bat file includes a command which sends a text file to a windows shared network printer's spool.

the command is as follows "copy c:\test.txt \\10.0.0.1\Printer".

This setup is working on a SAP windows server by using SXPG_COMMAND_EXECUTE by creating an O/S command in SM69 but we are migrating our servers to AIX.

So i tried a few ways to achieve it but i could not manage to get the process working. I tried creating an entry on AIX server which uses LPR command to directly send the text file on printer's queue, but no deal. Any help will be appreciated

Thanks in advance.

Cem.

1 REPLY 1
Read only

Former Member
0 Likes
533

solved by using LPR command.