2
votes
2answers
28 views

Make python file accessible from anywhere by all users

I installed a program that requires you to execute a python script like this: python fit_locus.py --help I want to make the file acessible to all users without requiring them to navigate to the ...
0
votes
0answers
13 views

how the ping implementation calculating the round trip time? [migrated]

I was learning about the ping implementation. In that I had one doubt. The doubt is, how they calculating the round trip time. They done some calculation to calculate the round trip time. I am not ...
0
votes
1answer
16 views

Recursive Directory search, Showing most recent file in folder

Can someone point out where am going wrong please. Am doing a directory search (Based on the folder structure and file type) The folder structure is the same for every customer. Just the customer ...
1
vote
0answers
5 views

RH software collections enable for command run with sudo

We are using RH software collections for python34 and have the following in /etc/profile.d/scl_enable_python34.sh source scl_source enable rh-python34 This works perfectly for interactive users. ...
1
vote
2answers
18 views

Is this “Hardware Error” when using Matlab in Fedora really a hardware problem or could it be software?

I often found the following problem when I using Matlab 2012 in Fedora 20, during or after fft calculation or plot figures. The following is the error massage: [ 635.157606] mce: [Hardware Error]: ...
0
votes
1answer
44 views

How to pass a parameter with space in nohup? [duplicate]

I have script to run a jar, like shown below. user="Tim Tom"; jarfile=./app.jar SC_CD="java -jar -Xms512m -Xmx2048m -DUSER='$user' $jarfile" nohup $SC_CD And im geeting error message as Error: ...
2
votes
1answer
45 views

Why would ssh think there's a passphrase?

When connecting to the server with ssh I'm prompted for a passphrase, although the creator of the key hasn't set one and the file is a plain text private key. $ cat ~/.ssh/private.pem -----BEGIN RSA ...
-4
votes
1answer
26 views

Unpack a shell archive (.shar file)

I have a shell script. How can i remove anything before # this line Everything before the # should be deleted. The script is too long to delete it manually. How can I do that automatically? ...
2
votes
1answer
25 views

If there are more than x number of pipes in a csv line, then delete the 2nd instance

I have a csv file which is supposed to contain 4 columns of data which include a product number, a title, a url and a price. Each column is separated by a | delimiter (this has to be maintained, there ...
0
votes
1answer
29 views

How to maintain only four lines in my file in shell scripting?

Input file: 01.05.2016 87893938 02.05.2016 35435345 03.05.2016 35435345 04.05.2016 12345678 I want to keep only four lines in my file. that means if date 05.05.2016 6905698 is inserted then ...
1
vote
0answers
23 views

qsub: invalid option --1 [on hold]

I was trying to use qsub I got the complain as follows: [myusername@myhostname rose]$ qsub -l ncpus=10 -l mem=12gb -l walltime=900:00:00 -l cput=900:00:00 ROSE_main.sh qsub: invalid option -- '1' ...
3
votes
1answer
24 views

How to always print the prompt on a new line & keep input

We all know this annoying issue: $ printf "abc" > some-file $ cat some-file abc$ which tends to mess up the prompt if it is any more complex than $, throws off the current cursor position and ...
0
votes
0answers
17 views

Good squid documentation + question [on hold]

I have a question concerning the logic used in the configuration of squid server. I was wondering how squid_acl, squid.conf, squid_whitelist.conf and squid_lans.conf interact, I was trying to look for ...
1
vote
1answer
39 views

error:too many words `` in cat

I have a csv file that auto-generate with filename format yy-mm-dd_h. The csv file content: Status Filename 1 1A-W02_ws_r0_apr13_15_44.stdf 1 2A-W04_ws_r1_apr12_10_30.stdf 1 ...
1
vote
2answers
43 views

How can I find an address in a large file with grep?

I've got an exercise to do in which I have been given a fictional email record in which the owner of the email got invited to a certain place for vacation. The log is large though, so to speed things ...
0
votes
1answer
14 views

How to write down SQL query to get the data count of a table?

I have one table named FDR_DATA. There are following fields present in the table. Fields are: B1_NAME, B2_NAME, B3_NAME, ELEMENT, DATUM, WERT. Now I want to query the total number of data in this ...
0
votes
2answers
29 views

Add newline character to file

Hi Guys i need to change the below single line string using a shell script {1:F01NESWSZM0AXXX1111111111} {2:I940BBRUBEBBXXXXN} {3:{108:400MSOG161200FRO}} {4: :20:400MSOG161200FRO :25:1xxxxxxxx65 ...
1
vote
1answer
14 views

Is it reasonable to use a journaling FS on a filesystem image that is stored on a filsystem that already provides journaling?

I need a filesystem image to put 150k files there, so they should be easily relocatable, i.e. mounted as a folder, when in use, unmounted and copied somewhere when needed. Due to the large number of ...
1
vote
0answers
18 views

if I use multiplicative suffixes in systemd it errors - “failed to parse resource value”

Odd issue, this'n! As per the systemd man.. "The multiplicative suffixes K (=1024), M (=1024*1024) and so on for G, T, P and E may be used for resource limits measured in bytes (e.g. LimitAS=16G)." ...
2
votes
0answers
25 views

Unix way to extract vectorised image and its graph from a PDF file?

Data: one LHC thesis' page 16, where the picture is vectorised (most probably .eps). I am reviewing the answer here of the thread Software needed to scrape data from graph. I cannot find any tool ...
1
vote
2answers
15 views

How to extract files to “/usr” directory without overriding other files?

I download swift installation package, and extract it into my home directory: # tar -C / -xvf swift-2.2.1-RELEASE-ubuntu14.04.tar.gz swift-2.2.1-RELEASE-ubuntu14.04/usr/ ...
0
votes
0answers
12 views

Applying a patch to mdadm

I have configured RAID 6 using mdadm, and after trying to add a new disk to the ARRAY (replacing a faulty one), I am receiving the following error: mdadm --manage /dev/md0 --add /dev/sdi mdadm: ...
1
vote
2answers
65 views

sh AND and OR in one command

Trying to check for 3 conditions in one line of code, but I'm stuck. Essentially, I need to code for the following: IF string1 is not equal to string2 AND string3 is not equal to ...
0
votes
1answer
20 views

How to delete password for current account

I just installed Ubuntu 15.10 on my new desktop. However, I want to erase the password of it. I followed the instructions here. I now can successfully login with out password, but I cannot use sudo ...
3
votes
2answers
236 views

How can I find files with a long first line?

currently I have a problem with a server. One user who is hosting a lot of sites got hacked and some of his php files were modified. Now I want to get a list of the infected files and also want to ...
-1
votes
0answers
12 views

Why do warnings pop up in rkhunter for all the different bash command executables?

When running an rkhunter check, I got many different warnings, almost all for files in the /bin and /usr/bin directories, so they were all shell commands. The full list is below: Performing file ...
3
votes
1answer
52 views

Why ping receives another ping command packet?

I am learning about the ping implementation in C. The problem is, I was using a raw sockets to receive the packet. For all packets we have a identification value in ICMP header. I was running the ...
0
votes
1answer
24 views

How to determine if it is a fault of the Network Card?

Basically, I have a PC having problems. Let's call it POO. POO is a pc running Gentoo Linux, with KDE. It is quite freshly setup on an old hardware. So far I do not notice it has other problems, ...
0
votes
0answers
4 views

RHUI 2.1 Error Downloading the repo

We are facing this error on RHUI when downloading the repo. unable to find any solution on Red Hat site there is one link which guides us to edit some file for proxy settings. but we done have any ...
1
vote
2answers
15 views

What is the meaning of Tasks and Running in htop screen?

On my computer it shows Tasks 314; 24 running What do these numbers mean? Is 1 Task = 1 process? Why isn't the number of running tasks = number of CPUs then? (I have more than 24 CPUs) edit. ...
0
votes
1answer
18 views

How to SFTP into a KVM VM on remote RHEL 7.2 server?

We have a RHEL 7.2 server which runs a virtual RHEL 7.2 machine on KVM. The only way to connect to this VM is to SSH to the server and then SSH again to the VM, using a user on server. How can I ...
0
votes
0answers
31 views

Not able to install or remove any package [on hold]

I have lost the 'find' utility in my kali sana. When I try : ls -l /bin/find /usr/bin/find I get: ls: cannot access '/bin/find': No such file or directory ls: cannot access '/usr/bin/find': No ...
0
votes
2answers
24 views

What does %h and other symbols like it mean? [on hold]

I have seen % and then some letter for example %h in config files in Ubuntu and in other Linux distributions but I do not know the names of them or what they all do, so I am just wondering if there is ...
2
votes
0answers
20 views

X: Find out if a window is visible to the user i.e. not covered by others

I only want to execute a certain action with xdotool if the window is not visible to the user, this includes minimized windows, but also windows which are 100% covered by other windows (if no ...
0
votes
0answers
36 views

Using HID compliant mouse like device in ubuntu [on hold]

Aim: I have a whiteboard which emulates a mouse. Thus, when you click and drag on the whiteboard it should move the cursor. I want to make a whiteboard work in Ubuntu. It works on windows. Device ...
0
votes
0answers
4 views

having troubles booting yumi multiboot on my windows 10 pc with a sandisk ultra usb 3.0 flash drive

I have been trying to multi-boot Linux distros on my MSI WS60 Windows 10 pc with a new 64gb Ultra 3.0 SanDisk flash drive. I have tried to troubleshoot the fast boot with Windows 10 and format the ...
1
vote
1answer
17 views

How does Netfilter understand that packet is RELATED?

conntrack match module --ctstate argument supports RELATED packet state. How does Netfilter know that for example in case of active FTP a connection from FTP server data port(TCP port 20) to the ...
10
votes
5answers
764 views

Compress a large number of large files fast

I have about 200 GB of log data generated daily, distributed among about 150 different log files. I have a script that moves the files to a temporary location and does a tar-bz2 on the temporary ...
0
votes
0answers
18 views

Unknown job error on running service

I am getting an 'start: Unknown job: elasticsearch' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I ...
1
vote
1answer
20 views

Perl script to split a file based on a pattern at a certain offset

I need your help to get an idea as to how to split a large file into small sub-files as said in the example below. Criteria is we are looking at offset 30 (31st bytes to 2 bytes). If the offset ...
0
votes
0answers
13 views

Reading error output string in oh-my-zsh

I am using oh-my-zsh to automate some of the Unix tasks i do. One of the task require making a call, and if successful, echo a message. However, if there is a failure, I dont wan't to echo the success ...
1
vote
2answers
39 views

Check in pure bash that the download is complete

short story is, I probably need a simple loop in bash which checks periodically whether the size of a given file has changed or not since last checked. Long story, I will be downloading a file ...
1
vote
0answers
13 views

bridge-routing and martian packets

i am experimenting with routing a bit, and now i have a problem i cannot solve by myself eth0 | | ...
0
votes
2answers
18 views

Transmission keeps seeding after downloaded file has been deleted

I'm using Transmission 2.82 on Xubuntu 14.04, and I noticed that after I deleted the downloaded file permanently from files manager, the job in Transmission was still active and kept seeding, and ...
0
votes
0answers
9 views

compton i3 tabbed/stacked transparency background image

I have a rule in compton (on i3) that when i am in tabbed/stacked mode, i see not a window from the tabbed container but my background image behind my semitransparent terminal. but for some reason, ...
1
vote
1answer
20 views

How to monitor system performance over time

I wrote the below script to determine how my system is holding up against various games. It checks all the vitals (GPU, RAM, and CPU) and then appends the data to a log file. Is this a reasonable ...
0
votes
0answers
12 views

urxvt, vim and X clipboard [duplicate]

I would like to setup my rxvt-unicode with the following behavior Be able to paste primary clipboard with the keyboard (whatever combination is normally used) Copy selected text to primary clipboard ...
1
vote
2answers
48 views

expand wildcards “inside a command” instead of in the shell

(This is a simplest working example of something in a much messier context.) I have a directory d with files 1.txt 2.txt 3.txt 4.wav. My current directory is somewhere else. ls d reports 1.txt 2.txt ...
0
votes
1answer
22 views

CRON: pam_unix(cron:session): session opened for user root by (uid=0): Is it a must have process?

This post is somewhat similar but mine is rather specific. CRON: pam_unix(cron:session): session opened for user root by (uid=0) Is this really a bug? In our system this process is creating ...
1
vote
0answers
17 views

wpa_supplicant: where does it store its list of networks?

With wpa_cli list_networks one can print the list of networks wpa_supplicant has (successfully?) connected to. Where is this list stored? Is it possible to switch the store between two versions? I.e. ...

15 30 50 per page