For questions that are specific to the GNU/Linux operating system. If your question has nothing to do with Linux APIs or Linux-specific behaviour then do not use this tag, even if you are running on Linux.
0
votes
0answers
2 views
Linux: `jobs` command doesn't show background processes which were started from another terminal
When I was in the office, I started a script run.sh in background 4 times.
run.sh parameter1 &
run.sh parameter2 &
run.sh parameter3 &
run.sh parameter4 &
Then I came home, and ...
0
votes
0answers
12 views
Shell injection - is this secure?
I am solving an issue I have with bad performing flash in Firefox under Linux.
I would like to know if the following code is secure. The input is untrusted and I get the feeling that if not ...
0
votes
0answers
6 views
Bash regex: replace string with any number of characters
I'm trying to remove colouring codes from a string; e.g. from: \033[36;1mDISK\033[0m to: DISK
my regex looks like this: \033.*?m so match '\033' followed by any number of chars, terminated by 'm'
...
1
vote
1answer
14 views
how to extract text which matches particular fields in text file using linux commands
Hi below is my text file
{"Author":"john"
"subject":"java"
"title":"java cook book.pdf"}
{"title":"Php book.pdf"
"Author":"Smith"
"subject":"PHP"}
{"Author":"Smith"
"title":"Java book.pdf"}
...
3
votes
3answers
27 views
bash don't delete subfolders with specific files in recursive rm -rf /folder/*
I wonder if it is possible to specify some elegant condition (parameter maybe?) in rm -rf /folder/* not to delete its subfolders, which contain files with name "dontshoot.txt".
I wasn't able to ...
0
votes
0answers
5 views
How can I ensure Apache HTTPD server works with OpenLDap installed on my computer?
I have the following modules installed on my computer:
openldap-2.2.13-12.el4_8.2
nss_ldap-253-7.el4
According to the documentation Apache can work with more than one LDAP module:
...
0
votes
0answers
8 views
When making a module where it will be saved?
Assuming I wrote a module in linux 2.4 kernel, where is the file saved? Will it be saved at /dev automatically or can I choose the path for the file?
0
votes
0answers
6 views
Configuring Unknown keys of Keyboard in Linux
Is it possible to configure unknown keys to an application specific one ?? I have got some unknown keys on my keyboard , i would like to map those keys to any particular
task say, calcuator,Music ...
3
votes
1answer
36 views
How to call a bash script automatically when a directory containts chage
My goal is to run a bash script automatically whenever any new file added to a particular directory or any subdirectory of that particular directory.
Detail Scenario:
I am creating an automated ...
1
vote
0answers
13 views
Oprofile vs perf
I am looking a system-wide sampling profilers for Linux. Both perf and OPrfile work off the same hardware counters so I am not sure what the difference between the two are.
So what are the ...
1
vote
1answer
34 views
recv() error C/C++ socket programming
I'm writing the CWMP client for TR-069 Server. I'm basing my client's code on this topic (there's also a source code link in the topic)
CWMP CPE (Client) implementation
I have encountered a weird ...
0
votes
0answers
8 views
How to Handle return session in load balancing
I have following network scnerio, i have LB-> proxy -> LB -> Web server - > LB -> App server.
Load balancer is working in Round Robin fashion. Now how can i grantee that applications handling return ...
0
votes
0answers
9 views
Checking for corrupt, not cleanly closed and upgrade needing tables
My server crashed and when I recovered it I am getting this error Checking for corrupt, not cleanly closed and upgrade needing tables.. when I am trying to start MySQL. My Server in Linux/Debian. Not ...
0
votes
1answer
11 views
Missing operand for stat
I am trying to make use of stat with xargs but I am getting an error from stat stating that I am missing an operand.
Below is the whole command I am using
find /my/path/Files_G** -type f | xargs ...
0
votes
0answers
24 views
Sequential read and write on ssd
How can I determine whether the file being read or written are in sequence. Further is there any way to know whether the files written on flash drives are in sequential order. Assume the flash drive ...