Search Results

Search: Posts Made By: CarloM
Forum: What is on Your Mind? 07-25-2018
4,348
Posted By CarloM
Having preview on every thread makes the forum...
Having preview on every thread makes the forum display pretty cluttered, imo.
2,183
Posted By CarloM
So, you could extract the allowed groups from...
So, you could extract the allowed groups from sshd.conf, and query LDAP to get the users in those groups.

On our systems this would be something like:
for group in $(awk '/AllowGroups/...
2,183
Posted By CarloM
Without knowing how access is controlled on the...
Without knowing how access is controlled on the hosts, there's no way to say what you need to search for...
842
Posted By CarloM
Is t1 always going to be after p1 & g1? If so,...
Is t1 always going to be after p1 & g1? If so, you could do something like:

$ awk '$1~/"g1"/ {g=$3} $1~/"p1"/ {p=$3} /"t1" : "Reading C \(bytes\)",/ {printf "%s %s %s\n", g, p, (p < g ? "OK" :...
14,910
Posted By CarloM
-S none /web/Transfer_Files/data/ -S doesn't...
-S none /web/Transfer_Files/data/
-S doesn't take an argument (at least on Ubuntu Linux), so I'd guess it's interpreting none as a source (relative to cwd, which is presumably /web/Transfer_files)
2,099
Posted By CarloM
df -Bg -xtmpfs -xdevtmpfs! Getting a tad...
df -Bg -xtmpfs -xdevtmpfs! Getting a tad unwieldy, but I guess you could alias it.
2,099
Posted By CarloM
df -Bg should work
df -Bg should work
2,156
Posted By CarloM
Shouldn't df -P (or df -hP) force one line per...
Shouldn't df -P (or df -hP) force one line per filesystem?
4,805
Posted By CarloM
Using ftp? Why do you want to do them 10 at...
Using ftp?

Why do you want to do them 10 at a time? Bandwidth issues, or something else?
1,156
Posted By CarloM
It looks ok, except LC_ALL=C date --utc...
It looks ok, except LC_ALL=C date --utc --iso-8601=seconds -d"$begindatum"+1minute returns something that will never match einddatum (at least, on my machine).

Run it with bash -x script.sh and...
1,004
Posted By CarloM
Counting the number of lines isn't much of a...
Counting the number of lines isn't much of a check that the files are really the same - use an actual checksum (e.g. cksum or md5sum).

Something like:

scp -i $HOME/.ssh/id_dsa...
14,956
Posted By CarloM
As Don said, there's no way to guess the year...
As Don said, there's no way to guess the year (unless you know the date is within a specific time window e.g. no more than 300 days in the past).

There are some date scripts in the FAQ and Tips...
3,630
Posted By CarloM
Mark threads "solved" by adding a "solved" tag to...
Mark threads "solved" by adding a "solved" tag to the thread tags (above); and always take a few seconds to properly tag all threads with appropriate technical terms and keywords.
3,630
Posted By CarloM
If you have GNU awk and assuming your input is...
If you have GNU awk and assuming your input is just a simple csv (i.e. no ',' characters within a field), try something like:

$ awk '{$3=$5=""}1' FS=, OFS=, file.csv
Col1,col2,,col4,,col100...
2,475
Posted By CarloM
I don't think awk supports indirect referencing...
I don't think awk supports indirect referencing for variables.

In this case it looks like you could just use an array anyway.
3,666
Posted By CarloM
You could try using file and checking if each...
You could try using file and checking if each file found appears to be a cert store of some kind, then using openssl to actually read it.
10,793
Posted By CarloM
Cron may be setting a default PATH. e.g....
Cron may be setting a default PATH.

e.g. from Linux 2.6 man pages (https://www.unix.com/man-page/all/5/crontab/)


(I've no idea if that's the case on Raspberry though. Or on reboot, for that...
1,146
Posted By CarloM
You've left in the esac for the case statement...
You've left in the esac for the case statement which you've deleted.
1,645
Posted By CarloM
-vCOMP='20150430'
-vCOMP='20150430'
Forum: AIX 05-26-2015
5,035
Posted By CarloM
You can use SetGID, but SetUID is ignored for...
You can use SetGID, but SetUID is ignored for directories on must Unix & Linux systems, as far as I know. (Except BSD, apparently. It definitely doesn't work on AIX.)

Can't you run the script as...
4,156
Posted By CarloM
Which is it? Do you want the attribute value, or...
Which is it? Do you want the attribute value, or the tag value where the nil attribute is true?
11,182
Posted By CarloM
Have you tried greping for NVV in $HOME/.* and...
Have you tried greping for NVV in $HOME/.* and /etc/*?
1,569
Posted By CarloM
What have you tried? awk 'FNR==8 || FNR==10 ||...
What have you tried?
awk 'FNR==8 || FNR==10 || (FNR>=13 && FNR<=250)' sample.txt
should work.
2,671
Posted By CarloM
The first place too look would be the man pages....
The first place too look would be the man pages. System calls are in section 2 - e.g. man 2 alarm (or look on this web site - https://www.unix.com/man-page/linux/2/alarm/).
1,283
Posted By CarloM
You could use the array indices in the for loop: ...
You could use the array indices in the for loop:
for i in ${!arrVERSION }
do
echo "${arrVERSION[$i]}"
done
Showing results 1 to 25 of 500

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