I want to write a logfile to the USB HDD plugged in to my MyBook World Edition II, so I wrote the following test code and then applied chmod 777 to the file to be sure it could execute:
#!/bin/sh # Specify which file is to be written-to WRITE_HERE=/USB Disk 1-1/usb1-1share1/Logfile.log # Now write to the file echo "blah blah" >>$WRITE_HERE
This didn't work, so I modified the code as below to write directly to a folder on the MyBook:
#!/bin/sh # Specify which file is to be written-to WRITE_HERE=/DataVolume/Public/Logfiles/Logfile.log # Now write to the file echo "blah blah" >>$WRITE_HERE
This works perfectly.
What do I have to understand before I can get the USB version to work please?