Re: [Tutor] Substitution function needed

2016-01-17 Thread Steven D'Aprano
On Fri, Jan 15, 2016 at 05:07:58PM +, Chad Perry wrote: > I need to know how to substitute for the drive letter for the following > drives. > > sad-sdp > also will need to wipe data from /dev/md1 > > I believe that the script is sound just sub's I don't understand your question. Substitute

Re: [Tutor] Substitution function needed

2016-01-15 Thread Alan Gauld
On 15/01/16 17:07, Chad Perry wrote: > #The function for writing random data to the disk. > def random(): >os.system("/sbin/fdisk -l") >device=raw_input("Enter device: ") >count=input("How many times would you like to wipe the device? ") >raw_input("Press Enter to continue, or Ctrl

[Tutor] Substitution function needed

2016-01-15 Thread Chad Perry
#The function for writing random data to the disk. def random(): print "" os.system("/sbin/fdisk -l") print "" print "Please choose a device to kill. Remember if you want to" print "wipe the whole drive and not just a partition, you can" print "remove the number appended. Exampl