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.

learn more… | top users | synonyms | linux jobs

0
votes
0answers
8 views

How to set the terminal title to show the current running command while it's running and to show it in brackets once it's finished?

From a different post I already know what to put in my .bashrc to set the current executing command as the terminal title: trap 'echo -ne "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG ...
0
votes
0answers
11 views

Forwarding old emails

I'm trying to forward a series of old emails from one email address to another, both are Microsoft email accounts. The thing is that i don't what to simply forward them using the web interface, that ...
0
votes
2answers
22 views

Bash - assign variables to output of a command in a loop

I've got an application that runs and defines the devices on a system. The output looks something like this: ./show-devices 192.168.1.2 | grep volume /dev/sda volumeid-65 /dev/sdb ...
0
votes
0answers
5 views

Red Enterprise Linux Qt 4.7.0 install error

I'm running a virtual machine, using VMWare Player, running Red Hat Enterprise Linux Workstation 6.4 x86_64 and I'm trying to install Qt 4.7.0 from the qt-everywhere-opensource-src-4.7.0.tar.gz file ...
0
votes
0answers
23 views

Error message by shell on running addr2line pragmatically on Ubuntu

I have the following code : char command[256]; sprintf(command,"addr2line %p -e xcep_app", trace[i]); addr2lineWriter = popen(command, "r"); if (addr2lineWriter == ...
0
votes
1answer
14 views

Makefile: Linking .*a library

DESCRIPTION: I have a library libshell.a, inside of it is the function ord_interna that i'm attempting to use, however it seems i linked it wrong, could you guys fix my error, so i dont make it in the ...
-1
votes
5answers
32 views

Linux bash script -

I am trying to use whether or not a line contains a date as a condition for an if statement: if [grep -n -v '[0-9][0-9][0-9][0-9]' $line |wc -l==0] then ... The above returns an error. I don't ...
0
votes
1answer
13 views

set GNU screen background color

I would like screen to change the background color of the terminal (xterm) when started. I want to have a quick way of determining whether I am in screen or not. I often work over shh and it often ...
0
votes
2answers
19 views

If I have 10000 connected to my application server running on a linux machine, what should I see if I netstat?

I'm trying to understand something. It's networking 101, I'm sure. Say I have my application server (java, tomcat for the sake of the example, but it doesn't matter if it's really tomcat or not) ...
1
vote
0answers
17 views

Linux user permissions for Django deployment

Let's say a Django site lives on a production server in /var/virtualenvs/sitename with a directory structure like this: /var/virtualenvs/sitename/ logs/ access.log error.log ...
-1
votes
1answer
24 views

I have 120 linux serves and I want to run a script on my local workstation and return the output to a log file on my local worksation [closed]

I want to ssh in to 120 linux server cat the /etc/passwd and run some other commands. I want all output from the remote server to be appended to one file on my local work station. I have a file list ...
0
votes
1answer
13 views

bash script Incremement array index inside expect code

This is my code that I have embedded in some bash script. VAR=$(expect -c 'expect { "name:" { send "'${Array[pos]}'"\r" ; exp_continue} "hello" {send "hello\r" ; exp_continue} ...
0
votes
2answers
21 views

linux command mapping for long path dependent ones

I'm sorry if this question is asked in a different way before. I did my due search effort on Google and StackOverFlow(SOF), but the search terms that I tried haven't returned the answer I was looking ...
0
votes
2answers
26 views

inet_pton with all zero ip address

I am using inet_pton to verify if the input IP address is valid and is not all zeros ( 0.0.0.0 or 00.00.0.0). inet_pton(int af, const char *src, void *dst) If the input ip (src) address is 0.0.0.0 ...
-6
votes
0answers
53 views

How does malloc work in Linux environment? [closed]

I understand, the questions are a bit more, and sorry for that. But i have always wondered, and if someone can please help me with the same it will be really great. Please answer with respect to Linux ...

1 2 3 4 5 3562
15 30 50 per page