Skip to main content

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:
code:
sleep 10  exit
at end have wait 10 seconds end.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Program a shell script to auto-terminate?


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account