Search Results

Search: Posts Made By: Perderabo
13,981
Posted By Perderabo
The Thompson goto command was bizarre because it...
The Thompson goto command was bizarre because it was not a shell built-in. It was actually an external command. Decisions like this were made to get the thing to run in a 16 bit machine.

First...
Forum: Solaris 09-10-2014
3,040
Posted By Perderabo
I would turn MATRICE into an array with one...
I would turn MATRICE into an array with one character per array element. Then you just pick a random index into the array. This will work with all versions of ksh and it will be very fast.
Forum: Solaris 09-03-2014
6,459
Posted By Perderabo
Things are changing all the time. If you run...
Things are changing all the time. If you run prstat then you run ps you get two differtent snapshots of memory. Even if you run them more or less simultaneously they will not examine the processes...
5,744
Posted By Perderabo
The "let" command originated in ksh. Dave Korn...
The "let" command originated in ksh. Dave Korn considered it to be a mistake and very quickly developed the double parentheses notation to replace it. By the mid 1980's the advice was to not use...
16,684
Posted By Perderabo
Actually, I think that the OP wants to alter...
Actually, I think that the OP wants to alter /etc/fstab via a shell script to make this change permanent. I had to make a similar change because our security auditors requested it. In my case i had...
8,741
Posted By Perderabo
The formula to compute the distance between a...
The formula to compute the distance between a pair of latitude-longitude coordinates is actually rather complex. A simplified version is on this page...
Forum: Linux 08-20-2014
5,503
Posted By Perderabo
Try this: in modprobe.d create a new file called...
Try this: in modprobe.d create a new file called 8021q. In it, put the lines:
install 8021q /bin/true
install garp /bin/true


This tells the kernel to use non-standard versions of 8021q and...
Forum: Linux 08-19-2014
6,195
Posted By Perderabo
Suppose it did that. There are still errors you...
Suppose it did that. There are still errors you can make that render sudo usuable like "chmod 0 /usr/bin/sudo". As a sysadmin you need to be ready for that and be able to operate when sudo fails....
4,622
Posted By Perderabo
Well, see this thread...
Well, see this thread (https://www.unix.com/tips-and-tutorials/36711-whole-story-usr-bin-ksh.html) especially "Part 2 The Format of the #! Line"
Forum: Linux 08-19-2014
6,195
Posted By Perderabo
The fear is that the misconfiguration may has...
The fear is that the misconfiguration may has have inadvertently given someone elevated privileges that they should not have. Suppose that happened, and some user, say joeblow, got root authority...
Forum: Cybersecurity 08-18-2014
4,530
Posted By Perderabo
You are going about this all wrong. Give...
You are going about this all wrong. Give everyone his own account. On each system, create an admin group. Give the admin group root power via sudo by adding a line to sudoers like this:
...
8,342
Posted By Perderabo
Depends on the shell.. ;) $ $ cat...
Depends on the shell.. ;)
$
$ cat kshlooptest
#! /bin/ksh
LAST="nothing"
find /etc -name 'w*' 2> /dev/null | while IFS="" read name ; do
LAST=$name
done
echo outside of while loop...
3,578
Posted By Perderabo
I'm not sure what thes files look like. But if...
I'm not sure what thes files look like. But if they are sorted on the id field it sounds like this is just what the "join" command does. Here is a sample run:
$
$
$ cat file1
8 user 092...
Forum: SuSE 08-13-2014
14,958
Posted By Perderabo
Then maybe you have a shell that behaves like...
Then maybe you have a shell that behaves like ksh. Here is a test...

$ exec ksh
$ echo ~testgut
/home/testgut
$ getent passwd testgut
testgut:x:13128:13128::/home/testgut:/bin/bash
$ sudo...
3,894
Posted By Perderabo
Nobody remembers my datecalc script. :( ...
Nobody remembers my datecalc script. :(

Well, datecalc provides the primatives needed to handle any date calculation. To find the first Sunday...

#! /bin/ksh
alias datecalc=./datecalc...
Forum: SuSE 08-11-2014
14,958
Posted By Perderabo
I just restart nscd if I can't wait. BTW recent...
I just restart nscd if I can't wait. BTW recent redhat uses sssd instead.
Forum: Solaris 08-11-2014
7,952
Posted By Perderabo
My guess is that the windows system is running...
My guess is that the windows system is running ftp rather than sftp. I would try connecting to the windows system with an ftp client to test this theory.
4,622
Posted By Perderabo
See this thread...
See this thread (https://www.unix.com/unix-for-advanced-and-expert-users/243903-dot-sourcing-differences-ksh-aix-vs-linux-vs-solaris.html)
4,328
Posted By Perderabo
I do this all the time. I cut this data from...
I do this all the time. I cut this data from your post:BATCHID STARTDATE FINDATE
----------- -------------------------- --------------------------
2000001 2014-08-06-02.37.35.786000 -
2000002...
2,072
Posted By Perderabo
I don't have experience with an IPTABLES...
I don't have experience with an IPTABLES configuration that is complex enough to test this. However I can read. It says here "ACCEPT target This built-in target discontinues processing of the...
12,313
Posted By Perderabo
I would not cat the new certificate onto the end...
I would not cat the new certificate onto the end of the old certificate. I would rename the old certificate to a save file. Then I would just move the new certificate in place.
Forum: Cybersecurity 08-05-2014
4,007
Posted By Perderabo
In the first case, Verisign has given a...
In the first case, Verisign has given a certificate to SomeSmallerCA. If you trust Verisign, you can be sure that you are talking to SomeSmallerCA. This does not mean that Verisign assures you that...
8,334
Posted By Perderabo
I am not really familiar with modern fortran. ...
I am not really familiar with modern fortran. But is not g++ a compiler for the C++ language? Maybe you should try a fortran compiler? To test my guess I wrote a little "hello world" program in...
4,970
Posted By Perderabo
IMHO, the best book ever written on the subject...
IMHO, the best book ever written on the subject is: C Programmer's Guide to Serial Communications (http://www.amazon.com/C-Programmers-Guide-Serial-Communications/dp/0672302861/)
4,622
Posted By Perderabo
ksh does indeed have a special way to deal with...
ksh does indeed have a special way to deal with child scripts that have no #! leading line. This introduces a number of special features that expands the traditional unix environment. These...
Showing results 1 to 25 of 500

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