2
votes
3answers
53 views

Bash | port killing loop fails

I am trying to create a bash function which should kill all processes using some ports specified in port_array. The kill-port function works if I call it myself with a port e.g. with kill-port "80";. ...
0
votes
1answer
13 views

Do I need a modified kernel/module for bluetooth RSSI scan?

I want to write a scanner that shows nearby bluetooth devices with their RSSI values. I don't want to pair or even connect to the devices, it must be fully silent. From what I've seen unix bluetooth ...
1
vote
1answer
47 views

Getting an output error with command head in shell script

getting an error with head command. There are two files with size 48bytes in directory and its printing once along with the directory path instead of twice. Why the head command is not considering the ...
1
vote
2answers
48 views

Compare three files: lines present in one, but not in the other using column comparison

I have three files file1.txt, file2.txt, file3.txt and they are of same format(same number of columns with same data type). I want to select records from file1.txt which are not present in file2.txt, ...
0
votes
1answer
30 views

Cannot copy-paste from or to the gnome-terminal

I am using Arch linux. However after the recent gnome update, I am not able to copy or paste anything into or from gnome terminal to gui applications like editors or browsers. However I am able to ...
1
vote
0answers
18 views

How to recover missing serverauth so user can startx?

I've been using PCLinuxOS. All was OK until th Hard Drive had a bad block. After some fsck repair, from the shell, I tried to startx: xauth: file /home/joe/.serverauth.2052 does not exist. ...
0
votes
1answer
21 views

page up and page down alternative for horizontal scrolling in less

In vertical scrolling using less the page up and page down keys are working. Which keys scrolls one page down/up vertically? The less was started with -S option.
0
votes
1answer
31 views

How to format old laptop and install CentOS

I have an old laptop with Windows 7. I want to remove everything and install CentOS 7 to turn it into a server. What I know is that I should format the old OS somehow and get iso image of CentOS and ...
0
votes
0answers
12 views

OpenSuse does not show .eps files

I am running on this machine on a cluster: > lsb_release -r -i -c -d Distributor ID: openSUSE project Description: openSUSE 13.2 (Harlequin) (x86_64) Release: 13.2 Codename: Harlequin ...
1
vote
0answers
24 views

Inherit IO redirections from a script to another

When I redirect the output of a script within a script, I expect the redirection to be applied to the called script as well as the program called within it. A: ./B 2>> error.log B: ...
4
votes
3answers
92 views

Copy from remote server which doesn't have rsync

I need to recursively copy a folder from a Ubuntu remote server where I have ssh access. I don't want to follow symbolic links, nor to copy permissions/owner/group, because my client system (Ubuntu ...
0
votes
1answer
24 views

Assign IP to a device using BOOTP protocol?

I have a device that is BOOTP enabled, I want to assign an IP to this device on Linux. there are these tools that works perfectly ...
2
votes
3answers
144 views

Add extension for multiple files, based on their types

I know that there are many questions about adding extension to a multiple files. But none of them could get my job done. I have a huge list of images without extension, most of them are png, but ...
1
vote
1answer
19 views

How does PulseAudio start?

PulseAudio is always running on my system, and it always instantly restarts if it crashes or I kill it. However, I never actually start PulseAudio. I have checked /etc/init.d/ and ...
0
votes
0answers
19 views

Comparing two text files and printing out matching ids, sub_ids and timestamp related to the id

I found this solution in Perl interesting. I have a similar situation to print matching columns and two additional columns from the second file (Rev ID n date released). How do I read both files from ...
1
vote
0answers
12 views

rpm --verify does not inform about missing file

I noticed there is a missing file in the MySQL installation in a RHEL server. I want to know if there are more missing files so I tried to use rpm --verify (or rpm -V), however it doesn't output ...
1
vote
1answer
16 views

Postfix with smtp authentication failing

I'm currently in the process of updating my new server to do the same tasks as my original older server (new server is running Debian wheezy, old server is running Debian squeeze). The issue I'm ...
1
vote
2answers
42 views

Accessing fish functions from perl

In bash I can do: foo() { echo bar; } export -f foo perl -e 'system "bash -c foo"' I can also access the function definition: perl -e 'print "foo".$ENV{"BASH_FUNC_foo%%"}' How do I do the same ...
1
vote
1answer
37 views

Connectivity issues after updating to Debian Jessie

I have inadvertently upgraded to Debian Jessie from Debian Wheezy while I was trying to install VLC player :D. The upgrade did not go very well as my sources.list file was mix of wheezy and ...
2
votes
1answer
20 views

How to connect between two Linux machines VIA Linux router machine

I have three Linux machines that connected as the following: Linux_machine1 --> Route_linux_machine --> Linux_machine2 How to ssh from Linux_machine1 to Linux_machine2 Only VIA ...
1
vote
0answers
31 views

binary is able to run only when run after creating a symbolic link to it

I am facing a rather strange problem. I have a 32 bit qmake binary placed at a very deep path. So for ease of use I created a link using ln -s /complicated/path/to/qmake ~/qmake I am running a ...
0
votes
1answer
17 views

How to use usermod login command?

When I try to use: [root@jack-dpp jack]# usermod --login jack-dpp jack I get: usermod: user jack is currently used by process 7622 In RHEL 6.6 how to kill all the process and run this command?
3
votes
1answer
50 views

What are the 'n', 'l', '3pm' sections of the manual for?

An excerpt from the man man page: The default action is to search in all of the available sections following a pre-defined order ("1 n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7" by default) What are ...
-1
votes
1answer
21 views

how to convert video into webm format using ffmpeg in centos

how to convert video into webm format using ffmpeg and libvpx in centos I have install ffmpeg and libvpx in centos.but it's doesn't convert mp4 format into webm format. but in windows i have check, ...
0
votes
1answer
27 views

Delete excel files which are older then 1 month

I need to delete excel files which are older then 1 month. need to set cronjob. any suggestion for this? which script can be used to search excel files from particular directory and delete them.
1
vote
1answer
21 views

How to block the response of certain DHCP server

There are multiple DHCP servers that run on our LAN, and some of them are unwanted. Can I configure my OS to reject certain responses so that I can get the correct one?
1
vote
1answer
44 views

How SSH Tunneling is working

can someone explain how the following ssh tunneling is working ? ssh root@localhost -P 2222 -pw 1234 L 3300:remote_WIN_machine1:3389 this ssh command is running from Linux machine while the remote ...
0
votes
1answer
37 views

need to get the command information over ssh and the input from file

I am writing a script to get the command information of the remote machine usinf while and for loop. PFB the script. But the script ends by giving the single command information only. I have multiple ...
0
votes
1answer
45 views

Cron Job every 55 minutes [duplicate]

I want cron to be run in every 55 mins. I followed the link CronJob every 25 minutes and my crontab command is */5 * * * * [ $(( $(date +%s) / 60 % 55 )) -eq 0 ] && wget ...
1
vote
0answers
23 views

Getting some unwanted message in linux os

When Linux (RHEL) OS is booted I am getting a message as beiscsi_ep_connect shost is null What does it mean?
3
votes
4answers
88 views

Run multiple commands and kill them as one in bash

I want to run multiple commands (processes) on a single shell. All of them have own continuous output and don't stop. Running them in the background breaks Ctrl-C. I would like to run them as a single ...
-1
votes
2answers
31 views

Removing unwanted lines from the file [on hold]

I have eight file's which start with: SEALS-* Each file has a header and data: #Col_1\Col_2\Col_3\col_4 --- header \\\\\\\\\\ --- data If it is a null entry, I need to delete ...
1
vote
3answers
79 views

How to decode base64 text in xml file in Linux?

I'm new in linux (shell). I need to decode base64 text in xml file using linux shell script. Could you please help me to write linux shell script for decoding the values of those tags where attribute ...
0
votes
0answers
12 views

named-checkzone fails reverse zone file with NS has no address records (A or AAAA)

I'm setting up a private DNS server using bind9 on raspian. I'm receiving this error on my reverse zone file: named-checkzone dthacker.org db.dthacker.org.inv root@dns:/etc/bind# named-checkzone ...
0
votes
1answer
20 views

How do I run the query 1 by 1 and return only exit code in bash script? [on hold]

I've created a below script :- query1=$(command1) query2=$(command2) query3=$(command3) if [ $? -eq 0] then echo "Success" exit 0 else echo "Failed" exit fi the problem is when I ...
2
votes
2answers
30 views

Best method of copying full /nix/store over the network from one nixos machine to another

Currently I use: find /nix/store/* -maxdepth 1 | xargs -L <N> nix-copy-closure --sign --gzip --use-substitutes --to <remote machine> Where N is some reasonable number that will not make ...
0
votes
1answer
24 views

How does “command < filename.txt” look when passing filename into a command

I've got a scenario where I have command < filename.txt so I can pass the contents of filename.txt and use it in command. But say I want to take the contents out of the file and just use them in ...
-3
votes
0answers
9 views

reconfiguration of NBD [on hold]

please tell me the command of reconfiguration of nbd-server in Ubuntu. I want to reconfigure the nbd-server because when I restart the nbd-server it show me error and I have to reconfigure it
1
vote
1answer
24 views

Is it possible to have 2 different passwords saved for the same network?

I'm not always at home and sometimes the router needs to be reset completely to receive a new wan ip address because my roommates are not very tech savvy at all. When this happens the password is ...
-1
votes
0answers
17 views

network block device: a port was specified but old style export were not requested

I configured the nbd-server in Ubuntu. I configured the following [generic] [myexport] exportname=/dev/sda1 port=9000 Now I restart the nbd-server service #service nbd-server force-reload but ...
4
votes
2answers
47 views

Is it possible to install a program onto an external drive?

I run Ubuntu 14.04 on a Toshiba chromebook using crouton. The drive my OS is installed on is small, with only 3.6 GB of free space. I'd like to install sage on my system but sage requires 6 GB of free ...
0
votes
0answers
37 views

Output of wc | awk is different in shell script than from cli

When issued via command line, this returns "2": pgrep someprocess | wc | awk '{print $1}' When run in a script like this, it returns "4" #!/bin/bash SOME_PROCESS=`pgrep someprocess | wc | awk ...
0
votes
1answer
16 views

File Permissions issue from same group

I have a folder that I haven't created and belongs to a web-group group. Even though my username is under that group I can't modify files or create new ones without doing sudo. When I do the ...
1
vote
0answers
15 views

Error running startx on CentOS via SSH

Whenever I attempt to run startx on a system I have SSHed into, I get the following output: xauth: creating new authority file /root/.serverauth.6604 X.Org X Server 1.15.0 Release Date: ...
1
vote
0answers
12 views

Run a query and Send out email

I created a script to monitor and have a query as below :- httpUrl="http://some.website.ashx" balExp=$(curl -v -X POST -d "UID=test&PWD=2222" $httpUrl) How do I sent email alert (my email ...
1
vote
0answers
12 views

Windows keep resizing by them selfs in Fedora 21 VM Virtualbox, host Fedora 21

It's really annoying but I've been getting this behaviour lately in my test machine: Fedora 21 x86_64 KDE VM in VirtualBox the host is Fedora 21. Here is a pic: I put the system to saved mode if I ...
0
votes
1answer
22 views

Percent Signs for Shell Vars to Remove Extension [duplicate]

for file in *.pdf ; do newname=${file%\\.\*} done I don't understand how the %\.* is removing the file extension, can someone walk me through it.
0
votes
0answers
5 views

Repairing Bootmgr from Linux Opensuse

I have dual boot of windows8.1 and Linux Opensuse13.2 on my machine. Both OS were working fine. In an attempt to launch windows8.1 from Grub2 boot loader, I made changes to windows boot loader by ...
1
vote
0answers
13 views

How to custom-tweak X resolution settings

Or should I rather phrase the question: how to construct a custom mode. The story is: I am a proud owner of an old EIZO monitor (IPS, etc...) which has started to display this flaw of bad lines. I.e. ...
2
votes
1answer
24 views

Adding consecutive characters to duplicate words according to order they appear

So I have files like this but for hundreds of different genes per file. >lcl|accession_cds_proteinaccession [gene=dnaA] [protein=description] [protein_id=accession] [location=location] ...

15 30 50 per page