My OpenOffice word processor does not copy files I am working on to the floppy drive very well. To say the least! At first it took me 3 minutes to copy a small file, with the floppy drive labouring noisily all the while. I've got the process down to 19 seconds on a faster machine and with K formatted floppies with an ext2 filesystem.
I have already created a script that will ask for a filename and then copy the named file to the floppy drive.
I, of course, run this script on the Konsole shell, not inside my OpenOffice file.
Here it is:
#This bash script copies a file to the floppy drive.
echo "Enter the name of your file, and press ENTER: "
cp /home/johsmi/$FILENAME /media/floppy
echo "Your file $FILENAME has been successfully copied to the floppy drive."
I would like the option of being able to just press ENTER for the second, third and subsequent copying of the same file. (I'm writing a book and want to save complicated changes as I go.)
Because of peculiarities connected with exporting of variables to the environment, I haven't yet managed to export a variable then test at the beginning of the script to see whether the variable already contains a value or not.
I am a complete newbie, so simplicity is of the essence.
Any help will be appreciated.