in reply to Adding DD Unix command in Perl

wrong idea, this does nothing usefull

if=/dev/ram0 of=/dev/null

Don't mess with dd unless you know what are you doing, this is a potentially very dangerous command in the wrong hands. You'll need to run your perl script as root in any case, a double bad idea.

if you want to overwrite the ram with null values, you need to do THIS instead

if=/dev/null of=/dev/ram0

Don't claim to me if you finish deleting your entire filesystem and personal files with dd by mistake.

Replies are listed 'Best First'.
Re^2: Adding DD Unix command in Perl
by asha_mail (Novice) on Dec 09, 2011 at 13:09 UTC

    How to pass perl variable to unix command?

      The question really is... What are you trying to do?
      Why are you asking how to do something you've already done? You can pass arguments to a unix utility by building a shell command like you already did.