Search Results

Search: Posts Made By: CarloM
Forum: What is on Your Mind? 07-25-2018
1,103
Posted By CarloM
Having preview on every thread makes the forum...
Having preview on every thread makes the forum display pretty cluttered, imo.
916
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/...
916
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...
375
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" :...
4,561
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)
1,080
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.
1,080
Posted By CarloM
df -Bg should work
df -Bg should work
544
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?
848
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?
520
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...
545
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...
5,053
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...
1,230
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.
1,230
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...
1,582
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.
1,689
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.
7,454
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...
771
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,121
Posted By CarloM
-vCOMP='20150430'
-vCOMP='20150430'
Forum: AIX 05-26-2015
2,519
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...
1,876
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?
2,027
Posted By CarloM
Have you tried greping for NVV in $HOME/.* and...
Have you tried greping for NVV in $HOME/.* and /etc/*?
1,007
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,212
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/).
757
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 04:12 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy