Hi everyone
I have had some troubles with windows machines not being able to see how much space is left on the samba shares.
I have made this little script, which makes a text file containing the space free on the drives.
#!/bin/sh
while true; do
df -H > "/mnt/hdd/freespace.txt";
sleep 10s;
done
I login via ssh and start the script: ./diskfree &
The script works fine, but when i log out from ssh, the terminal just hangs. And after a while the diskfree program also stops (checked via another ssh connection).
Is there some other way I should run this script on the server?