Therefore I do not want to see the output of dd on the screen.
Like:
Code: Select all
1+0 Records in
1+0 Records outand I found a recommended solution to redirect the output
like in this example I found at linuxquestions.org:
Code: Select all
dd if=/dev/urandom of=tesfile count=1 bs=1k > /dev/null 2>&1Trying that I get something like that:
Code: Select all
dd: unrecognized option `>'Thinking about that and how to ask the question, I suddenly realized a solution like that:
Code: Select all
Program = RunProgram("dd", "if=/dev/sda1 bs=" + Str(#BlockSize) + " count=1 skip=" + Str(N - 1) + " of=block_" + RSet(Str(N), 8, "0"), #WrkDir, #PB_Program_Open | #PB_Program_Wait | #PB_Program_Error | #PB_Program_Read)
If Not Program
PrintN("### dd Fehler bei block: " + Str(N))
End
Else
CloseProgram(Program)
EndIf
