Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: jim mcnamara
Forum: Shell Programming and Scripting Linux 3 Days Ago
Replies: 16
Views: 333
Posted By jim mcnamara
local -r gopath=${2:-${GOPATH%:*}} See the...

local -r gopath=${2:-${GOPATH%:*}}

See the red } -- That may be your problem - see line #2
Forum: Solaris Linux 5 Days Ago
Replies: 7
Views: 150
Posted By jim mcnamara
NOTIFY_SOCKET= \ Lose the space ...

NOTIFY_SOCKET= \

Lose the space
NOTIFY_SOCKET=\
Forum: Programming Linux 6 Days Ago
Replies: 11
Views: 180
Posted By jim mcnamara
should be with the echo statement before su: if...

should be with the echo statement before su:
if [ id -u root -ne 0 ]; then

echo "type in the root password"
su # or sudo
fi
Forum: Linux Linux 1 Week Ago
Replies: 5
Views: 162
Posted By jim mcnamara
Try something like this to start with. If you...

Try something like this to start with. If you find problems, show us what you did to fix them. First. Before saying 'this does not work':

find /abc -type d |
while read dir
do
ls -1...
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 5
Views: 214
Posted By jim mcnamara
What shell does the VPS use? bash? Assuming...

What shell does the VPS use? bash?
Assuming several things you did not mention, I am guessing the VPS disk is not mounted on your PC as some disk named like D:

You can probably use ftp to...
Forum: UNIX for Beginners Questions & Answers Linux 1 Week Ago
Replies: 10
Views: 242
Posted By jim mcnamara
try this: tr -s ',' ' ' < filename | ...

try this:


tr -s ',' ' ' < filename |
awk '{ for (i=1;i<=NF;i++)
{ if($(i)==":"){printf("%s ",$(i+1) ) }
}
printf("\n")
}'
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 1
Views: 260
Posted By jim mcnamara
Do you know how to use the tkprof oracle...

Do you know how to use the tkprof oracle profiler? It produces a file that is a compilation (summary) of what you just asked for. So if your object has several different sql operations, tkprof will...
Forum: Solaris Linux 1 Week Ago
Replies: 7
Views: 299
Posted By jim mcnamara
You are making it complicated. And I do not think...

You are making it complicated. And I do not think you fully understand it. Neither do I.

Go to oracle. Call your sales rep if nothing else. Get help. Period. Anything else will cost you a...
Forum: Solaris Linux 1 Week Ago
Replies: 7
Views: 299
Posted By jim mcnamara
It's been several years since I encountered this,...

It's been several years since I encountered this, but it is based on number of cores and core type, on the base hardware, plus user count. So you do not get into serious licensing problems, there...
Forum: UNIX for Advanced & Expert Users Linux 2 Weeks Ago
Replies: 6
Views: 278
Posted By jim mcnamara
I am guessing developers are recompiling some of...

I am guessing developers are recompiling some of their environment. You cannot hope to fix this.

If there actually is a completely defined standard environment:
1. use a shebang on all of your...
Forum: UNIX for Beginners Questions & Answers Linux 2 Weeks Ago
Replies: 2
Views: 165
Posted By jim mcnamara
Several points I'm going to assume...

Several points

I'm going to assume linux/bash, but you should tell us your OS and shell.
This command gives you the file name:

cd /path/to/files/I/want
stat -c "%n %s" $( find . -type f...
Forum: UNIX for Beginners Questions & Answers Linux 2 Weeks Ago
Replies: 10
Views: 451
Posted By jim mcnamara
BTW - -exec rm {} + the + tells find it can run...

BTW - -exec rm {} + the + tells find it can run the rm command with more than one single filename as a parameter. This provides a performance boost when you expect to delete hundreds of files,...
Forum: Programming Linux 2 Weeks Ago
Replies: 2
Views: 264
Posted By jim mcnamara
Let me understand. You want to add your...

Let me understand.

You want to add your shared library module to an existing lapack library (or archive?). Aside from the fact that this is a really bad idea, short answer is: this cannot be...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 6
Views: 357
Posted By jim mcnamara
Consider moving your loop above the sqlplus, and...

Consider moving your loop above the sqlplus, and simply writing the script out fully FIRST, then connect once and execute the script. The unneeded overhead of what you are doing currently is...
Forum: UNIX for Advanced & Expert Users Linux 2 Weeks Ago
Replies: 4
Views: 288
Posted By jim mcnamara
Do you understand virtual memory versus physical...

Do you understand virtual memory versus physical memory? When a process asks for memory, especially huge chunks of it, one common strategy is to allocate a small part of it and then mark virtual...
Forum: Shell Programming and Scripting Linux 2 Weeks Ago
Replies: 9
Views: 440
Posted By jim mcnamara
Note the awk path in the above example is only...

Note the awk path in the above example is only valid for Solaris. Not Linux.

/usr/bin/awk should be okay for Linux. Note: this likely is a symlink to /usr/bin/gawk which is the GNU version of...
Forum: UNIX for Beginners Questions & Answers Linux 3 Weeks Ago
Replies: 7
Views: 260
Posted By jim mcnamara
Looks to me like you mean 'sort by vertical...

Looks to me like you mean 'sort by vertical column' You move each column based on the content of the firs row - columns 5 - 9 (V2, V4,. ....)

Correct?
Forum: Solaris Linux 3 Weeks Ago
Replies: 2
Views: 274
Posted By jim mcnamara
Is illumos not under consideration?

Is illumos not under consideration?
Forum: Shell Programming and Scripting Linux 3 Weeks Ago
Replies: 5
Views: 426
Posted By jim mcnamara
A simple question: is there a timestamp on each...

A simple question: is there a timestamp on each line of the logfile or in the lines of interest. That would eliminate the issues scrutinizer mentioned I think.
e.g., 10/28/2017 14:52:13
Forum: AIX Linux 3 Weeks Ago
Replies: 1
Views: 380
Posted By jim mcnamara
You can break some existing production...

You can break some existing production applications if you have to change a lot of libraries.

It may work, but you really have to test every production app on your upgraded non-prod box. In an...
Forum: UNIX for Beginners Questions & Answers Linux 4 Weeks Ago
Replies: 3
Views: 298
Posted By jim mcnamara
I do not think it stops functioning and I did not...

I do not think it stops functioning and I did not know that, so my advice was not correct.
I apologize for the incorrect information.

Here is the oracle statement on java eol dates. AFAIK they...
Forum: UNIX for Beginners Questions & Answers Linux 4 Weeks Ago
Replies: 3
Views: 298
Posted By jim mcnamara
There is no expiry date in a a java module. Here...

There is no expiry date in a a java module. Here is why -

java gets updated periodically. However, when there is a bad flaw found that nobody knew about, java will updated at that point in time...
Forum: Shell Programming and Scripting Linux 4 Weeks Ago
Replies: 9
Views: 441
Posted By jim mcnamara
grep -F finds literal strings - it turns off...

grep -F finds literal strings - it turns off regular expressions (the problem you have with the dot character).
Forum: Programming Linux 4 Weeks Ago
Replies: 4
Views: 1,991
Posted By jim mcnamara
Okay. It looks like zabbix is trying to create a...

Okay. It looks like zabbix is trying to create a 64 bit executable image, but some libraries are 32 bit.

When you compile you have to use all components from the same 'memory model', i.e., 64 or...
Forum: UNIX for Beginners Questions & Answers Linux 4 Weeks Ago
Replies: 2
Views: 212
Posted By jim mcnamara
First off never use a command name or special...

First off never use a command name or special character like "ls", "rm", "sftp", "*" (UNIX commands, shell metacharacters) as the name of file. You will not believe the awful problems this can...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 05:05 AM.