Search Results

Search: Posts Made By: Neo
Forum: UNIX for Advanced & Expert Users 13 Hours Ago
133
Posted By Chubler_XL
This seem to be working OK for me: # cat...
This seem to be working OK for me:

# cat /etc/fedora-release
Fedora release 31 (Thirty One)
# mkdir nowrite
# chattr +i nowrite
# cd nowrite
# echo > test
bash: test: Operation not...
Forum: Hardware 1 Day Ago
131
Posted By DevuanFan
Neo, here you go: # echo serio1...
Neo, here you go:
# echo serio1 >/sys/bus/serio/drivers/psmouse/unbind
# echo serio2 >/sys/bus/serio/drivers/psmouse/bind
bash: echo: write error: No such device

By the way, I found a hardware...
181
Posted By foad
You may want to first disentangle this kludge of...
You may want to first disentangle this kludge of a script before you start to add functionality. I don't know your monitor but i am quite sure the echo-lines are not fitting onto it.On my terminal it...
Forum: Hardware 1 Day Ago
131
Posted By DevuanFan
That's an excellent idea. It would be a nice...
That's an excellent idea. It would be a nice solution if I could get it to work.

# echo serio1 >/sys/bus/serio/drivers/psmouse/unbind
# echo serio1 >/sys/bus/serio/drivers/psmouse/bind

The...
Forum: Hardware 1 Day Ago
131
Posted By DevuanFan
How to *completely* disable laptop touchpad, without disabling trackpoint?
I run Devuan ASCII on my T400 laptop. I only use the trackpoint ("nipple mouse"). To me, the touchpad is just a nuisance.

I've discovered (by monitoring output of sudo cat /dev/input/event5) that...
265
Posted By MadeInGermany
ls | sed -n 's/^status_\(.*\)[.]log$/\1/p'
ls | sed -n 's/^status_\(.*\)[.]log$/\1/p'
204
Posted By wisecracker
Apologies for any typos... There is no better...
Apologies for any typos...
There is no better use than a working example...
Longhand using OSX 10.14.6, default bash terminal:
Last login: Mon Nov 18 09:29:24 on ttys000
AMIGA:amiga~> # My maths...
204
Posted By wisecracker
Hi Neo... No. Direct absolute paths do not...
Hi Neo...
No.
Direct absolute paths do not work from import, however there is a similar effect using execfile(...) as the OP is using Python 2.6.x...
(... exec(open(...).read()) for 3.x.x to...
Forum: Web Development 1 Week Ago
261
Posted By simpsa27
Yes all works good & I understand! Thanks for...
Yes all works good & I understand! Thanks for your help guys!
Forum: Programming 1 Week Ago
448
Posted By DevuanFan
Andrew, thank you so much for your beautiful...
Andrew, thank you so much for your beautiful explanation. I understand the issue and can confirm that this works exactly as expected:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
...
415
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...
Forum: Programming 1 Week Ago
448
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 =...
Forum: Web Development 1 Week Ago
300
Posted By Scrutinizer
This is huge, congrats, great effort guys...
This is huge, congrats, great effort guys...
Forum: Web Development 1 Week Ago
300
Posted By Akshay Hegde
I am happy to be part of forums and your...
I am happy to be part of forums and your leadership team, finally it’s solved, once bots reindex sitemap everything should be fine.
452
Posted By Eric7giants
Converting awk to perl
Hello. I'm currently teaching myself Perl and was trying to turn an awk code that I had written into Perl. I have gotten stuck on a particular part and a2p has not helped me at all. The task was to...
503
Posted By hicksd8
I'll start by saying that I'm not an AIX user or...
I'll start by saying that I'm not an AIX user or familiar with mksysb but I found this (old) page which has people discussing some of the exact same error lines that you are getting:

restore...
503
Posted By Necronomic
For creating mksysb backup I use this command: ...
For creating mksysb backup I use this command:

root@asrv11lpar3:/ # nim -o define -t mksysb -a mk_image=yes -a mksysb_flags=-i -a source=asrv11lpar11 -a location=/nim/mksysb/mksysb--asrv11lpar11...
607
Posted By Marti95
I attachet my script.
I attachet my script.
Forum: Linux 1 Week Ago
214
Posted By vbe
Greetings, and welcome! This is not a forum...
Greetings, and welcome!

This is not a forum for Hackers so if that is your purpose, it is pointless to post here, you will be banned very shortly...

You mention you are in the process of...
420
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...
Forum: Programming 1 Week Ago
971
Posted By MadeInGermany
BTW in many cases a trim function comes in handy....
BTW in many cases a trim function comes in handy.
For example, the fuzzy strstr() that can match a portion of the string can be replaced with an exact strcmp()
...
//...
532
Posted By RudiC
Would this come close? grep -offile1 file2 |...
Would this come close?

grep -offile1 file2 | sort | uniq -c
2 god
1 pod
2 rod

--- Post updated at 16:24 ---

Hoppla - didn't take your thread title into account. Try this...
489
Posted By RudiC
Not sure I understand your request. Does this...
Not sure I understand your request. Does this work for your scenario 1 2?
echo "${STRING//,/$'\n'}" | awk -F: 'FNR==NR {T[$1,$2] = $0; next} ($1,$2) in T {$0 = T[$1,$2]} 1' - file
Forum: What is on Your Mind? 2 Weeks Ago
472
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...
Forum: Programming 2 Weeks Ago
3,496
Posted By stomp
Hi, short notice from my side: For a...
Hi,

short notice from my side:

For a current project I decided to use Perl. The platforms are Linux / Red Hat 5/6/7/+future Versions. The reason I chose it, where:

Available on all target...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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