OpenSolaris Solaris Forum  
     

Left Nav FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum OpenSolaris Security

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2011, 08:00 PM
solix
Guest
 
Posts: n/a
Default high secure erase with dd

I need help with the redirection of the output from dd in a logfile.
Following you will see two scripts, but both scripts creates only empty files without the contents...
The scripts reads from /dev/urandom and writes then to the disks (seven times)


1. script with normal redirection:
------------------------------------------------------
#!/bin/bash
for i in {1..7}
do
dd if=/dev/urandom of=/dev/dsk/c0d0s0 bs=1048576 conv=notrunc >> run$i-dsk0.log &
dd if=/dev/urandom of=/dev/dsk/c0d1s0 bs=1048576 conv=notrunc >> run$i-dsk1.log &
wait
done
-------------------------------------------------------


2. script with tee:
-------------------------------------------------------
#!/bin/bash
for i in {1..7}
do
dd if=/dev/urandom of=/dev/dsk/c0d0s0 bs=1048576 conv=notrunc | tee run$i-dsk0.log &
dd if=/dev/urandom of=/dev/dsk/c0d1s0 bs=1048576 conv=notrunc | tee run$i-dsk1.log &
wait
done
--------------------------------------------------------

Have you any ideas?
Thank you!
Reply With Quote
Sponsored Links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure deletion Unregistered OpenSolaris Security 0 04-30-2011 04:28 PM
ow to secure a user's file from having root read access to it?? sujatha OpenSolaris Security 0 03-03-2011 08:06 AM


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin. Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.