EntilzaSte
Technical User
Hi,
I need a unix script that will test if a file mount is active BEFORE it begins copying files... I know the basic layout of what I want so heres my psuedocode....
(nb I only use touch as I know what it does. If theres a better way......)
if (touch /MOUNTED_DRIVE/FILENAME = Success) then
cp file /MOUNTED_DRIVE/.
else
echo "It failed contact IT"
endif
Many thanks
I need a unix script that will test if a file mount is active BEFORE it begins copying files... I know the basic layout of what I want so heres my psuedocode....
(nb I only use touch as I know what it does. If theres a better way......)
if (touch /MOUNTED_DRIVE/FILENAME = Success) then
cp file /MOUNTED_DRIVE/.
else
echo "It failed contact IT"
endif
Many thanks