Search Results

Search: Posts Made By: Zooma
1,830
Posted By Zooma
Thanks drysdalk. Had some errors when converting...
Thanks drysdalk. Had some errors when converting the obtained broadcast address. Just replaced step 1 and 2 with:
ping -i eth0 255.255.255.255 -b

Problem solved. ;)
1,830
Posted By Zooma
ARP and Bonjour to build list of user devices
Hi,
I want to build a list of the devices that are connected to my network and refresh that list every 10th minute (using an RPi with Raspbian). The host names are obtained by using Bonjour which is...
3,123
Posted By Zooma
@blastit.fr No mails received. No log output....
@blastit.fr
No mails received. No log output. But now it works. ;)
3,776
Posted By Zooma
Corona688's suggestion (#2) did the trick!...
Corona688's suggestion (#2) did the trick! Thanks!

---------- Post updated at 08:55 AM ---------- Previous update was at 08:46 AM ----------

I also tried Dons and RavinderSinghs solutions, and...
3,776
Posted By Zooma
Detect blank spaces in a CSV file
I'm monitoring a WLAN network to keep track of new SSIDs popping up. The SSIDs are stored along with the AP MAC address and a few other parameters in a CSV file. A typical line could look like this:...
3,123
Posted By Zooma
Hi Don, Seems you have a valid point. I removed...
Hi Don,
Seems you have a valid point. I removed the "&" and it still works fine. Thanks.

Cheers
//Z
3,123
Posted By Zooma
Problem solved
Thanks to your comments above, I managed to solve the problem. I made two changes:

1. In crontab, I added an '&':
0-59/5 * * * * /usr/myFolder/start.sh &

2. I added the working directory for...
3,123
Posted By Zooma
Thanks Rudi. I will try to fix it and post the...
Thanks Rudi. I will try to fix it and post the "solution" here once done. It doesn't have to be exact, it can be a bit late but not drift.

Cheers,
Z
3,123
Posted By Zooma
Alternatives to Crontab?
Thanks for all replies. I tried calling for a more simple file (echo "hello") and it works fine, so it seems that the problem is related to that I try to run scripts that are calling for other...
3,123
Posted By Zooma
Crontab does not start
Back to this one again. Tried to automate a script called getStats.sh that looks like this:

#!/bin/bash
./startMeasuring.sh
./collectStats.sh

I go to crontab -e and add this line:
0-59/5 * *...
3,123
Posted By Zooma
Ok, tested and that was EXACTLY what I wanted to...
Ok, tested and that was EXACTLY what I wanted to achieve. Thanks a lot Corona688! :D
3,123
Posted By Zooma
Thanks for suggestions. I need this to happen at...
Thanks for suggestions. I need this to happen at exactly 5 min intervals as I have other databases with values also from each 5 min and I want to be able to print data from different tables in the...
3,123
Posted By Zooma
Controlling time stamps in a bash script
Hi,
I have a bash script that generates CSV (.txt) files at fairly regular time intervals. I'm currently time stamping each batch of measurements at the time I write the rows into a MySQL database....
1,454
Posted By Zooma
Thanks a lot for all suggestions, very useful...
Thanks a lot for all suggestions, very useful information. I got the original file to work by changing the loop to:

for(i in colors)
printf("%-17s %10d %14d\n", colors[i],...
1,454
Posted By Zooma
awk script not producing output
Hi,
I have a text file with some thousands of rows of the following kind (this will be referred to as the inputFileWithColorsAndNumbers.txt):

Blue 6
Red 4
Blue 3
Yellow 4
Red 7...
3,021
Posted By Zooma
Thanks a lot RudiC. #5 was just what I was...
Thanks a lot RudiC. #5 was just what I was looking for. :-)
3,021
Posted By Zooma
Thanks RudiC! Just get a minor error (also added...
Thanks RudiC! Just get a minor error (also added one missing dash in your command):
$ awk 'FNR==NR{a[$1]=$2 FS $3 FS $4;next}{ print $0, a[$1]?a[$1]:"- - -"; delete a[$1]} END {for (i in a) print i,...
3,021
Posted By Zooma
Merge input from two files into one based on conditions
Using Linux (bash), I have two files which contain information about berries. Example:

file1.txt:
Blueberry blue 14
Raspberry red 12
Blackberry dark 4

file2.txt
Blackberry sour 4 3...
1,889
Posted By Zooma
Excellent. Thanks. Final question then: If I do...
Excellent. Thanks. Final question then: If I do all of this in a bash script and want to replace file1.txt with a command, for example:
date "+%y%m%d %T"

which right now gives the following...
1,889
Posted By Zooma
Thanks a lot MadeInGermany, that did the trick! ...
Thanks a lot MadeInGermany, that did the trick!

Don, for the record here are my two files and the desired output (which I get with #5):

file1.txt
ABC

file.txt
123 456 789
321 654 987
222...
1,889
Posted By Zooma
Thanks a lot. This works excellent when file.txt...
Thanks a lot. This works excellent when file.txt only has one column. Trying to add more columns there like this:

file.txt:
123 456 789
321 654 987
222 444 555


When I run your command...
1,889
Posted By Zooma
Adding single value from one file into column of second file
I have two files with the following content:

file1.txt looks like this (it always only have one single row):

ABC

file.txt looks like this (may have tons of rows):
123
456
789

I want to...
1,799
Posted By Zooma
Is it possible to upload files from a Linux station to a remote server via HTTPS?
Hi,
I have a small Linux device that measures some IP stats from one network and then generates some stats files (csv format) based on the input at certain times. I want those stats files to be...
3,300
Posted By Zooma
Thanks a lot Don. Works excellent (on a Raspberry...
Thanks a lot Don. Works excellent (on a Raspberry Pi). Also very good comments wich will be helpful in my future attempts to write similar scripts. All help very appreciated.

/Z
3,300
Posted By Zooma
Hi Don, Sounds fantastic, thanks! I removed the...
Hi Don,
Sounds fantastic, thanks! I removed the brackets and as you said it now runs and it's stuck in an infintie loop as you say. I added an additional counter to stop the loop and I get some sort...
Showing results 1 to 25 of 37

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