vdrop@wade02 131.235.47.xxx DHCP username: vdrop passwd: 5drop Force date: sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" working dir: /home/vdrop/poss/posacq1 #################################################################################################### vdrop@wade02:~/bin$ cat ps_posacq1 #################################################################################################### #!/bin/sh ps -ef | grep posacq1 #################################################################################################### vdrop@wade02:~/bin$ cat start_posacq1_via_screen #################################################################################################### #!/bin/sh stty -F /dev/ttyUSB0 1200 #force S01 #stty -F /dev/ttyUSB0 1200 #force S02 killall -q -v posacq1 cd /home/poss/posacq1 screen -d -m ./posacq1 screen -ls > /home/vdrop/bin/current_screen_list.txt #################################################################################################### vdrop@wade02:~/bin$ cat stop_posacq1 #################################################################################################### #!/bin/sh killall -q -v posacq1 #################################################################################################### vdrop@wade02:~/bin$ cat /etc/rc.local #################################################################################################### touch /var/lock/subsys/local su vdrop -c /home/vdrop/bin/start_posacq1_via_screen exit 0