comparison cd-burn.pl @ 11:e15c393dffa8

added pipelined encryption layer.
author Robert McIntyre <rlm@mit.edu>
date Mon, 25 Feb 2013 15:34:01 +0000
parents 07bb57b65da1
children 06a9a4618faf
comparison
equal deleted inserted replaced
10:07bb57b65da1 11:e15c393dffa8
18 18
19 # get size of stuff 19 # get size of stuff
20 $size = `mkisofs -print-size @mkisofs_args 2>/dev/null`; 20 $size = `mkisofs -print-size @mkisofs_args 2>/dev/null`;
21 chomp($size); 21 chomp($size);
22 22
23 @burn_command = ("cdrecord", "gracetime=3", 23 @burn_command = ("cdrecord", "gracetime=3", "-v",
24 "-overburn", "tsize=".$size."s", "-data", "-"); 24 "-overburn", "tsize=".$size."s", "-data", "-");
25 25
26 @aes_loop_command = ("aespipe", "-P", "/etc/cd-key", "-e", "aes256");
26 27
27 $final_command = "mkisofs @mkisofs_args | @burn_command"; 28
29 $final_command = "mkisofs @mkisofs_args | @aes_loop_command | @burn_command";
28 30
29 print "$final_command\n"; 31 print "$final_command\n";
30 system($final_command); 32 system($final_command);