I've got a Python program that opens a jpeg file from a nfs mount, but that is mounted when required by using autofs.Except that it doesn't seem to be mounting that file when required.
I've even tried using this to see if that will work, but it still isn't mounting that file.If I use ls it works:I was using fstab to mount the nfs share, but I kept getting
Code:
#!/usr/bin/env python3from datetime import datetimewith open('/nfs/weather/webcam.jpg', 'rb') as f: photo = f.read()I've even tried using this to see if that will work, but it still isn't mounting that file.
Code:
import ospath = "/nfs/weather/"dir_list = os.listdir(path)print(dir_list)Code:
ls /nfs/weather/webcam webcam.jpgCode:
nfs: server 192.168.2.167 not responding, timed outStatistics: Posted by mfraz74 — Sun Feb 01, 2026 10:12 am — Replies 1 — Views 32