Search Results

Search: Posts Made By: dihewidd
2,084
Posted By dihewidd
Thanks for the reply...
Perhaps I wasn't clear. The modem spits out lines periodically -- as in 10 or so lines every 30 minutes. I want each line to be turned into a separate curl command, so that the data contained in each...
2,084
Posted By dihewidd
How to send output to web server, line by line?
The following code works perfectly, but I am having trouble adapting it to output to my web server rather than a local file:

#!/bin/sh
# VARIABLES

adapter="/dev/tty.usbmodem0000001"

if [ -a...
4,286
Posted By dihewidd
Thanks!
That does work, and it's more elegant that my tail solution... BUT it doesn't continuously monitor the log. I would have to put it inside of a while loop and have it sleep. I like tail because it...
4,286
Posted By dihewidd
How to perform action on newest line in log using tail?
I don't quite know what I'm doing, so this simple script is proving a challenge.
Here is some pseudo code that doesn't work yet:

if tail -1 "WORKING.txt" >/dev/null | egrep "^NMBR=*" > /dev/null...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy