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
6 views
which signal should I use to come out of accept() API?
I have two threads one is blocked for a new connection in accept(), and another one talks other processes. When My application is going to shutdown, I needs to wake up the first thread from the ...
0
votes
1answer
14 views
mmap size to be adjusted to previous page boundary
Is there a way to determine the previous page boundary of a address.
I know I can determine the next page boundary as
size = (size + PAGE_SIZE - 1) & ~PAGE_MASK;
But I want to move to the ...
0
votes
0answers
7 views
JBoss 7.1.1.Final - accessing WS from remote address
Connecting to WS from remote host doesn't work while from localhost works fine.
I opened ports 8080 and 8443 as found here:
http://www.cyberciti.biz/faq/linux-unix-open-ports/
In standalone.xml I ...
0
votes
1answer
13 views
Post request with Wget?
I want to use wget to upload a picture to a distant server, using an authentication token : 'AUTH_1624582364932749DFHDD' to the 'test' folder.
this command doesn't work (Authorization failed) and I ...
3
votes
1answer
27 views
order of files unix find on two directories with or command
What is the expected order of the files if one executes the following find command on Linux:
mkdir /tmp/dir1 /tmp/dir2
touch /tmp/dir1/1 /tmp/dir1/2 /tmp/dir2/1 /tmp/dir2/2 /tmp/dir2/3 /tmp/dir2/0
...
0
votes
0answers
8 views
my node forever plug-in does not work
I want to run my node.js server with node forever, I installed the plug-in node forever, but after closing my putty console the node.js server is closed. What can I do?
I tried these commands:
...
0
votes
0answers
14 views
showing verticies in openGL
I have a program that renders a 3D wire mesh model using this code fragment in a loop.
glBegin(GL_LINES);
glColor3f(.0f, 0.0f, 0.0f);
glVertex3d(xs,ys,zs);
glVertex3d(xe,ye,ze);
glEnd();
I need to ...
0
votes
0answers
10 views
Linux smsc911x driver using LAN9115 is dropping all RX packets
If I ping from the device to my PC, I am able to get tcpdump packet and see the echo go back however the packet is dropped as shown below:
eth0 Link encap:Ethernet HWaddr 00:0D:A7:00:0E:5C
...
0
votes
1answer
27 views
How to display the function name into the function itself
How to dispaly the function name into the function?
#!/bin/sh
toto()
{
echo "$something"
}
toto
the above code should display
toto
I m using bash linux from busybox
0
votes
0answers
3 views
Ubuntu strange encoding issues using sublime text 2
I'm running ubuntu 13.04 64bit, using sublime text 2 writing PHP. I sometimes seem to get the following error:
Parse error: syntax error, unexpected 'Â ' (T_STRING) in
...
0
votes
1answer
27 views
Inversing number: what is the fastest operation? Using bitwise operation or Using if statement?
I want to inverse a number in shell. my number value have only 2 possible values: 1 and 0. If my number is 1 I want to inverse to 0 and if it's 0 I want to inverse it to 1
What could be the faster ...
1
vote
2answers
24 views
Multithreaded Programming with Bash Script
I am running a bash script as like that:
for i in {0..3250000..50000}
do
wget "http://xxx/select?q=*:*&row_size=50000&start=$i" -O $i.csv
done
Every time when I send a request I ...
0
votes
0answers
7 views
Things keep moving around my panel on reboot.. Linux Mint MATE
Okay yeah so pretty self explanatory.. Whenever I reboot (Linux Mint 15, Mate 64)
stuff keep moving around my bottom panel.. I have tried clicking "Lock to panel" but whenever I reboot the time/date ...
0
votes
0answers
14 views
javac does not find classpath
I am attempting to recompile a Java class via the command line. It was built by a team mate using his eclipse setup and as I do not have eclipse I am using javac. It attempts to import on of our own ...
1
vote
0answers
14 views
Linux network packet scheduler with pulse behaviour
I'm looking for network packet scheduler with following behaviour:
Image we have packet transmission every milleseconds in normal mode. But we want to delay transmission to the latest 100 ms of ...