Re: Simple cron.daily script problem

2005-12-20 Thread David Baron
Also tried mounting it as uid, uid. Complained. Mounted it as in fstab using mount /dev/hda1 -o ro N problem. I should be able to do it as I wanted to? On Monday 19 December 2005 20:09, Andrew Sackville-West wrote: > does it work running the script from a shell? that is, have you tested > it

Re: Simple cron.daily script problem

2005-12-19 Thread Bill Marcum
On Mon, Dec 19, 2005 at 06:48:51PM +0200, David Baron wrote: > I have something like > mount -t vfat /dev/hda1 /mnt/clamscan o ro > clamdscan .. /mnt/clamscan/a-directory > umount /mnt/clamscan > > The mount point is not the fstab mount point and the disk is not mounted to > its normal mount poin

Re: Simple cron.daily script problem

2005-12-19 Thread Andrew Sackville-West
does it work running the script from a shell? that is, have you tested it outside of cron? maybe mount -t vfat,users? or some umask? chmod your /mnt etc etc etc A David Baron wrote: I have something like mount -t vfat /dev/hda1 /mnt/clamscan o ro clamdscan .. /mnt/clamscan/a-directory umount

Simple cron.daily script problem

2005-12-19 Thread David Baron
I have something like mount -t vfat /dev/hda1 /mnt/clamscan o ro clamdscan .. /mnt/clamscan/a-directory umount /mnt/clamscan The mount point is not the fstab mount point and the disk is not mounted to its normal mount point when this script is run. The clamdscan cannot access the directory becau