[Qt-interest] Error encountered while using void setStandardOutputProcess ( QProcess * destination )
Srdjan Todorovic
todorovic.s at googlemail.com
Wed Jul 22 10:17:48 CEST 2009
Hi,
On 22/07/2009, Thiago Macieira <thiago.macieira at trolltech.com> wrote:
>
> QString command1 = "dd if=/dev/mem";
> QString command2 = "netcat ";
>
> I doubt you have a command called "netcat ".
Actually a number of systems do have "netcat", if only as a symlink:
lrwxrwxrwx 1 root root 2 2007-05-21 10:04 /bin/netcat -> nc
But isn't the whole exercise a bit pointless? I think the system
memory will change a lot during the execution of the dd command, so
your destination memory image file will not be a 'snapshot' of the
memory at the time you started the dd process.
I would think you'd have to disable all writes to the memory before
running dd, but that would mean you cannot create a new struct
task_struct to represent the dd process.
Of course, if the point of all this is to get just any data from the
memory, not necessarily consistent, then it should be ok to run dd
like that.
And if I'm wrong, please correct me :)
Srdjan
More information about the Qt-interest-old
mailing list