Search Results

Search: Posts Made By: jim mcnamara
Forum: Shell Programming and Scripting 13 Hours Ago
262
Posted By jim mcnamara
I was not clear. You thought your locale was...
I was not clear. You thought your locale was messed up somehow, so I started at the beginning to debug it.
Looks okay. Next, tr has problems with equivlence classes

[aªáàâãäå]

This is the...
262
Posted By jim mcnamara
In UTF-8 é should evaluate to (U+117). There...
In UTF-8 é should evaluate to (U+117).
There should be a command called localedef.
There also should be a Spanish UTF-8 locale, you are calling it correctly.

Please post the output of this,...
Forum: Solaris 3 Days Ago
308
Posted By jim mcnamara
Are these remote devices GNSS? Why you need 3...
Are these remote devices GNSS? Why you need 3 evades me. Some specialized clocks will drop connections that act to hog resources.

And why do you need to ping those NTP servers so often? ...
337
Posted By jim mcnamara
This standard library call: nftw (or ftw) IBM...
This standard library call: nftw (or ftw)
IBM Knowledge Center (https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.bpxbd00/rnftw.htm)

supports the find command traversing...
325
Posted By jim mcnamara
You are using /directory1 as a record separator. ...
You are using /directory1 as a record separator. That means awk just reads the text including \n characters which display. And not ignoring them using the default EOL operation - chop off the...
349
Posted By jim mcnamara
In bash on some systems it is a shell function: ...
In bash on some systems it is a shell function:

realpath () ...
812
Posted By jim mcnamara
No. The file itself has problems. If you can...
No. The file itself has problems. If you can read it with Acrobat, try to save the file as a different filename. If Acrobat cannot save it there not much you can do.

Help:
99
Posted By jim mcnamara
The tomcat base install should set protections...
The tomcat base install should set protections correctly on directory trees and objects it owns.

Apache Tomcat(R) - Welcome! (https://tomcat.apache.org/)
You can download tomcat and...
Forum: Programming 4 Weeks Ago
1,209
Posted By jim mcnamara
The problem relates to memory management. The OS...
The problem relates to memory management. The OS sets an "end point" and a "start point" for a process working set (memory) when the process begins.

There are flavors of the malloc (also realloc)...
668
Posted By jim mcnamara
Your turn next: I got your awk code to run...
Your turn next:
I got your awk code to run against a dummy input file. I cannot see why your sample ran for you - however after fixing syntax I got an awk source file t.awk. t.lis is the file...
981
Posted By jim mcnamara
Plus, bash creates a subprocess (different from...
Plus, bash creates a subprocess (different from ksh) on the right side of a pipe, meaning any changes to variables in the statement on the right are not returned to the parent. This changed with...
368
Posted By jim mcnamara
what does ls -l sendmail.cf show? Has it...
what does ls -l sendmail.cf show? Has it changed recently? There should a default version of sendmail.mc you can compile and then substitute. If in doubt.

If it got changed you may want to...
1,618
Posted By jim mcnamara
Try using shell continuation "markers " the...
Try using shell continuation "markers " the backslash \ Also added { }

for f in $(find . -type f -name '*.mkv');
do
ffmpeg -n -y -i "${f}" -vf scale=720:-2 -c:v mpeg4 -vtag xvid -b:v 969k...
1,675
Posted By jim mcnamara
Here documents work for this situation, example...
Here documents work for this situation, example with ssh keys set up :


ssh somewhere << EOF
ls some_folder;
cd ./some_folder
./do_some_action.sh 'some params'
pwd
./do_...
2
133
Posted By jim mcnamara
Thanks for the solution.
Thanks for the solution.
516
Posted By jim mcnamara
What does this command show: find /usr/lib/...
What does this command show:

find /usr/lib/ -type f -name 'libXm*'

If you find no files, then you need to install Xwindows (and Motif because X is written using Motif )

Get back to us if...
1,976
Posted By jim mcnamara
Use bc if (( $(echo "$num1 > $num2" |bc -l)...
Use bc

if (( $(echo "$num1 > $num2" |bc -l) )); then
echo "ok"
fi


bc does floating point comparisons, in bash you have to surround it with (( )) to get a boolean (true/false) result.
2,665
Posted By jim mcnamara
ssh calls stty to do things like turn off/on...
ssh calls stty to do things like turn off/on echo. When the terminal stdin device is not what ssh expected you get the stty error. Try simply executing the ssh command making sure it can use the...
870
Posted By jim mcnamara
Try export run=$1 to make the variable visible...
Try export run=$1 to make the variable visible in child processes. I can't see a mistake in the syntax.
2,340
Posted By jim mcnamara
Paul Hsieh's square root page has a bunch of...
Paul Hsieh's square root page has a bunch of square root algorithms including using Newton's method:

Paul Hsieh's Square Root page (http://www.azillionmonkeys.com/qed/sqroot.html)

I used to...
793
Posted By jim mcnamara
The command connects to a remote server, does and...
The command connects to a remote server, does and ls -l of a directory, which list files in the directory on the remote machine. The command is between the tic characters '

The output of the...
Forum: What is on Your Mind? 10-05-2019
2,176
Posted By jim mcnamara
This is great. Welcome back and...
This is great.

Welcome back and congratulations.
166
Posted By jim mcnamara
So removing "g" would then only replace the first...
So removing "g" would then only replace the first occurrence.
944
Posted By jim mcnamara
TRy waiting: while [[ $i -le 3 ]] do ...
TRy waiting:

while [[ $i -le 3 ]]
do
while read in_module
do
print $in_module
size=`ssh ${server[$i]} ls -l $in_module 2>/dev/null | awk '{print $5}'`
wait
...
975
Posted By jim mcnamara
The content of the file list, i.e., filenames,...
The content of the file list, i.e., filenames, has no associated filesystem metadata for any of the files named in your text file. You would have use the stat command on each one of the filenames in...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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