Thread: Program a shell script to auto-terminate?
hello all.
have simple script requests voltage check using hardware , returns value in decimal.
problem want finish after cat not have manually ctrl+c, ideas?
jon.
`````````````````````````````````````````````````` ``````````````
sudo stty -f /dev/ttyusb0 19200 #sets serial port speed
sudo cat /home/jon/readvolt.txt > /dev/ttyusb0 #sends binary code device
cat /dev/ttyusb0 #returns battery data instantly
`````````````````````````````````````````````````` `````````````
just put:
at end have wait 10 seconds end.code:sleep 10 exit
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Program a shell script to auto-terminate?
Ubuntu
Comments
Post a Comment