using os.system to execute linux command
25 Jun
2003
25 Jun
'03
3:44 p.m.
I have an External method that uses os.system to execute a linux command on a local host. I am trying to pass a file name to the findDocs function (see below) to locate the location (path) of the wanted file and print it out on a dtml document. Can someone please show me how to make this work? Thanks in advanced for any suggestions. #Python script to find location/path of local file import os unixCommand = 'find /home/uploads/ -name %' def findDocs(arg): os.system(unixCommand%arg) DTML: <dtml-call "externalMethodName(arg=fileName)">
8321
Age (days ago)
8321
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mike Doanh Tran