2
votes
1answer
4 views

Delete an array in awk

In awk, I can clear an array with a loop, making it an empty array, which is equivalent to deleting it. for (key in array) delete array[key]; Is there a simpler way? Can I completely delete an ...
0
votes
0answers
4 views

how to make logstash read kannel log

I got logstash installed on ubuntu 12.04 using the apt repository. But logstash is not reading any document. In logstash log there are teh following: ...
1
vote
0answers
13 views

automount and NFS

I have an NFS server that exports one share. Manually mounting the remote share works without any trouble. On the local machine I have an autofs automounter running (autofs-5.1.0). Mounting local ...
1
vote
2answers
8 views

FreeBSD 10 with Root-on-ZFS using only a part of the disk

I'm having a bit of trouble here. I'll try and be as concise as possible in describing my objective: I'm setting up a storage server for my employer, using two Intel DC S3500 series 120GB solid state ...
2
votes
1answer
14 views

Rotating log files while process still running

I have a process running that writes standard output and standard error to a log file /var/log/dragonturtle.log. Is there anyway to rotate the log file, and have the process continuing to write to the ...
1
vote
1answer
24 views

Launching a program and executing a command in bash script

How can I execute a command inside a program that I launch within the bash script? Is it possible to do so? Edit: For clarity, lets say that I launch program A and in the command prompt of program A ...
0
votes
0answers
3 views

Error initializing server: OC4J administrator account is not configured

I am getting the following error message when trying to bring up ./oc4j service (oc4j_extended_101350.zip). [oracle@sc-ifactory01p bin]$ ./oc4j -start Starting OC4J from ...
0
votes
0answers
5 views

Spawn multiple dirty page flusher threads per device

In earlier 2.6.X kernels, pdflush was used and it would spawn more pdflush threads if all current pdflush threads were busy for a second (read from The Linux Page Cache and pdflush). Since the ...
0
votes
0answers
5 views

How to power-on embedded flash memory after eject

On a Wheezy-ed Qnap TS-269L NAS I sent the embedded 512M DOM flash memory (/dev/sdc) to sleep using eject /dev/sdc after creating a new partition table on it. Previously it contained /boot/efi, ...
1
vote
1answer
10 views

I can't install new packages and can't update and upgrade

I'm trying to install some program on Ubuntu, but when I try it I got the following error.- E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock ...
0
votes
0answers
11 views

Problem installing ubiquity for debian 7 [on hold]

I made a. ISO of my OS DEBIAN 7 "remastersys", record it on a USB and run in live mode. The way instarlarll is to "ubiquity" in debian but apparently I can not instalat. so I want to install the ...
0
votes
1answer
29 views

Generating random numbers from users input

I am trying to generate a one time random password from the user's input which i will be storing in a txt file for record keeping. Here is the code: #!/bin/bash echo "Enter your string here" read ...
0
votes
0answers
10 views

How to pass multiple commands via pssh and multiple xterms

I'm attempting to open multiple xterms and run a command as an SAP user via sudo using pssh. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in the servers ...
4
votes
1answer
19 views

Getting the process-id out of command launched with “su -c”

I am running a java program inside a shell and writing the process-id to a text file. So when I do this: nohup java app.Main > /dev/null 2>&1 & echo $! > /var/run/app.pid It works. ...
0
votes
0answers
8 views

How to configure a “point-to-point” connection with RedHat 6.5?

My servers are hosted at Hetzner and I need to create a point-to-point connection to my gateway. The server can only reach its gateway (and its locally configured) IP addresses directly. All other ...
2
votes
1answer
26 views

Accept only y or yes with a one-line regular expression

I want to check if an input is y or yes (inputs in lowercase) and reject everything else What I have now is ^y[e]{'0,1'}[s]['0,1']$ But this accepts y, ye, ys, yes. I don't want ye and ys to be ...
0
votes
0answers
5 views

Fusing old “KNotes” repository into a “KNnotes” repository on a new KDE installation

(Migrated from "superuser"; I will probably manage to actually test this over the weekend. Meanwhile...) I want to migrate the KDE Knotes database from an account that existed on a Fedora 17 ...
3
votes
3answers
68 views

Succinct way to respond to user input?

Of course you can do this sort of thing, read var; if [[ $var = 'y' ]]; then echo "Yes"; fi But is there any way to skip the first step and do something a little more like this, (ideally without ...
0
votes
1answer
23 views

String index processing

My input file looks like: #key string pos(string) key1 AA000AA000000AAA0A 2, 3, 18, 12 key2 00A00AAA000AAAA00A 3, 18 And I'd like to add a new column at ...
1
vote
2answers
24 views

How do I actually read an XML file in human form that makes sense?

I downloaded a catalog and it is in XML format. How do change it from code to human-readable form, and ideally save it as a plain text file? I've never worked/seen these before; I tried messing with ...
1
vote
0answers
8 views

Systemd user unit that depends on system unit (sleep.target)

I was reading doc and it is still unclear for me, whether the following is possible to accomplish: service defined in ~/.config/systemd/user/task.service that depends on system sleep.target ...
0
votes
1answer
20 views

Symbolic linking to ~/ instead of ~/[path/file]

I moved all of my dot files out of ~/ in to ~/data/dotfiles I then did ln -s ~/data/dotfiles/[filename] ~/ My intention was ln -s ~/data/dotfiles/[filename] ~/[filename] This included my .vimrc , ...
-3
votes
0answers
30 views

Advantages of creating links (Soft/Hard) [duplicate]

What's the purpose of creating hard or soft links? We can create hard links using: ln source_file file_we_want to give_link And soft links using: ln -s source_file file_we_want to give_link ...
2
votes
1answer
26 views

scp to an alias

To transfer a folder from my local host to a remote host, I normally do: $ scp -r myFolder user@host:destFolder/ Trying to make this easier, I aliased the remote host destination: $ alias ...
0
votes
0answers
6 views

Module load map

How can I obtain a module load map? I've tried with the -m flag in insmod but it seems that since 2.6 there is no support for it. Thanks
3
votes
4answers
36 views

How to securely delete a directory without leaving a trace?

I already know that using shred will overwrite my files in such a way that leaves them unrecoverable. However shred can't be used to hide directories. Error Message: failed to open for writing: ...
0
votes
0answers
16 views

Debian installation fails due to CDROM not being detected

This is a problem many users have, but there doesn't seem to be an effective solution that works for everybody. When trying to install Debian 7.6 (problem exists for other versions as well) from a ...
2
votes
1answer
15 views

How can I set default settings for htop?

Occasionally, I need to check resources on several machines throughout our data-centers for consolidation recommendations and the like. I prefer htop, mostly because of the interactive feel and the ...
0
votes
0answers
12 views

Is there anything in RHEL 6.5 that would affect I/O speed for something <24K vs >24K?

Generally, transactions for my app of setting and getting data internally are measured in a couple of millis. However, over 24K in size, that time can jump to just over 100 millis. Is there anything ...
1
vote
0answers
10 views

crlibm Library Installation Problem

I am trying to install crlibm using the installation instructions, which is as usual: ./configure make make install Then I get the following output: Making install in scs_lib make[1]: Entering ...
0
votes
1answer
31 views

Combining multiple functions into a single bash script

Is there a way that I can combine the following commands (the last is a zsh function) into a single bash script? find /path/to/directory/*/* ! -name "*.js" -type f -delete find ...
2
votes
4answers
44 views

Renaming multiple files with rename

I need help renaming files in batch--the other questions I browsed don't exactly address my problem. The names of my files are generated non-deterministically, so I can't predict what they will be ...
6
votes
1answer
75 views

Can I specify the layout of a vsplit command?

When I do the :vsplit command, it always opens the new file on the left side of the screen. Is there a way I can specify I want the new file to open to the right?
1
vote
0answers
16 views

Is a page with “PROT_NONE bit set” eligible for swapping?

From the following link: Page Table Management - kernel.org, I understood that the bits PROT_NONE and PRESENT can be used to let the OS know that a page is protected but is resident in memory. I am ...
0
votes
1answer
8 views

Changing keyboard layout on Scientific Linux 6.0 and creating new keyboard shortcuts?

I have two questions regarding keyboard input and shortcuts: Is it possible to change the keyboard layout on Scientific Linux 6.0 and how can it be done? Is it possible to define new keyboard ...
4
votes
3answers
174 views

What is Lintian for?

I have read https://lintian.debian.org/ but do not understand what that means in simple words. Which are examples of debian policy rules to be violated and detected by lintian?
0
votes
1answer
19 views

Where should xt.vim be put on osX?

Cracking xDebug open, finally and looking to add the vim formatting file from xDebug.org. It says to "copy" the file to ~/.vim/syntax. But such a directory doesn't exist on osx 10.6. I don't see ...
7
votes
3answers
393 views

Why are some files and folders hidden?

I can understand the rationale of hiding files and folders in the /home/user directory to prevent users from messing around with things. However, I do not see how the same rationale can be applied to ...
0
votes
2answers
42 views

A small distro that fits into a 4GB SSD [on hold]

I have this old netbook that I really like but I can't find a modern distribution that would fit into its 4GB disk drive. I would like to have a nice GUI and updated packages, like Chrome, VLC, ...
1
vote
1answer
21 views

How to find the cpu and memory usage of child processes

Supervisord is running on centos server. If I do ps -e -o %mem,%cpu,cmd | grep supervisord | awk '{memory+=$1;cpu+=$2} END {print memory,cpu}' I get 0 0 just because supervisord is just an ...
5
votes
1answer
101 views

How can I put some comment in yum installation list?

Lets say I made a List of installed packages by: rpm -qa > list I want to use this list to re-install those Packages on another System, For Example By: yum -y install $(cat list) But I need ...
1
vote
2answers
14 views

How to find site on shared server that is generating httpd requests

I have a shared server that had a Wordpress site that was compromised. I cleaned out all the wordpress sites on the server and everything seemed to be fine. When I checked today I noticed a large ...
1
vote
0answers
17 views

Mounting Ext3 in linux different user

I am trying to mount an ext3 based memory stick in Linux based development board. I used mount with -u and -g for mounting the fat based memory stick with different user. When I tried the same ...
0
votes
0answers
8 views

RHEL 6.4: Openssl 1.0.0-27 libcrypto and libssl missing

I am trying to install znc IRC bouncer, which needs openssl libraries: Error: Package: znc-1.4-1.el6.x86_64 (epel) Requires: libcrypto.so.10(libcrypto.so.10)(64bit) Error: Package: ...
0
votes
0answers
5 views

ntp not syncing

Since my hardware (Rasberry Pi) does not have a hardware-clock, each bootup warps us back to the 1970's, so I use NTP. The gateway in the wifi I am in provides an NTP-Server-service. my /etc/ntp.conf ...
4
votes
1answer
63 views

sudo - impersonating a user

I am trying to use the sudo command and sudoers file correctly so that I can run a command as another user. I have my sudoers file set up as follows: beans ALL = (root,apache) NOPASSWD: ...
1
vote
2answers
26 views

bash: regular expressions in if expression

In my script on my ubuntu machine I declare a string like this: DEBUG_PACKAGE_LIST=$(apt-cache search dbg | awk '{ print $1 }' | grep -e "-dbg") For you to help you understand my problem here is ...
0
votes
1answer
40 views

How do I delete a file in a read-only directory?

I've got a directory and a file in it, with the directory marked as read-only: $ mkdir directoryname $ touch directoryname/filename $ chmod a-w directoryname I cannot delete the file, even if pass ...
0
votes
1answer
22 views

similar content Project access from a single file [on hold]

I create three different project which are access different three different database. Except that all project files are same. so, I want that in a project folder all project files and in other two ...
3
votes
2answers
114 views

Command substitution declaration syntax in bash - which of these two is better practice? [duplicate]

This is part of a bash find loop, and I wondered which is more correct syntax and why? filename="$(echo "$i" | cut -c5-)"; filename=`echo "$i" | cut -c5-`; Both function for the purpose of getting ...

15 30 50 per page