shell script

C code posted by derobo
created at 23 Mar 16:00, updated at 05 Feb 12:03

Edit | Back
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
basedir="/mnt/usb-storage/UNTITLED_SanDisk-Cruzer-0"
thttpd=$basedir/bin/thttpd
while true; do
    $thttpd -D -C "/mnt/usb-storage/UNTITLED_SanDisk-Cruzer-0/config/thttpd.conf" -i "/var/run/thttpd_alt.pid" > /dev/null
    sleep 1
    rm -f "/var/run/thttpd_alt.pid"
done

ls
293 Bytes in 3 ms with coderay