Search Results

Search: Posts Made By: jim mcnamara
Forum: Programming 3 Days Ago
191
Posted By apmcd47
realloc() is not guaranteed to reallocate in...
realloc() is not guaranteed to reallocate in situ, which is why you do
str = realloc(str, mem); rather than realloc(str, mem); The next_read variable should be reset with something like next_read =...
242
Posted By hicksd8
Yes, well, Lenovo has had all sorts of issues...
Yes, well, Lenovo has had all sorts of issues with Ubuntu concerning their BIOS and graphics chipset. On some Ubuntu distributions, the way the kernel was compiled was known to corrupt the BIOS on...
173
Posted By RudiC
man awk: The match searches $0 for your...
man awk:

The match searches $0 for your target string PCX..._1 (the ellipsis replaced by [^_]*, i.e. non-"_" characters), and, if found, sets RSTART and RLENGTH accordingly for immediate use by...
223
Posted By zxmaus
Some OSes - like AIX - by default do not have a...
Some OSes - like AIX - by default do not have a pkill command :) Someone might have installed it from somewhere but its not native so do not assume it exists on your host.

If you are logged in as...
223
Posted By zxmaus
never EVER run this command as root - as it will...
never EVER run this command as root - as it will inevitably cause your system to restart.
If run as normal user, it will in all likelyhood kill all processes running as this user at once -...
Forum: What is on Your Mind? 6 Days Ago
253
Posted By Neo
1000+ Computer Science Trivia Questions at UNIX.COM
The UNIX and Linux Forums now has over 1000 TRUE / FALSE computer science and computer related trivia question in our database. These questions are of relatively high quality (compared to similar...
Forum: What is on Your Mind? 1 Week Ago
292
Posted By wisecracker
The square root code I coded on this site...
Hi all, (mainly Neo)...

I keep noticing that the SQRT code I wrote recently for a POSIX shell keeps appearing, (the green colour sticks out like a sore thumb).
So I decided to take a look on...
94
Posted By vbe
Its also against our rules to have different...
Its also against our rules to have different identities to be able to post more than once the same thread
thread closed
294
Posted By RudiC
Close to impossible. If installed and on the...
Close to impossible. If installed and on the PATH, bash wouldn't say that.
Forum: Programming 1 Week Ago
781
Posted By MadeInGermany
The code that you provided stops at line 8 with...
The code that you provided stops at line 8 with exit 1:
...
printf("%s: %s\n", name, str1); //puts() always adds newline at the end of the string
//printf("%d\n", i);
...
Forum: Programming 1 Week Ago
781
Posted By yifangt
last field for sscanf() is incorrectly parsed
Change the RECORD increment i++; according to your correction fixed the problem!
Thank you so much!
---------------------------------------------------------------------------
Wait! There is...
Forum: Programming 1 Week Ago
781
Posted By MadeInGermany
For me it works: the red phrases land in the blue...
For me it works: the red phrases land in the blue variables.
But there can be trailing spaces in name because %[^:] matches up to the :
432
Posted By zxmaus
please try this: #vi /etc/ssh/sshd_config ...
please try this:
#vi /etc/ssh/sshd_config
Locate the following line:
Subsystem sftp /usr/sbin/sftp-server
Add the following parameters "-l INFO -f AUTH" at the end:
Subsystem sftp...
521
Posted By RudiC
That mountpoint variable is not empty but holds...
That mountpoint variable is not empty but holds "". Change the if test to
if [ "$mountpoint" != \"\" ]; and it will fly...


EDIT: BTW, running awk 6 times per line to extract some variables is...
376
Posted By Peasant
Perfectly normal. When you unplug the PS, a...
Perfectly normal.
When you unplug the PS, a fault is generated.

You can clear the fault, after you plugged it back in and it shows everything is ok.

Regards
Peasant.
Forum: Solaris 3 Weeks Ago
1,046
Posted By Peasant
Here : open("/etc/nsswitch.conf",...
Here :

open("/etc/nsswitch.conf", O_RDONLY|O_LARGEFILE) = 4
fcntl(4, F_DUPFD, 0x00000100) = 256
close(4) = 0
read(256, 0xFF352400, 1024)...
Forum: Solaris 3 Weeks Ago
1,046
Posted By MadeInGermany
Do not forget to undo your "skip-authentication"...
Do not forget to undo your "skip-authentication" in /etc/pam.conf
Forum: Solaris 3 Weeks Ago
987
Posted By MadeInGermany
The cron service itself is corrupted. It should...
The cron service itself is corrupted. It should not run that script.

--- Post updated at 13:52 ---

For further diagnosis please give output from
svcs -l cron
Are the other services okay?
Forum: Shell Programming and Scripting 4 Weeks Ago
1,458
Posted By RudiC
Your code snippet does not look like what you...
Your code snippet does not look like what you showed in post #1. Where do you get the error? Is it issued by ssh or by lshwres? Try changing -T to -t.


Split the problematic code into smaller...
489
Posted By Corona688
We get asked how to do date math in AIX so often...
We get asked how to do date math in AIX so often I made a perl script for it (https://www.unix.com/unix-for-beginners-questions-and-answers/239167-general-purpose-date-script.html). It's a...
755
Posted By RudiC
Shells don't expand variables within single...
Shells don't expand variables within single quotes.
Forum: What is on Your Mind? 4 Weeks Ago
1,018
Posted By Neo
Have changed to "DarkGreen" for the time being....
Have changed to "DarkGreen" for the time being. Magenta was giving me a headache LOL
Forum: What is on Your Mind? 4 Weeks Ago
1,018
Posted By Neo
OK Done. MAGENTA it is. Let me know if you see...
OK Done. MAGENTA it is. Let me know if you see any bugs.

Tag threads with "member_project" for MAGENTA .

Announcement here:
...
334
Posted By MadeInGermany
Your words are unclear, and your code sample is...
Your words are unclear, and your code sample is unclear.
Problably you mean
NPUTDIR=/path/with/files
exitcd=44
for i in $INPUTDIR/abc*.dat
do
if [ -f $i ]; then
echo...
1,339
Posted By MadeInGermany
The RE searches require some quoting effort. ...
The RE searches require some quoting effort.
The index() function searches for plain strings and returns the position.
Also only the comments left from the search string matter.
Two reasons to go...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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