content_type = P2
local_id = "msginvoic142"
primary = "c=DE;a=viaT;s=123;G=123;o=123".
from = "c=de;a=viat;s=MY;o=AND;cn=I".
subject = ""
bodypart = ia5text cdif_bdy.txt
bodypart = ia5text invoic142.edi
P7_recipient = "c=DE;a=viaT;s=123;G=123o=123" DN
priority = normal
importance = normalcdif-bdy.txt
!OMS-CDIF-INFORMATION:
!FILENAME: invoic142.edi
!COMMENT: Textdatei
!Information for the next bodypartsubmit : head.hdrimport os
import glob
import shutil
import subprocess
def connect(channeldict,*args,**kwargs):
''' function does nothing but it is required.'''
pass
........
def main(channeldict,filename,ta,*args,**kwargs):
subprocess.call(['/var/www/vhosts/test.de/subdomains/edi/httpdocs/edi/transmit_msg.php','-send',filename])
Why?
Help ;)
kind regards,subprocess.call(["php", "path/to/script.php", "param1", "param2"])
--