0
votes
1answer
9 views

Get the filename that the record come from

I have a huge number of .gz files, which being uncompressed using zcat together. I am looking to get from where each record came from, as below example: File1: 1,2,3,4,5,6,7,NEW,9,10,11,12 ...
-1
votes
0answers
9 views

How to remove line break if line character count less than n chars

Could anyone help me to concatenate the line with next line if the line char count is less than x chars.
0
votes
1answer
26 views

Cronjob is running every minute but not at a specific time

As title says the job works if set like this: */1 * * * * /usr/bin/php /home/test/cron/test.php And if set to something like: 15 20 * * * /usr/bin/php /home/test/cron/test.php it's not working. ...
1
vote
1answer
19 views

How to sum column values for each row in two csv files using bash script?

I have two CSV files and i have the requirement to calculate the sum of the 8th column from File1 and File2 for every row. The two CSV files have exactly 24 rows each and to simplify the things i have ...
2
votes
1answer
12 views

how to set Internal Variables in mailx in linux?

save internal variable enable saving of messages in the dead.letter file on interrupt or delivery error.The default is save. problem: default is save so dead.letter file is created at home directory, ...
0
votes
0answers
4 views

Displaying a remote window in a EOD session

Please can someone tell me how to display a remote window in a EOD session? The usual way of setting "setenv DISPLAY local.host.com:192" in the remote session and doing a "xhost +" in the remote ...
0
votes
1answer
16 views

How can I beep without PC speaker

There is no PC speaker in my laptop. Is there any way to get beeps by a normal speaker in Arch Linux?
0
votes
4answers
21 views

How to find a string from multiple .csv files

I have multiple .csv files in a folder named HW in my desktop and I am using cygwin , I want to find a string from a specific column for example in X column ARD is the header in content value may be ...
0
votes
0answers
4 views

How to Configure freepbx and Matrix Eternity on PRI Line?

I need a to configure freepbx with matrix eternity on a PRI line and setup 12 seats for making calls outside. Matrix Eternity Device is ...
-4
votes
1answer
32 views

my question is about linux command-line

I've a password file located at C:\Users\Umer\Desktop\Passwords.txt How can i open it in nano. Size of my text file is 700MB.
0
votes
0answers
2 views

Latest Mono, XSP and Mod_Mono throwing error when executing mod-mono-server2

I have installed the following versions from source on Github (tagged releases) mono 4.0.3.19 mod_mono 3.12 xsp 3.0.11 Everything appears to install OK but when trying to Start apache I get the ...
1
vote
1answer
20 views

Form a output by combining multiple lines

I have a log file as below: /export/home/got/logs/o2877612.01:job_1432787863184_159408 Message: org.apache.pig.backend.executionengine.ExecException: ERROR 2118: Input path does not exist: ...
2
votes
0answers
6 views

Why in “:normal”command ^[ seems doesn't work with A? (vim)

Today, I learnt a bit of vim normal command, and below is my experiment: :normal i Insert ^[ yyp :normal A Append ^[ yyp # RESULT OF EXECUTE FIRST COMMAND FOR SEVERAL TIMES Insert Insert ...
1
vote
0answers
9 views

How to show AIX bridge settings

While Linux has "brctl show" command, I cannot find any similar for AIX. Question: How can we show AIX bridge settings?
1
vote
0answers
7 views

Kali linux doesn't detect my hard drive partitions

I wanted to install Kali Linux on my computer that is currently running windows 7 64bits, so i created a 200Gb free partition, I made an installation USB key, and everything was running perfectly ...
0
votes
0answers
8 views

Access Point Not-Associated : Kali Linux, and Airodump-Ng and wash command freeze

In my Kali Linux Airodump-Ng freezes (no wireless networks listed). Trying to execute a wash command also freezes. I can easily get my into monitor mode. How can I get the two to work right? I'm ...
1
vote
1answer
45 views

Using portion of a field in awk

How to use portion of a field for awk script? The input file: 123456789,0,0,4,1,6,8,6 987654321,0,0,8,4,6,9,8 251335549,8,9,6,3,1,8,8 897465419,8,1,8,9,4,7,9 I need to select the 3rd character ...
0
votes
0answers
6 views

Running a custom kernel on qemu

I am trying to test some feature of Ubuntu 12.10 server edition with the kernel version 3.5.0. I am running the qemu as qemu-system-x86_64 -m 2G -hda ubuntu.img -kernel linux-3.5/arch/x86/boot/bzImage ...
0
votes
1answer
26 views

Sending command to second shell

Let's say I have one command window open, and it's running some Java application, regularly outputting text. If I wanted to send a command to it, I could just type it in and press enter. But how ...
0
votes
2answers
22 views

date time as file name for dump file

I'm using Gulp to capture packets at 100Mbps to a folder. But I would like to name the files in format job_<'%Y_%m_%d_%H_%M_%S'>.pcap, but it gives files job.pcap0, job.pcap2 etc. The script I use ...
-1
votes
1answer
27 views

Transform CSV file using shell script

I am having various CSV files in a particular loaction, files: CPU_USED_20150729.csv, CPU_USED_20150730.csv, etc Data inside the file is like: CPU_Used CPU_Used CPU_Used CPU_Used CPU_Used ...
-1
votes
1answer
22 views

How do I login to another UNIX machine and execute a shell script stored there? [on hold]

How do I login to another UNIX machine and execute a shell script stored there?
0
votes
1answer
9 views

Installing the BlueZ Utilities

I need to install the bluez utilities. On this site there are listed six utilities in a table, so i downloaded the latest bluez package bluez-5.33.tar.xz and extracted it. But how can i install these ...
0
votes
0answers
9 views

Postfix - Extract Final-Recipient from a large queue of mail

I have a large queue of backed up messages. I've checked a few and the Final-Recipient domain seems to be the same. I'm spotting a trend but I want to make sure before I take further action. How can ...
0
votes
1answer
10 views

OpenWrt bricked router is not connected via USB to serial cable

I am a newbie in OpenWrt development. I have a problem in my router when i try to upgrade my router (TP-Link TL-WDR-3600) to openwrt firmware via web ui. Now my router is bricked and i can't ...
2
votes
1answer
83 views

how to split multiline records by awk?

How to split multi line records by awk, i.e below file: ...
1
vote
1answer
19 views

cannot install libreoffice on debian sid

Using Debian sid. I cannot install libreoffice as I get this error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the ...
2
votes
0answers
21 views

scp does not honor .ssh/config

Used for a few years arcfour as default cipher for SSH2 connection in my ~/.ssh/config file host namaka hostname localhost port 2022 ciphers arcfour IdentityFile ~/.ssh/virtualbox ...
2
votes
1answer
94 views

How to enable nameserver recursion?

On Ubuntu 14.04, when I'm performing a dig google.de on my machine, I get a REFUSED status (reducing to relevant lines): me@machine:~# dig google.de ;; ->>HEADER<<- opcode: QUERY, ...
0
votes
1answer
25 views

Shell Script does not send email from Cron job

I have a shell script which sends email when the disk is more than 80% full; when I run the script as sh -x script.sh or ./script.sh I get an email but when I keep the script in cronjob I do not get ...
0
votes
1answer
14 views

Have to transform some bunch of csv in req format and store it in some other location with same name

I am having some input CSV files INPUT_FILE: A_B_C_NFM001_20150729.csv A_B_C_NFM002_20150729.csv A_B_C_NFM003_20150730.csv I want output file also with the same name as input after performing below ...
-1
votes
0answers
14 views

Arch-Linux after system-update no internet connection but connection lan

Yesterday I updated my Arch Linux after 2 Months with sudo pacman -Syu and after the reboot I don't get any connection with the Internet neither from Browser nor with Skype, etc. When I try to ping ...
0
votes
1answer
5 views

Using auditd to capture “permission denied” notices

I'm trying to figure out how to log/track when a user gets a Permission denied notice after attempting to access a file. I've read that adding a rule to /etc/audit/audit.rules can accomplish this. ...
0
votes
0answers
7 views

Bspwm and Lemonbar - integrate bash script into the current bar

So I've got lemonbar (formerly bar) with Bspwm up and running. I have the colors the way I want them. I also have a bash script, which when run separately from Bspwm - just "./bash_script | bar -p" ...
0
votes
0answers
6 views

How do I edit my directory colors in zsh so directories in a network share aren't so ugly? [duplicate]

The display colors of directories located on mounted network shares are horrid: Local directories look much nicer: As I understand it, these settings are set in these lines in .zshrc: eval ...
0
votes
0answers
21 views

Ctrl + y on shell terminal, paste from system clipboard

I use emacs style bindings for my bash terminal. And i use only the system clipboard and never use any of the application specific/primary selection stuff. When i copy text from emacs window and use ...
0
votes
1answer
8 views

Set up enviroment for cross-compilation to i386, armel, armhf, arm64 and mips with no libglib2 conflicts

I'm trying to set up a build environment for a software in Debian Jessie. I need to produce amd64, i386 and eventually armel and armhf binaries of the software. It would be cool if I could ...
3
votes
0answers
5 views

Using socat to Tunnel/Proxy TCP want to split send/receive into separate files

I'm using socat to dump plain TCP (e.g. HTTP) traffic: socat -v tcp-listen:$PORT,reuseaddr,fork,keepalive tcp:$TARGET_HOST:$TARGET_PORT At the moment all send and receive traffic is dumped into ...
0
votes
1answer
14 views

Making a multiboot grub usb with debian jessie live

I'd like to put grub on my flashdrive, and be able to boot a live debian image from there. I got grub onto the flashdrive fine, I see my debian menuentry there, but I get a kernel panic when I try to ...
0
votes
0answers
19 views

How to normalize irregular data values

From a PHP table I get the values graphically represented. However some of the data recieved is 'damaged' or incorrect thus yielding a non-sensible graphical representation. The hours (y-axis) is ...
0
votes
0answers
18 views

Move files that are 7 days or older, cronjob [duplicate]

I want to move some log files that are 7 days or older to another folder and then delete those files after another week. I'm using logrotate to create a new log file every 2 hours in a folder. I ...
1
vote
0answers
30 views

RC script that brings itself to foreground under certain criteria

I have a simple script that asks for user input ([y/N]) and then acts upon it. I wrote a daemon rc wrapper so that it can run from startup. I was wondering if it is possible to make the daemon/script ...
0
votes
0answers
3 views

Why is a Linux Tun interface not returning ICMPv6 Echo replies?

I wrote a program which connects to a TUN interface and replies to ICMPv6 Echo Requests. Even though I can successfully observe the echoes and replies with tcpdump on the TUN interface, it appears ...
2
votes
1answer
16 views

Set CPU affinity for the specific program?

How can I set CPU affinity for the specific program (say gzip) to always run on specific core or cores (core 1, for example)? I read about taskset, but can it be used before program is actually used ...
3
votes
1answer
40 views

Is it bad to have a low entropy in /dev/random?

I wonder whether for the average Linux user it is considered as bad -from a point of view of security or any other relevant viewpoints- to have no or almost no entropy left in /dev/random. Edit: I ...
1
vote
0answers
13 views

Reading the device tree for ide disks

On Solaris I know disk are c0d0p0 or c0d0s0 for ide, c1t1d1s0 for scsi. I see there are links on pci devices,for example: ls -lh /dev/dsk/c0d0s7 lrwxrwxrwx 1 root root 50 ago 1 22:53 ...
2
votes
1answer
14 views

Alsa not detecting my soundcard

So my onboard sound-card died and I bought a new small usb one. With windows it works perfectly, but on my debian testing not so much. It isn't detected by my audio system, and I cannot choose the ...
1
vote
0answers
10 views

Adwaita Background Appears Much Darker in Reality

I like the default Adwaita background that came with cinnamon installed on Arch linux. For some reason however this background is very dark, much darker than it appears in the settings for choosing ...
0
votes
4answers
58 views

piping commands not working as expected I need explanation

I am trying to do the below touch ~/scratches/scr6.txt | cat ~/scr.txt > ~/scratches/scr6.txt | cat /dev/null > ~/scr.txt I don't know why scr6.txt is always empty, however doing the below ...
1
vote
2answers
51 views

Is it possible to start programs (saved in the menu) from the terminal?

Recently I switched over to Linux Mint. I am finally getting the hang of using the terminal, but there is one question that I find myself coming back to: Is it possible to start a program that is ...

15 30 50 per page