Hello, im trying to make Twisted run on an embedded system which doesnt support fork() and exec(). Lets say i have a function os.writeLine(), which just makes a prinft("foo") on the stdout. I implemented writeLine() in the posixmodule.c of the python so os.writeLine() would make the work.
Now i would like to create a Process (from buildbot ShellCommand) which just calls writeLine() and gets the stdout of it (foo). No fork, no exec .. std are standards: 0,1 and 2. since i tried to understand the class Process(_BaseProcess) in (twisted/internet/process) and i couldnt resolve my problem alone, i would like to get some help so could someone please point me to the right direction ..
best regards ..
What's your ultimate goal here? It doesn't sound like Process is a good tool to use on a system that doesn't support processes.
Dustin
On Wed, Feb 5, 2014 at 10:59 AM, Toph Bei Fong toph_ut@yahoo.de wrote:
Hello, im trying to make Twisted run on an embedded system which doesnt support fork() and exec(). Lets say i have a function os.writeLine(), which just makes a prinft("foo") on the stdout. I implemented writeLine() in the posixmodule.c of the python so os.writeLine() would make the work.
Now i would like to create a Process (from buildbot ShellCommand) which just calls writeLine() and gets the stdout of it (foo). No fork, no exec .. std are standards: 0,1 and 2. since i tried to understand the class Process(_BaseProcess) in (twisted/internet/process) and i couldnt resolve my problem alone, i would like to get some help so could someone please point me to the right direction ..
best regards ..
Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Hello, My ultimate goal is to get the output from stdout and print it out on the log of buildbot. It is a process. I just wanted to make it easy here so you can understand what i need. Its on a VxWorks, which doenst support fork() nor exec(). It has just a function taskSpawn() which spawn a Task. This task prints out few lines on the stdout.
I want to make buildbot run on VxWorks. FileUpload and FileDownload works fine. ShellCommand doenst.
I hope you understand now my ultimate goal and thank you for your time.
Best regards.
Dustin J. Mitchell dustin@v.igoro.us schrieb am 17:13 Mittwoch, 5.Februar 2014:
What's your ultimate goal here? It doesn't sound like Process is a good tool to use on a system that doesn't support processes.
Dustin
On Wed, Feb 5, 2014 at 10:59 AM, Toph Bei Fong toph_ut@yahoo.de wrote:
Hello, im trying to make Twisted run on an embedded system which doesnt support fork() and exec(). Lets say i have a function os.writeLine(), which just makes a prinft("foo") on the stdout. I implemented writeLine() in the posixmodule.c of the python so os.writeLine() would make the work.
Now i would like to create a Process (from buildbot ShellCommand) which just calls writeLine() and gets the stdout of it (foo). No fork, no exec .. std are standards: 0,1 and 2. since i tried to understand the class Process(_BaseProcess) in (twisted/internet/process) and i couldnt resolve my problem alone, i would like to get some help so could someone please point me to the right direction ..
best regards ..
Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Or is there maybe any other socket-implementation for that part like _Win32Waker as a replacement for _UnixWaker. My implementation would be a bit Windows-Like (_dumpwin32proc) .. I have pipe(), taskSpawn() [like CreateProcess()] and i want to get the output from there and parse it to my buildbot Process (ShellCommand).
I dont know how clear my goal is ..
VxWorks 6.9 (POSIX 1003.1c, PSE52 Profile)
Best regards.
Toph Bei Fong toph_ut@yahoo.de schrieb am 8:12 Donnerstag, 6.Februar 2014:
Hello, My ultimate goal is to get the output from stdout and print it out on the log of buildbot. It is a process. I just wanted to make it easy here so you can understand what i need. Its on a VxWorks, which doenst support fork() nor exec(). It has just a function taskSpawn() which spawn a Task. This task prints out few lines on the stdout.
I want to make buildbot run on VxWorks. FileUpload and FileDownload works fine. ShellCommand doenst.
I hope you understand now my ultimate goal and thank you for your time.
Best regards.
Dustin J. Mitchell dustin@v.igoro.us schrieb am 17:13 Mittwoch, 5.Februar 2014:
What's your ultimate goal here? It doesn't sound like Process is a good tool to use on a system that doesn't support processes.
Dustin
On Wed, Feb 5, 2014 at 10:59 AM, Toph Bei Fong toph_ut@yahoo.de wrote:
Hello, im trying to make Twisted run on an
embedded system which doesnt support
fork() and exec(). Lets say i have a function os.writeLine(), which just makes a prinft("foo") on the stdout. I implemented writeLine() in the posixmodule.c of the python so os.writeLine() would make the work.
Now i would like to create a Process (from buildbot ShellCommand) which just calls writeLine() and gets the stdout of it (foo). No fork, no exec .. std are standards: 0,1 and 2. since i tried to understand the class Process(_BaseProcess) in (twisted/internet/process) and i couldnt resolve my problem alone, i would like to get some help so could someone please point me to the right direction ..
best regards ..
Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python