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
14 views
Can't receive data from network using udp protocol
My aim is to write C++ program which receives data from network using udp protocol. OS - linux. I have few questions.
I want to make sure that I can use linux C libraries to write C++ program.
Is ...
0
votes
1answer
7 views
How can I tell what user Jenkins is running as?
I have a bitnami Jenkins VM, how do I tell what user Jenkins is running as? I suspect it is Tomcat.
0
votes
1answer
13 views
How to create .exe for windows OS as target through Linux OS?
Am building a Web App.
This App runs on Web Server which is Linux OS. But I want Window users to use this Web App.
My challenge:
I need to create a .exe file for the users who write some Python or ...
0
votes
1answer
14 views
debugging curl - there is a 8 second timeout
I am seeing a 8 second timeout any time I curl to my node.js webserver. How can i test this? The server does not receive the request until the end, and the times are all around 8.1 second, so it's ...
0
votes
3answers
11 views
How do I get my IP address in Debian?
I am trying to get my ip address on Debian 6, I recently installed Debian 6 on my Oracle Virtual Box but when I run the command ifconfig I'm getting this the code below on the eth0
eth0 Link ...
0
votes
2answers
30 views
how to get own process' name
i have a plugin that can be loaded by multiple applications.
now i would like the plugin to know the name of the calling application (to register some services).
when the application starts, it can ...
0
votes
0answers
5 views
compiling CEFClient (chromium embedded framework) using GTK+ binaries on Debian
I am trying to compile CEF on debian without having gtk+ installed and using the binaries. The point is to ship cef with gtk+ binaries to the rest of the team so those who do not have the binaries can ...
-2
votes
1answer
17 views
loading ojdbc14.jar to Java - JDBC application in a linux machine?
for my job , I wrote a java app (JDBC program) with a select statement to connect to an Oracle DB. I have spent a lot of time trying to figure this out,but no success thus far. My environment is ...
0
votes
1answer
10 views
Linux find folders without files but only subfolders
I know that empty folders can be found using:
find DirectoryPath -type d -empty
I would like to find folders without files but that may have one or more subfolders (also not empty)
0
votes
0answers
27 views
Server not properly cacheing sql results
Here is the code in an ajax php file. It checks the memcache to see if the results have already been stored, and then if not it looks them up in the DB. I have this code deployed on 2 identical ...
0
votes
0answers
2 views
Does Iostat show the correct output for linux md raid
I m trying to understand a bit more the iostat output of my server and i need help. I want to see if I have a bottleneck.
There this two disk (xvdn and xvdo) of a RAID-1 (md3). I dont aggree with ...
0
votes
0answers
4 views
Linux. SOL_NETLINK not defined
I was trying to use SOL_NETLINK in setsockopt in Linux, and got an error saying that SOL_NETLINK is not defined although in included the socket.h file.
Googled for some answers and saw people ...
0
votes
0answers
8 views
User mode linux unreliable on 2.6.27.47 with SUBARCH=i386
I'm attempting to build and boot a UML (User Mode Linux) kernel with SUBARCH=i386 based of the vanilla 2.6.27.47 kernel source. As per UML build, I am running the following steps:
# Get example ...
0
votes
0answers
8 views
Best way to programmatically create IMAP and FTP accounts?
How is this typically accomplished?
In my scenario I have a .NET application running with a UI that allows my superusers to create new user accounts for people they wish to grant access to the ...
-1
votes
1answer
55 views
How to create my own shell using c or c++? [on hold]
I want to create my own shell just like bash. I want to use c or c++ as programmimg language.
suggest me some thing.
I will just implement the basic commands like cat,copy,ls etc.
0
votes
1answer
10 views
Allow/Escape spaces in Linux PAM modules
I am running into an issue we have with Active Directory and PAM, but this can apply elsewhere.
Setting up Yubikey over PAM to utilize two-factor authentication with VPN connections, I need to set a ...
1
vote
1answer
27 views
recvmsg linux receive wrong data
I am using recvmsg and sendmsg to send data over an asynchronous STREAM socket . The amount of data to transfer is rather big, between 15 MB and 30 MB.
I cannot understand why the data arrives ...
0
votes
0answers
8 views
does children created using pexpect run even if we switch off the local machine?
I am trying to launch a job to a remote server. And to optimize the system, I want to disconnect the connection once I launch a job on the remote machine so that I can start launching the other job.
...
1
vote
5answers
88 views
continously allocate the memory to crash the system and how to block it for standard users
hi i tried to allocate memory continuously using calloc function . so obviously the system memory gets filled and crashed. But the worst part is even if i am a standard user and if i am able to run ...
0
votes
0answers
8 views
Add a cut-run-paste shortcut to gmone shortcuts
I have a program that get text from clipboard, do some functions on it and return it to clipboard. then the program shuts down.
Can I make a shortcut - like gnome keyboard shortcut, Right-Click Item, ...
1
vote
1answer
8 views
Diff-aware editor, that can handle patch hunk edits (incl. deletion of lines)?
My question is similar to Interactive program to selectively exclude parts of a diff file - but somewhat different...
Say I have the following "original" file:
$ cat test-orig.h
int varA;
int varB;
...
1
vote
1answer
11 views
netcat proxy shell issue on linux
I am trying to follow a number of recipes which use netcat or ideally knc (kerberos netcat) to create a proxy; either to look at what is being piped through the proxy for debugging or to create an ...
0
votes
1answer
18 views
subprocess in python not excecuting command
I have a bit of code that I am designing to take a file, perform the dos2unix command on it, then copy that file to a file called INPUT, and then run a command that boots a program. From my code the ...
0
votes
0answers
19 views
Run command in all running screens on CentOS
Is there any way to run a command in all running screens on CentOS? This would be an extremely useful tool to have. Thank you!
0
votes
0answers
16 views
iReport runs in linux terminal but no with PHP exec command
I'm having problems executing the next command in a PHP file:
$cmd = '-Djava.awt.headless=true -Dlog4j.configuration=file:/opt/lampp/htdocs/crm2/modules/zr2_Report/jasper/log4j.properties -classpath
...
1
vote
1answer
27 views
Concatenate string literals
I've seen a couple posts for this, like this one, but none are helping me in my particular situation.
scriptsPath="/var/db/gbi/scripts/"
echo "$scriptsPathawesome.csv";
I would expect this to echo ...
0
votes
0answers
9 views
Problems with USB goflex 2 TB
I am using CentOS 5.5 and have been using cpio to write backups to a 2 TB GoFlex USB drive. This drive worked great for over a year, but am now running into a problem and not sure what to do.
When ...
0
votes
1answer
34 views
Run PHP script like an application without Browser
Hi I am new to PHP and have no idea if what I am about to ask is even possible or does it even make sense but here goes.
I want to execute a PHP script as if I am executing a standalone application ...
0
votes
1answer
8 views
How to remove the hashtag #index.html# file in linux/unix?
if I ls in terminal, i got this
#index.html# Procfile bootstrap index.html
And I want to remove this #index.html# file, how can I do so?
Typing
rm -f #index.html#
doesn't work. Also, ...
0
votes
3answers
36 views
Linux get system time since power on
I need to find the system time since power is applied on a linux machine in my c code.
Functions like 'time()' and gettimeofday() return the time since epoch and not since power on.
How do I find the ...
0
votes
0answers
5 views
glance: error: argument --os-auth-token: expected one argument
++ glance --os-auth-token --os-image-url http://google.com:9292 image-create --name cirros-0.3.1-x86_64-uec-kernel --public --container-format aki --disk-format aki
usage:
glance
[--version] [-d] ...
0
votes
0answers
10 views
Vnc server allow only one session per the account
Here is a environment.
I set up the xrdp to my Linux server. Client connects to the server using Microsoft Remote Desktop (RDP)
As you know, multiple users can connect to the server using rdp with ...
-5
votes
1answer
30 views
how to make a mobile OS using Linux [on hold]
i want to make a mobile OS because i have a project for my final year diploma so i need some help for coding. n also if any other topic please do suggest which can be useful for daily purposes for ...
-3
votes
0answers
22 views
Trying to shutdown a NAS(Network attached storage linux machine ) server [on hold]
Hi all I am trying to shutdown a NAS(Network attached storage) server through a batch ,I was able to do that through a separate java program ,but when I integrated with my application it did not stop ...
0
votes
2answers
21 views
trying to tar a directory lists the directory instead
so I did this
tar cvzf test.zip FP
with the intention of creating a zip of the directory FP
however, it instead lists the directories inside the zip
FP/
FP/php/
FP/php/pdf/
FP/php/docs/
...
2
votes
4answers
44 views
Finding login times in Linux
I am trying to figure out times of logins into my systems (basically systems boot).
I am making use of last Unix command. However, it does not let me pull more than a certain number of entries. I ...
0
votes
3answers
54 views
Need to take multiple digit input from a string removing spaces and alphabets
I am writing a program where I am taking string as an input, here I need to remove spaces , ignore alphabets and use only numerals.
I am able to achieve removing spaces and alphabets, but i can only ...
0
votes
1answer
32 views
Listing completed processes in Unix
I have a PID,but the process is not running anymore and has completed. I need to get the complete details associated with that PID.
Is it possible?
I am using Solaris 5.1 OS.
0
votes
0answers
7 views
Linux with multiples VLAN is partialy reachable
my network is made of several VLANs. I already have a router doing its job routing packets from one Vlan to another.
The problem occurs on a Linux server with 1 single interface, for which i expected ...
2
votes
5answers
49 views
Create answer file for bash script
I would like to create an answer file for somebody elses bash script. When you run the bash script, you are asked 5 questions the first time you install the software.
I used the yes | ./script ...
0
votes
0answers
8 views
Тot running RabbitMQ on Linux, can not find the file xmerl.app
I use OpenSUSE 12.3
I installed erlang and erlang-otp (R14B04)
I started RabbitMQ ./rabbitmq-server
is an error:
$:/opt/rabbitmq/rabbitmq_server-3.1.3/sbin # ./rabbitmq-server
BOOT FAILED
...
0
votes
0answers
7 views
Does application needs to be specialised to run on Beowulf Cluster?
I am starting to do some research work on clusters and I want to know if an application has to specialised to run it on Beowulf cluster?
0
votes
2answers
23 views
git clone fails when uses ssh connection
I used the following command to clone a git repository
git clone ssh://[email protected]/project.git
I placed the key files id_rsa.pub and id_rsa in the folder ~/.ssh/ but I get the following ...
-4
votes
2answers
42 views
What does the -N argument to wget do? [on hold]
I recently came across the wget command used with the -N argument.
wget -N http://abc.com/d.sh
What does the -N do?
0
votes
0answers
9 views
clean URL in Drupal7 doesn't work
i'm trying to enable clean URL on my server (Debian squezze) for my Drupal Website .
I tried all of the things i found on the net . So please help me .
The rewrite module is enabled.
On my server , ...
0
votes
1answer
11 views
wireshark doesn't display icmp traffic between tow logical interafce
I add tow logical interfaces for test with the following commands :
# set link on physical Device Up
sudo ip link set up dev eth0
# create logical Interfaces
sudo ip link add link eth0 dev meth0 ...
-1
votes
5answers
49 views
How to Create a Linux Installer Script?
How can I create a Linux installer script?
For example, after running command 1, it will run command 2, and then 3?
Thanks guys!
0
votes
2answers
44 views
Can I dump database with mysql (not mysqldump)?
I have a server where I have access to mysql but not mysqlimport or mysqldump. It just says "command not found" and whereis reports nothing.
I tried dumping the database with PhpMyAdmin but the dump ...
0
votes
2answers
30 views
ERROR: ld.so: object LD_PRELOAD cannot be preloaded: ignored
I am using ubuntu 12.04. Every time I start my bash terminal and every time when I finish typing a command(and press enter) , I get this message:
ERROR: ld.so: object ...
-1
votes
0answers
16 views
Grive - Installation Error: Broken packages [on hold]
I want to install Grive (client for google drive), installation results in an error.
System: debian 6
root@localhost:~# apt-get install grive
Reading package lists... Done
Building dependency ...