Once file1.txt, receives to Server-B , needs to execute a background job.
This file (file1.txt) can come either in 1hr/2hr/30min/10seconds or anytime. Each time Server-B receives this file, it needs to execute a background job with t-code ZS01 , with that file data as variant.
Is it possible to do some thing like this, in sm36 job scheduling or with using OS commands.
As there is no specific time when the file will be transferred, I believe this can be achieved (possibly) with the help of a shell script which checks the existence of file1.txt in the /usr/sap/trans/mydata file system or directory and then trigger a background job and once the job finishes successfully move/rename/delete the file1.txt.
The other option I can think of is by using external or third party schedulers like IBM TWS, CA Autosys or SAP CPS Redwood. Not sure whether they have such capabilities but you can check here for CPS.
http://scn.sap.com/community/cps-by-redwood
Regards
RB